|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sitemesh.tagprocessor.TagProcessor
public class TagProcessor
Copies a document from a source to a destination, applying rules on the way to extract content and/or transform the content.
TagRules can be added to perform the extractions/transformations.
The processor can have different rules applied to different States.
A rule may switch the current state using TagProcessorContext.changeState(State).
| Constructor Summary | |
|---|---|
TagProcessor(CharBuffer source)
|
|
| Method Summary | |
|---|---|
void |
addRule(String name,
TagRule rule)
Equivalent of TagProcessor.defaultState().addRule() |
State |
defaultState()
The default state of the processor (that is, when it begins processing). |
CharSequence |
getDefaultBufferContents()
Return the contents of the default buffer used during TagProcessing. |
void |
process()
Process the document, applying TagRules. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TagProcessor(CharBuffer source)
| Method Detail |
|---|
public CharSequence getDefaultBufferContents()
public State defaultState()
public void addRule(String name,
TagRule rule)
State.addRule(String,TagRule)
public void process()
throws IOException
TagRules.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||