oracle.xml.comp
Class CXMLParser
java.lang.Object
|
+--oracle.xml.comp.CXMLParser
- public class CXMLParser
- extends java.lang.Object
- implements CXMLConstants
This class parses the XML document which is in the WAP Binary
XML Content Format (Version 1.2) and creates SAX events from them.
Fields inherited from interface oracle.xml.comp.CXMLConstants |
ATTR_DEF,
ATTR_TOKEN,
ATTRDECL_DEF,
CDATA_DEF,
CHAR_DEF,
COMMENT_DEF,
CXML_VERSION,
cXMLFILE,
cXMLFILE_LEN,
DEBUG,
DTD_DEF,
ELEMENTDECL_DEF,
END,
ENTITY_DEF,
ENTITYREF_DEF,
META_ID_MAX,
names,
NOTATION_DEF,
NS_DEF,
NULLSTR,
PI_DEF,
PREFIX_DEF,
TAG_DEF,
TAG_TOKEN,
TOKEN_ONLY,
XMLDECL_DEF |
CXMLParser()
Creates a new Binary XML Parser object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
CXMLParser
public CXMLParser()
- Creates a new Binary XML Parser object.
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 -