public class TagProcessor extends Object
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 and Description |
|---|
TagProcessor(CharBuffer source) |
| Modifier and Type | Method and Description |
|---|---|
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. |
public TagProcessor(CharBuffer source)
public CharSequence getDefaultBufferContents()
public State defaultState()
public void addRule(String name, TagRule rule)
State.addRule(String,TagRule)public void process()
throws IOException
TagRules.IOExceptionCopyright © 2015. All Rights Reserved.