All Packages Class Hierarchy This Package Previous Next Index
Class oracle.xml.parser.v2.XMLTokenizer
java.lang.Object
|
+----org.xml.sax.HandlerBase
|
+----oracle.xml.parser.v2.DefaultXMLDocumentHandler
|
+----oracle.xml.parser.v2.XMLTokenizer
- public class XMLTokenizer
- extends DefaultXMLDocumentHandler
- implements XMLConstants
This class implements an eXtensible Markup Language (XML) 1.0 parser
according to the World Wide Web Consortium (W3C)
recommendation.
-
XMLTokenizer()
- Creates a new Tokenizer object.
-
XMLTokenizer(XMLToken)
- Creates a new Tokenizer object.
-
parseDocument()
- Document ::= Prolog Element Misc*
-
setErrorHandler(ErrorHandler)
- Applications can use this to register a new error event handler.
-
setErrorStream(OutputStream)
- Register a output stream for errors
-
setToken(int, boolean)
- Applications can use this to register a new token for XML tokenizer.
-
setTokenHandler(XMLToken)
- Applications can use this to register a new XML tokenizer event handler.
-
tokenize(InputSource)
- Tokenizes the XML from given input source
-
tokenize(InputStream)
- Tokenizes the XML from given input stream.
-
tokenize(Reader)
- Tokenizes the XML from given input stream.
-
tokenize(String)
- Tokenizes the XML from the URL indicated
-
tokenize(URL)
- Tokenizes the XML document pointed to by the given URL and
creates the corresponding XML document hierarchy.
XMLTokenizer
public XMLTokenizer()
- Creates a new Tokenizer object.
XMLTokenizer
public XMLTokenizer(XMLToken handler)
- Creates a new Tokenizer object.
setErrorStream
public void setErrorStream(OutputStream out)
- Register a output stream for errors
setErrorHandler
public void setErrorHandler(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
tokenize
public final void tokenize(URL url) throws XMLParseException, SAXException, IOException
- 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.
- Throws: SAXException
- Any SAX exception, possibly
wrapping another exception.
- Throws: IOException
- IO Error.
tokenize
public final void tokenize(InputSource in) throws XMLParseException, SAXException, IOException
- Tokenizes the XML from given input source
- Parameters:
- in - the
org.xml.sax.InputSouce
to parse
- Throws: XMLParseException
- if syntax or other error encountered.
- Throws: SAXException
- Any SAX exception, possibly
wrapping another exception.
- Throws: IOException
- IO Error.
tokenize
public final void tokenize(String in) throws XMLParseException, SAXException, IOException
- 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.
- Throws: SAXException
- Any SAX exception, possibly
wrapping another exception.
- Throws: IOException
- IO Error.
tokenize
public final void tokenize(InputStream in) throws XMLParseException, SAXException, IOException
- Tokenizes the XML from given input stream.
- Parameters:
- in - the
InputStream
containing XML data to parse.
- Throws: XMLParseException
- if syntax or other error encountered.
- Throws: SAXException
- Any SAX exception, possibly
wrapping another exception.
- Throws: IOException
- IO Error.
- See Also:
- setBaseURL
tokenize
public final void tokenize(Reader r) throws XMLParseException, SAXException, IOException
- Tokenizes the XML from given input stream.
- Parameters:
- r - the
Reader
containing XML data to parse.
- Throws: XMLParseException
- if syntax or other error encountered.
- Throws: SAXException
- Any SAX exception, possibly
wrapping another exception.
- Throws: IOException
- IO Error.
- See Also:
- setBaseURL
setTokenHandler
public void setTokenHandler(XMLToken handler)
- Applications can use this to register a new XML tokenizer event handler.
- Parameters:
- handler -
XMLToken
being registered
setToken
public void setToken(int token,
boolean val)
- Applications can use this to register a new token for XML tokenizer.
- Parameters:
- token -
XMLToken
being set
parseDocument
public void parseDocument() throws SAXException, IOException
- Document ::= Prolog Element Misc*
All Packages Class Hierarchy This Package Previous Next Index