public class TagProcessor extends Object
TagRule
s can be added to perform the extractions/transformations.
The processor can have different rules applied to different State
s.
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
TagRule s. |
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
TagRule
s.IOException
Copyright © 2015. All Rights Reserved.