|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.HandlerBase | +--oracle.xml.parser.v2.DefaultXMLDocumentHandler | +--oracle.xml.parser.v2.XMLTokenizer
This class implements an eXtensible Markup Language (XML) 1.0 parser according to the World Wide Web Consortium (W3C) recommendation.
Constructor Summary |
XMLTokenizer()
Creates a new Tokenizer object. |
XMLTokenizer(XMLToken handler)
Creates a new Tokenizer object. |
Method Summary |
Type | Method |
---|---|
void |
parseDocument()
Document ::= Prolog Element Misc* |
void |
setErrorHandler(ErrorHandler handler)
Applications can use this to register a new error event handler. |
void |
setErrorStream(java.io.OutputStream out)
Register a output stream for errors |
void |
setToken(int token,
boolean val)
Applications can use this to register a new token for XML tokenizer. |
void |
setTokenHandler(XMLToken handler)
Applications can use this to register a new XML tokenizer event handler. |
void |
tokenize(InputSource in)
Tokenizes the XML from given input source |
void |
tokenize(java.io.InputStream in)
Tokenizes the XML from given input stream. |
void |
tokenize(java.io.Reader r)
Tokenizes the XML from given input stream. |
void |
tokenize(java.lang.String in)
Tokenizes the XML from the URL indicated |
void |
tokenize(java.net.URL url)
Tokenizes the XML document pointed to by the given URL and creates the corresponding XML document hierarchy. |
Methods inherited from class oracle.xml.parser.v2.DefaultXMLDocumentHandler |
cDATASection,
comment,
endDoctype,
endElement,
endElement,
endPrefixMapping,
getHandler,
setDoctype,
setError,
setHandler,
setTextDecl,
setXMLDecl,
setXMLSchema,
skippedEntity,
startElement,
startElement,
startPrefixMapping |
Methods inherited from class org.xml.sax.HandlerBase |
characters,
endDocument,
endElement,
error,
fatalError,
ignorableWhitespace,
notationDecl,
processingInstruction,
resolveEntity,
setDocumentLocator,
startDocument,
startElement,
unparsedEntityDecl,
warning |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public XMLTokenizer()
public XMLTokenizer(XMLToken handler)
Method Detail |
public void setErrorStream(java.io.OutputStream out)
public void setErrorHandler(ErrorHandler handler)
handler
- ErrorHandler
being registeredpublic final void tokenize(java.net.URL url) throws XMLParseException, SAXException, java.io.IOException
url
- the url points to the XML document to parse.public final void tokenize(InputSource in) throws XMLParseException, SAXException, java.io.IOException
in
- the org.xml.sax.InputSouce
to parsepublic final void tokenize(java.lang.String in) throws XMLParseException, SAXException, java.io.IOException
in
- the String
containing the URL to parse frompublic final void tokenize(java.io.InputStream in) throws XMLParseException, SAXException, java.io.IOException
in
- the InputStream
containing XML data to parse.XMLParser.setBaseURL(java.net.URL)
public final void tokenize(java.io.Reader r) throws XMLParseException, SAXException, java.io.IOException
r
- the Reader
containing XML data to parse.XMLParser.setBaseURL(java.net.URL)
public void setTokenHandler(XMLToken handler)
handler
- XMLToken
being registeredpublic void setToken(int token, boolean val)
token
- XMLToken
being setpublic void parseDocument() throws SAXException, java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |