public class DecoraParser
extends java.lang.Object
Constructor and Description |
---|
DecoraParser() |
Modifier and Type | Method and Description |
---|---|
void |
decorate(java.io.Writer writer,
char[] pageContent,
char[] decoraContent)
Decorates page content with decorator template and outputs the result.
|
protected DecoraTag[] |
parseDecorator(char[] decoraContent)
Parses decorator file and collects
Decora tags
used in template. |
protected void |
parsePage(char[] pageContent,
DecoraTag[] decoraTags)
Parses target page and extracts Decora regions for replacements.
|
protected void |
writeDecoratedPage(java.io.Writer out,
char[] decoratorContent,
char[] pageContent,
DecoraTag[] decoraTags)
Writes decorated content.
|
protected void |
writeRegion(java.io.Writer out,
char[] pageContent,
DecoraTag decoraTag,
DecoraTag[] decoraTags)
Writes region to output, but extracts all inner regions.
|
public void decorate(java.io.Writer writer, char[] pageContent, char[] decoraContent) throws java.io.IOException
java.io.IOException
protected DecoraTag[] parseDecorator(char[] decoraContent)
Decora tags
used in template. Returned Decora tags have start and end index set,
but their region is not set.protected void parsePage(char[] pageContent, DecoraTag[] decoraTags)
protected void writeDecoratedPage(java.io.Writer out, char[] decoratorContent, char[] pageContent, DecoraTag[] decoraTags) throws java.io.IOException
java.io.IOException
Copyright © 2003-present Jodd Team