|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wutka.dtd.DTDParser
public class DTDParser
Parses a DTD file and returns a DTD object
Field Summary | |
---|---|
protected Object |
defaultLocation
|
protected DTD |
dtd
|
protected com.wutka.dtd.Scanner |
scanner
|
Constructor Summary | |
---|---|
DTDParser(File in)
Creates a parser that will read from the specified File object |
|
DTDParser(File in,
boolean trace)
Creates a parser that will read from the specified File object |
|
DTDParser(Reader in)
Creates a parser that will read from the specified Reader object |
|
DTDParser(Reader in,
boolean trace)
Creates a parser that will read from the specified Reader object |
|
DTDParser(URL in)
Creates a parser that will read from the specified URL object |
|
DTDParser(URL in,
boolean trace)
Creates a parser that will read from the specified URL object |
Method Summary | |
---|---|
DTDEntity |
expandEntity(String name)
|
protected com.wutka.dtd.Token |
expect(com.wutka.dtd.TokenType expected)
|
DTD |
parse()
Parses the DTD file and returns a DTD object describing the DTD. |
DTD |
parse(boolean guessRootElement)
Parses the DTD file and returns a DTD object describing the DTD. |
protected void |
parseAttdef(com.wutka.dtd.Scanner scanner,
DTDElement element,
DTDAttlist attlist)
|
protected void |
parseAttlist()
|
protected DTDCardinal |
parseCardinality()
|
protected void |
parseChildren(DTDElement element)
|
protected DTDContainer |
parseChoiceSequence()
|
protected void |
parseContentSpec(com.wutka.dtd.Scanner scanner,
DTDElement element)
|
protected DTDItem |
parseCP()
|
protected void |
parseElement()
|
protected void |
parseEntity()
|
protected void |
parseEntityDef(DTDEntity entity)
|
protected DTDEnumeration |
parseEnumeration()
|
protected void |
parseMixed(DTDElement element)
|
protected void |
parseNotation()
|
protected DTDNotationList |
parseNotationList()
|
protected void |
parseTopLevelElement()
|
protected void |
removeElements(Hashtable h,
DTD dtd,
DTDItem item)
|
protected void |
skipUntil(com.wutka.dtd.TokenType stopToken)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected com.wutka.dtd.Scanner scanner
protected DTD dtd
protected Object defaultLocation
Constructor Detail |
---|
public DTDParser(Reader in)
public DTDParser(Reader in, boolean trace)
in
- The input stream to readtrace
- True if the parser should print out tokens as it reads them
(used for debugging the parser)public DTDParser(File in) throws IOException
IOException
public DTDParser(File in, boolean trace) throws IOException
in
- The file to readtrace
- True if the parser should print out tokens as it reads them
(used for debugging the parser)
IOException
public DTDParser(URL in) throws IOException
IOException
public DTDParser(URL in, boolean trace) throws IOException
in
- The URL to readtrace
- True if the parser should print out tokens as it reads them
(used for debugging the parser)
IOException
Method Detail |
---|
public DTD parse() throws IOException
IOException
public DTD parse(boolean guessRootElement) throws IOException
guessRootElement
- If true, tells the parser to try to guess the
root element of the document by process of elimination
IOException
protected void removeElements(Hashtable h, DTD dtd, DTDItem item)
protected void parseTopLevelElement() throws IOException
IOException
protected void skipUntil(com.wutka.dtd.TokenType stopToken) throws IOException
IOException
protected com.wutka.dtd.Token expect(com.wutka.dtd.TokenType expected) throws IOException
IOException
protected void parseElement() throws IOException
IOException
protected void parseContentSpec(com.wutka.dtd.Scanner scanner, DTDElement element) throws IOException
IOException
protected void parseMixed(DTDElement element) throws IOException
IOException
protected void parseChildren(DTDElement element) throws IOException
IOException
protected DTDContainer parseChoiceSequence() throws IOException
IOException
protected DTDItem parseCP() throws IOException
IOException
protected DTDCardinal parseCardinality() throws IOException
IOException
protected void parseAttlist() throws IOException
IOException
protected void parseAttdef(com.wutka.dtd.Scanner scanner, DTDElement element, DTDAttlist attlist) throws IOException
IOException
protected DTDNotationList parseNotationList() throws IOException
IOException
protected DTDEnumeration parseEnumeration() throws IOException
IOException
protected void parseEntity() throws IOException
IOException
protected void parseEntityDef(DTDEntity entity) throws IOException
IOException
protected void parseNotation() throws IOException
IOException
public DTDEntity expandEntity(String name)
expandEntity
in interface EntityExpansion
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |