org.freehep.wbxml
Class WBXMLParser
java.lang.Object
org.freehep.wbxml.WBXMLParser
- All Implemented Interfaces:
- WBXML
public class WBXMLParser
- extends Object
- implements WBXML
SAX-like Binary XML Parser. There is NO support form namespaces, attrPrefixValues or attrValues.
Code pages are handled internally. Both attribute and tag code indexes start at 0 and run up.
- Version:
- $Id: WbxmlParser.java 8584 2006-08-10 23:06:37Z duns $
- Author:
- Mark Donszelmann
Fields inherited from interface org.freehep.wbxml.WBXML |
ATTRIBUTE, CONTENT, END, ENTITY, EXT_0, EXT_1, EXT_2, EXT_I_0, EXT_I_1, EXT_I_2, EXT_T_0, EXT_T_1, EXT_T_2, INDEXED_PID, LITERAL, LITERAL_A, LITERAL_AC, LITERAL_C, MAX_CODES, OPAQUE, PI, RESERVED_CODES, STR_I, STR_T, SWITCH_PAGE, UNKNOWN_PID, UTF8, WBXML_VERSION |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WBXMLParser
public WBXMLParser(ContentHandler contentHandler)
WBXMLParser
public WBXMLParser(ContentHandler contentHandler,
ExtensionHandler extensionHandler)
setEntityResolver
public void setEntityResolver(EntityResolver resolver)
getCharSet
public int getCharSet()
getVersion
public int getVersion()
parse
public void parse(InputStream in)
throws SAXException,
IOException
- Throws:
SAXException
IOException
readByte
protected int readByte()
throws IOException,
SAXException
- Throws:
IOException
SAXException
readInt
protected int readInt()
throws SAXException,
IOException
- Throws:
SAXException
IOException
readStrI
protected String readStrI()
throws IOException,
SAXException
- Throws:
IOException
SAXException
readStrT
protected String readStrT()
throws IOException,
SAXException
- Throws:
IOException
SAXException
stringUTFLength
public static int stringUTFLength(String s)
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2000-2007 FreeHEP. All Rights Reserved.