Class DTDTokenizer


  • public class DTDTokenizer
    extends XMLTokenizer
    A parser for a DTD (inline or reference).
    • Field Detail

      • docTypeLevel

        protected int docTypeLevel
        >= 0 as long as we're inside of a DOCTYPE
    • Constructor Detail

      • DTDTokenizer

        public DTDTokenizer​(XMLSource source,
                            int startPosition)
        Create an DTD tokenizer. startPosition must point at "
    • Method Detail

      • getOffset

        public int getOffset()
        The current position in the XML source
        Overrides:
        getOffset in class XMLTokenizer
      • next

        public Token next()
        Fetch the next token from the source. Returns null if there the complete doctype declaration has been read.

        If next() returns null, the position of the tokenizer will be just after the end of the DTD declaration.

        Overrides:
        next in class XMLTokenizer
        Returns:
        The next token or null if the DTD has been read.
      • parseDocTypeConstant

        protected void parseDocTypeConstant​(Token token)
        #implied, #pcdata, ...
      • parseDocTypeComment

        protected void parseDocTypeComment​(Token token)
      • parseDocTypeText

        protected void parseDocTypeText​(Token token)
      • parseDocTypeQuotedText

        protected void parseDocTypeQuotedText​(Token token)
      • parseDocTypeMarkupDeclaration

        protected void parseDocTypeMarkupDeclaration​(Token token)
        ""