|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.decora.parser.DecoraParser
public class DecoraParser
Decora parser takes decorator and page content and produce the output content.
Decora parser may be used outside of container.
| Constructor Summary | |
|---|---|
DecoraParser()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DecoraParser()
| Method Detail |
|---|
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.IOException
protected void writeRegion(java.io.Writer out,
char[] pageContent,
DecoraTag decoraTag,
DecoraTag[] decoraTags)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||