DTDParser
public DTDParser(File in)
throws IOException
Creates a parser that will read from the specified File object
DTDParser
public DTDParser(File in,
boolean trace)
throws IOException
Creates a parser that will read from the specified File object
in
- The file to readtrace
- True if the parser should print out tokens as it reads them
(used for debugging the parser)
DTDParser
public DTDParser(Reader in)
Creates a parser that will read from the specified Reader object
DTDParser
public DTDParser(Reader in,
boolean trace)
Creates a parser that will read from the specified Reader object
in
- The input stream to readtrace
- True if the parser should print out tokens as it reads them
(used for debugging the parser)
DTDParser
public DTDParser(URL in)
throws IOException
Creates a parser that will read from the specified URL object
DTDParser
public DTDParser(URL in,
boolean trace)
throws IOException
Creates a parser that will read from the specified URL object
in
- The URL to readtrace
- True if the parser should print out tokens as it reads them
(used for debugging the parser)
expect
protected com.wutka.dtd.Token expect(com.wutka.dtd.TokenType expected)
throws IOException
parse
public DTD parse()
throws IOException
Parses the DTD file and returns a DTD object describing the DTD.
This invocation of parse does not try to guess the root element
(for efficiency reasons)
parse
public DTD parse(boolean guessRootElement)
throws IOException
Parses the DTD file and returns a DTD object describing the DTD.
guessRootElement
- If true, tells the parser to try to guess the
root element of the document by process of elimination
parseAttdef
protected void parseAttdef(com.wutka.dtd.Scanner scanner,
DTDElement element,
DTDAttlist attlist)
throws IOException
parseAttlist
protected void parseAttlist()
throws IOException
parseCP
protected DTDItem parseCP()
throws IOException
parseCardinality
protected DTDCardinal parseCardinality()
throws IOException
parseChildren
protected void parseChildren(DTDElement element)
throws IOException
parseChoiceSequence
protected DTDContainer parseChoiceSequence()
throws IOException
parseContentSpec
protected void parseContentSpec(com.wutka.dtd.Scanner scanner,
DTDElement element)
throws IOException
parseElement
protected void parseElement()
throws IOException
parseEntity
protected void parseEntity()
throws IOException
parseEntityDef
protected void parseEntityDef(DTDEntity entity)
throws IOException
parseEnumeration
protected DTDEnumeration parseEnumeration()
throws IOException
parseMixed
protected void parseMixed(DTDElement element)
throws IOException
parseNotation
protected void parseNotation()
throws IOException
parseNotationList
protected DTDNotationList parseNotationList()
throws IOException
parseTopLevelElement
protected void parseTopLevelElement()
throws IOException
removeElements
protected void removeElements(Hashtable h,
DTD dtd,
DTDItem item)
skipUntil
protected void skipUntil(com.wutka.dtd.TokenType stopToken)
throws IOException