Class StateController

java.lang.Object
com.itextpdf.tool.xml.parser.StateController

public class StateController extends Object
Switches the current state in the XMLParser.
  • Field Details

    • unknown

      private final State unknown
    • tagEncountered

      private final State tagEncountered
    • tagAttributes

      private final State tagAttributes
    • inTag

      private final State inTag
    • attrValue

      private final State attrValue
    • singleQuoted

      private final State singleQuoted
    • doubleQuoted

      private final State doubleQuoted
    • selfClosing

      private final State selfClosing
    • specialChar

      private final State specialChar
    • closingTag

      private final State closingTag
    • comment

      private final State comment
    • closeComment

      private final State closeComment
    • cdata

      private final State cdata
    • xml

      private final State xml
    • doctype

      private final State doctype
    • unquoted

      private final State unquoted
    • processingInstruction

      private final State processingInstruction
    • parser

      private final XMLParser parser
    • currentState

      private State currentState
    • previousState

      private State previousState
    • starComment

      private State starComment
    • closeStarComment

      private State closeStarComment
  • Constructor Details

    • StateController

      public StateController(XMLParser parser, boolean isHTML)
      Constructs a StateController with the given parser.
      Parameters:
      parser - the Parser
      isHTML - true if this parser is going to parse HTML, this results in different whitespace handling.
  • Method Details