|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.pdark.decentxml.XMLTokenizer
de.pdark.decentxml.dtd.DTDTokenizer
public class DTDTokenizer
A parser for a DTD (inline or reference).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.pdark.decentxml.XMLTokenizer |
---|
XMLTokenizer.Type |
Field Summary | |
---|---|
protected int |
docTypeLevel
>= 0 as long as we're inside of a DOCTYPE |
Fields inherited from class de.pdark.decentxml.XMLTokenizer |
---|
inStartElement, pos, source |
Constructor Summary | |
---|---|
DTDTokenizer(XMLSource source,
int startPosition)
Create an DTD tokenizer. |
Method Summary | |
---|---|
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)
|
Methods inherited from class de.pdark.decentxml.XMLTokenizer |
---|
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, verifyEntity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int docTypeLevel
Constructor Detail |
---|
public DTDTokenizer(XMLSource source, int startPosition)
Method Detail |
---|
public int getOffset()
getOffset
in class XMLTokenizer
public 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 XMLTokenizer
null
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |