oracle.xml.comp
Class CXMLParser

oracle.xml.comp.CXMLParser

public class CXMLParser

This class parses the XML document which is in the WAP Binary XML Content Format (Version 1.2) and creates SAX events from them.


Constructor Summary
CXMLParser()
Creates a new Binary XML Parser object.

Method Summary
ContentHandler getContentHandler()
Get content handler
ErrorHandler getErrorHandler()
Get the current error handler
void parse(java.lang.String inFile)
Parse the Binary XML file
void setContentHandler(ContentHandler handler)
Register a content event handler
void setErrorHandler(ErrorHandler handler)
Register an error event handler

Constructor Detail

CXMLParser

public CXMLParser()
Creates a new Binary XML Parser object.

Method Detail

setContentHandler

public void setContentHandler(ContentHandler handler)
Register a content event handler
Parameters:
handler - The content handler
Throws:
java.lang.NullPointerException - If the handler argument is null

getContentHandler

public ContentHandler getContentHandler()
Get content handler

setErrorHandler

public void setErrorHandler(ErrorHandler handler)
Register an error event handler
Parameters:
handler - The error handler
Throws:
java.lang.NullPointerException -

getErrorHandler

public ErrorHandler getErrorHandler()
Get the current error handler

parse

public void parse(java.lang.String inFile)
           throws java.io.IOException,
                  SAXException
Parse the Binary XML file
Parameters:
source - The input source for th top level XML document
Throws:
SAXException - Any SAX exception
java.io.IOException -


Copyright © 1997, 2004, Oracle. All rights reserved.