public class XMLFuzzyHierarchicalParseState extends XMLFuzzyParseState
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
captureEscaped
Whether we're capturing escaped characters
|
protected 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, lowerCaseTagsaccumBuffer, 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_NEED_FINAL_BRACKET, TAGPARSESTATE_NORMAL, TAGPARSESTATE_SAWCOMMENTDASH, TAGPARSESTATE_SAWDASH, TAGPARSESTATE_SAWEXCLAMATION, TAGPARSESTATE_SAWLEFTANGLE, TAGPARSESTATE_SAWRIGHTBRACKET, TAGPARSESTATE_SAWSECONDCOMMENTDASH, TAGPARSESTATE_SAWSECONDRIGHTBRACKETcharBuffer| 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(String tagName,
String nameSpace,
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(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(String tagName,
String nameSpace,
String localName,
Map<String,String> attributes)
Map version of the noteTag method.
|
void |
setContext(XMLParsingContext context) |
noteBTag, noteBTagEx, noteBTagToken, noteBTagTokenEx, noteEndTag, noteEscaped, noteQTag, noteQTagEx, noteTagattributeDecode, dealWithCharacter, dumpValues, isPunctuation, isWhitespace, mapChunk, newBuffer, noteEndBTag, outputAmpBufferdealWithCharacters, dealWithRemainderprotected XMLParsingContext currentContext
protected 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
ManifoldCFExceptionprotected boolean noteTagEx(String tagName, String nameSpace, String localName, Map<String,String> attributes) throws ManifoldCFException
noteTagEx in class XMLFuzzyParseStateManifoldCFExceptionprotected boolean noteEndTagEx(String tagName, String nameSpace, String localName) throws ManifoldCFException
noteEndTagEx in class XMLFuzzyParseStateManifoldCFExceptionprotected boolean noteNormalCharacter(char thisChar)
throws ManifoldCFException
noteNormalCharacter in class TagParseStateManifoldCFExceptionprotected void appendToCharacterBuffer(char thisChar)
throws ManifoldCFException
ManifoldCFExceptionprotected void flushCharacterBuffer()
throws ManifoldCFException
ManifoldCFExceptionprotected boolean noteEscapedEx(String token) throws ManifoldCFException
noteEscapedEx in class XMLFuzzyParseStateManifoldCFExceptionprotected boolean noteEscapedCharacter(char thisChar)
throws ManifoldCFException
noteEscapedCharacter in class TagParseStateManifoldCFExceptionprotected boolean noteEndEscaped()
throws ManifoldCFException
noteEndEscaped in class TagParseStateManifoldCFExceptionpublic void finishUp()
throws ManifoldCFException
finishUp in class CharacterReceiverManifoldCFException