public class DecoraParser
extends java.lang.Object
Decora parser may be used outside of container.
| 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 content and outputs the result.
|
protected DecoraTag[] |
parseDecorator(char[] decoraContent)
Parses decorator.
|
protected void |
parsePage(char[] pageContent,
DecoraTag[] decoraTags)
Parses 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)
Write region, but extract all inner regions.
|
public void decorate(java.io.Writer writer,
char[] pageContent,
char[] decoraContent)
throws java.io.IOException
java.io.IOExceptionprotected DecoraTag[] parseDecorator(char[] decoraContent)
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.IOExceptionCopyright © 2003-2013 Jodd Team