XMLTokenizer - Oracle 9i

Syntax

All Implemented Interface

org.xml.sax.DocumentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, oracle.xml.parser.v2.XMLConstants, XMLDocumentHandler

Description
This class implements an eXtensible Markup Language (XML) 1.0 parser according to the World Wide Web Consortium (W3C) recommendation.

XMLTokenizer
XMLTokenizerXMLTokenizerXMLTokenizer

Constructors
XMLTokenizer()

public XMLTokenizer()

Creates a new Tokenizer object.

XMLTokenizer(XMLToken)

public XMLTokenizer(XMLToken handler)

Creates a new Tokenizer object.

Methods
parseDocument()

public void parseDocument() Document ::= Prolog Element Misc*

setErrorHandler(ErrorHandler)

public void setErrorHandler(org.xml.sax.ErrorHandler handler)

Applications can use this to register a new error event handler. This replaces any previous setting for error handling.

Parameters

handler - ErrorHandler being registered setErrorStream(OutputStream)

setToken(int, boolean)

public void setToken(int token, boolean val)

Applications can use this to register a new token for XML tokenizer.

Parameters

token - XMLToken being set

setTokenHandler(XMLToken)

public void setTokenHandler(XMLToken handler)

Applications can use this to register a new XML tokenizer event handler.

Parameters

handler - XMLToken being registered

tokenize(InputSource)

public final void tokenize(org.xml.sax.InputSource in)

Tokenizes the XML from given input source

Parameters

in - the org.xml.sax.InputSouce to parse

Throws

XMLParseException - if syntax or other error encountered.
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception. IOException - IO Error.

tokenize(InputStream)

public final void tokenize(java.io.InputStream in)
Tokenizes the XML from given input stream.

Parameters

in - the InputStream containing XML data to parse.

Throws

XMLParseException - if syntax or other error encountered.

org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

IOException - IO Error.

See Also
setBaseURL(URL)

tokenize(Reader)

public final void tokenize(java.io.Reader r) Tokenizes the XML from given input stream.

Parameters

r - the Reader containing XML data to parse.

Throws

XMLParseException - if syntax or other error encountered. org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.
IOException - IO Error.

See Also
setBaseURL(URL)

tokenize(String)

public final void tokenize(java.lang.String in) Tokenizes the XML from the URL indicated

Parameters
in - the String containing the URL to parse from

Throws

XMLParseException - if syntax or other error encountered. org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.
IOException - IO Error.

tokenize(URL)

public final void tokenize(java.net.URL url)

Tokenizes the XML document pointed to by the given URL and creates the corresponding XML document hierarchy.

Parameters

url - the url points to the XML document to parse.

Throws

XMLParseException - if syntax or other error encountered. org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception. IOException - IO Error.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Oracle 9i Topics