Class StateController
java.lang.Object
com.itextpdf.tool.xml.parser.StateController
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stateprivate final Stateprivate final Stateprivate Stateprivate final Stateprivate final Stateprivate Stateprivate final Stateprivate final Stateprivate final Stateprivate final XMLParserprivate Stateprivate final Stateprivate final Stateprivate final Stateprivate final Stateprivate Stateprivate final Stateprivate final Stateprivate final Stateprivate final Stateprivate final State -
Constructor Summary
ConstructorsConstructorDescriptionStateController(XMLParser parser, boolean isHTML) Constructs a StateController with the given parser. -
Method Summary
Modifier and TypeMethodDescriptionset Parser state toAttributeValueState.cdata()set Parser state toCdataState.set Parser state toCloseCommentState.set Parser state toCloseStarCommentState.set Parser state toClosingTagState.comment()set Parser state toCommentState.doctype()set Parser state toDocTypeState.set Parser state toDoubleQuotedAttrValueState.inTag()set Parser state toInsideTagState.Changes the state to the previous one.set Parser state toProcessingInstructionEncounteredState.set Parser state toSelfClosingTagState.Changes the state.set Parser state toSingleQuotedAttrValueState.set Parser state toSpecialCharState.set Parser state toStarCommentState.set Parser state toTagAttributeState.set Parser state toTagEncounteredState.unknown()set Parser state toUnknownState.set Parser state toUnquotedAttrState.
-
Field Details
-
unknown
-
tagEncountered
-
tagAttributes
-
inTag
-
attrValue
-
singleQuoted
-
doubleQuoted
-
selfClosing
-
specialChar
-
closingTag
-
comment
-
closeComment
-
cdata
-
xml
-
doctype
-
unquoted
-
processingInstruction
-
parser
-
currentState
-
previousState
-
starComment
-
closeStarComment
-
-
Constructor Details
-
StateController
Constructs a StateController with the given parser.- Parameters:
parser- the ParserisHTML- true if this parser is going to parse HTML, this results in different whitespace handling.
-
-
Method Details
-
setState
-
previousState
-
unknown
-
tagEncountered
-
tagAttributes
-
inTag
-
attributeValue
-
singleQuotedAttr
-
doubleQuotedAttr
-
processingInstructions
set Parser state toProcessingInstructionEncounteredState.- Returns:
- Parser
-
selfClosing
-
specialChar
-
closingTag
-
comment
-
closeComment
-
cdata
-
doctype
-
unquotedAttr
-
starComment
-
closeStarComment
-
getPreviousState
-