public abstract class FormatParser
extends java.lang.Object
Constructor and Description |
---|
FormatParser()
Creates a new text formatting parser.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
endTag(java.lang.String tagName)
Called at the end of a tag.
|
void |
parse(java.lang.CharSequence sequence)
Parses a string and calls the tag methods
|
abstract void |
sendText(java.lang.String text)
Called when a chunk of text needs to be output (before/in/after tags).
|
abstract void |
startTag(java.lang.String tagName)
Called at the start of a tag.
|
public void parse(java.lang.CharSequence sequence)
sequence
- the input text to parse.public abstract void startTag(java.lang.String tagName)
tagName
- the name of the started tag.public abstract void sendText(java.lang.String text)
text
- the output text.public abstract void endTag(java.lang.String tagName)
tagName
- the name of the ended tag.