public class DTDTokenizer extends XMLTokenizer
XMLTokenizer.Type| Modifier and Type | Field and Description |
|---|---|
protected int |
docTypeLevel
>= 0 as long as we're inside of a DOCTYPE
|
inStartElement, pos, source| Constructor and Description |
|---|
DTDTokenizer(XMLSource source,
int startPosition)
Create an DTD tokenizer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getOffset()
The current position in the XML source
|
Token |
next()
Fetch the next token from the source.
|
protected void |
parseDocTypeComment(Token token) |
protected void |
parseDocTypeConstant(Token token)
#implied, #pcdata, ...
|
protected void |
parseDocTypeMarkupDeclaration(Token token)
""
|
protected void |
parseDocTypeQuotedText(Token token) |
protected void |
parseDocTypeText(Token token) |
createToken, expect, getCharValidator, getEntityResolver, getSource, isTreatEntitiesAsText, lookAheadForErrorMessage, nextChar, nextChars, parseAttribute, parseBeginElement, parseBeginSomething, parseCData, parseComment, parseDocType, parseEndElement, parseEntity, parseExcalamation, parseName, parseProcessingInstruction, parseText, setCharValidator, setEntityResolver, setOffset, setTreatEntitiesAsText, skipChar, skipWhiteSpace, verifyEntitypublic DTDTokenizer(XMLSource source, int startPosition)
public int getOffset()
getOffset in class XMLTokenizerpublic Token next()
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.
next in class XMLTokenizernull if the DTD has been read.protected void parseDocTypeConstant(Token token)
protected void parseDocTypeComment(Token token)
protected void parseDocTypeText(Token token)
protected void parseDocTypeQuotedText(Token token)
protected void parseDocTypeMarkupDeclaration(Token token)