public class XMLFuzzyHierarchicalParseState extends XMLFuzzyParseState
Modifier and Type | Field and Description |
---|---|
protected boolean |
captureEscaped
Whether we're capturing escaped characters
|
protected java.lang.StringBuilder |
characterBuffer
The current value buffer
|
protected XMLParsingContext |
currentContext
The current context
|
protected static int |
MAX_CHUNK_SIZE
This is the maximum size of a chunk of characters getting sent to the characters() method.
|
lowerCaseAttributes, lowerCaseBTags, lowerCaseEscapeTags, lowerCaseQAttributes, lowerCaseQTags, lowerCaseTags
accumBuffer, ampBuffer, bTagDepth, currentAttrList, currentAttrName, currentAttrNameBuffer, currentState, currentTagName, currentTagNameBuffer, currentValueBuffer, inAmpersand, mapLookup, TAGPARSESTATE_IN_ATTR_LOOKING_FOR_VALUE, TAGPARSESTATE_IN_ATTR_NAME, TAGPARSESTATE_IN_ATTR_VALUE, TAGPARSESTATE_IN_BANG_TOKEN, TAGPARSESTATE_IN_BRACKET_TOKEN, TAGPARSESTATE_IN_CDATA_BODY, TAGPARSESTATE_IN_COMMENT, TAGPARSESTATE_IN_DOUBLE_QUOTES_ATTR_VALUE, TAGPARSESTATE_IN_END_TAG_NAME, TAGPARSESTATE_IN_QTAG_ATTR_LOOKING_FOR_VALUE, TAGPARSESTATE_IN_QTAG_ATTR_NAME, TAGPARSESTATE_IN_QTAG_ATTR_VALUE, TAGPARSESTATE_IN_QTAG_DOUBLE_QUOTES_ATTR_VALUE, TAGPARSESTATE_IN_QTAG_NAME, TAGPARSESTATE_IN_QTAG_SAW_QUESTION, TAGPARSESTATE_IN_QTAG_SINGLE_QUOTES_ATTR_VALUE, TAGPARSESTATE_IN_QTAG_UNQUOTED_ATTR_VALUE, TAGPARSESTATE_IN_SINGLE_QUOTES_ATTR_VALUE, TAGPARSESTATE_IN_TAG_NAME, TAGPARSESTATE_IN_TAG_SAW_SLASH, TAGPARSESTATE_IN_UNQUOTED_ATTR_VALUE, TAGPARSESTATE_IN_UNQUOTED_ATTR_VALUE_SAW_SLASH, TAGPARSESTATE_NEED_FINAL_BRACKET, TAGPARSESTATE_NORMAL, TAGPARSESTATE_SAWCOMMENTDASH, TAGPARSESTATE_SAWDASH, TAGPARSESTATE_SAWEXCLAMATION, TAGPARSESTATE_SAWLEFTANGLE, TAGPARSESTATE_SAWRIGHTBRACKET, TAGPARSESTATE_SAWSECONDCOMMENTDASH, TAGPARSESTATE_SAWSECONDRIGHTBRACKET
charBuffer
Constructor and Description |
---|
XMLFuzzyHierarchicalParseState()
Constructor with default properties.
|
XMLFuzzyHierarchicalParseState(boolean lowerCaseAttributes,
boolean lowerCaseTags,
boolean lowerCaseQAttributes,
boolean lowerCaseQTags,
boolean lowerCaseBTags,
boolean lowerCaseEscapeTags)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendToCharacterBuffer(char thisChar) |
void |
cleanup()
Call this method to clean up completely after a parse attempt, whether successful or failure.
|
void |
finishUp()
Called at the end of everything.
|
protected void |
flushCharacterBuffer() |
XMLParsingContext |
getContext() |
protected boolean |
noteEndEscaped()
Called for the end of every cdata-like tag.
|
protected boolean |
noteEndTagEx(java.lang.String tagName,
java.lang.String nameSpace,
java.lang.String localName)
Note end tag.
|
protected boolean |
noteEscapedCharacter(char thisChar)
This method gets called for every character that is found within an
escape block, e.g.
|
protected boolean |
noteEscapedEx(java.lang.String token)
New version of the noteEscapedTag method.
|
protected boolean |
noteNormalCharacter(char thisChar)
This method gets called for every character that is not part of a tag etc.
|
protected boolean |
noteTagEx(java.lang.String tagName,
java.lang.String nameSpace,
java.lang.String localName,
java.util.Map<java.lang.String,java.lang.String> attributes)
Map version of the noteTag method.
|
void |
setContext(XMLParsingContext context) |
noteBTag, noteBTagEx, noteBTagToken, noteBTagTokenEx, noteEndTag, noteEscaped, noteQTag, noteQTagEx, noteTag
acceptNewTag, attributeDecode, dealWithCharacter, dumpValues, isPunctuation, isWhitespace, mapChunk, newBuffer, noteEndBTag, outputAmpBuffer
dealWithCharacters, dealWithRemainder
protected XMLParsingContext currentContext
protected java.lang.StringBuilder characterBuffer
protected boolean captureEscaped
protected static final int MAX_CHUNK_SIZE
public XMLFuzzyHierarchicalParseState()
public XMLFuzzyHierarchicalParseState(boolean lowerCaseAttributes, boolean lowerCaseTags, boolean lowerCaseQAttributes, boolean lowerCaseQTags, boolean lowerCaseBTags, boolean lowerCaseEscapeTags)
public void setContext(XMLParsingContext context)
public XMLParsingContext getContext()
public void cleanup() throws ManifoldCFException
ManifoldCFException
protected boolean noteTagEx(java.lang.String tagName, java.lang.String nameSpace, java.lang.String localName, java.util.Map<java.lang.String,java.lang.String> attributes) throws ManifoldCFException
noteTagEx
in class XMLFuzzyParseState
ManifoldCFException
protected boolean noteEndTagEx(java.lang.String tagName, java.lang.String nameSpace, java.lang.String localName) throws ManifoldCFException
noteEndTagEx
in class XMLFuzzyParseState
ManifoldCFException
protected boolean noteNormalCharacter(char thisChar) throws ManifoldCFException
noteNormalCharacter
in class TagParseState
ManifoldCFException
protected void appendToCharacterBuffer(char thisChar) throws ManifoldCFException
ManifoldCFException
protected void flushCharacterBuffer() throws ManifoldCFException
ManifoldCFException
protected boolean noteEscapedEx(java.lang.String token) throws ManifoldCFException
noteEscapedEx
in class XMLFuzzyParseState
ManifoldCFException
protected boolean noteEscapedCharacter(char thisChar) throws ManifoldCFException
noteEscapedCharacter
in class TagParseState
ManifoldCFException
protected boolean noteEndEscaped() throws ManifoldCFException
noteEndEscaped
in class TagParseState
ManifoldCFException
public void finishUp() throws ManifoldCFException
finishUp
in class CharacterReceiver
ManifoldCFException