| java.lang.Object javolution.xml.sax.XMLReaderImpl
XMLReaderImpl | public class XMLReaderImpl implements XMLReader,Reusable(Code) | | This class provides a real-time SAX2-like XML parser; this parser is
extremely fast and does not create temporary objects
(no garbage generated and no GC interruption).
The parser is implemented as a SAX2 wrapper around
XMLStreamReaderImpl and share the same characteristics.
Note: This parser is a SAX2-like parser with the
java.lang.String type replaced by
CharArray /
CharSequence in the
ContentHandler ,
Attributes interfaces and
DefaultHandler base class.
If a standard SAX2 or JAXP parser is required, you may consider using
the wrapping class
SAX2ReaderImpl . Fast but not as fast as
java.lang.String instances are dynamically allocated
while parsing.
author: Jean-Marie Dautelle version: 4.0, June 16, 2006 |
XMLReaderImpl | public XMLReaderImpl()(Code) | | Default constructor.
|
parse | public void parse(InputStream in) throws IOException, SAXException(Code) | | Parses an XML document from the specified input stream
(encoding retrieved from input source and the XML prolog if any).
Parameters: in - the input stream with unknown encoding. throws: org.xml.sax.SAXException - any SAX exception, possiblywrapping another exception. throws: IOException - an IO exception from the parser,possibly from a byte stream or character streamsupplied by the application. |
parse | public void parse(InputStream in, String encoding) throws IOException, SAXException(Code) | | Parses an XML document from the specified input stream and encoding.
Parameters: in - the input stream. Parameters: encoding - the input stream encoding. throws: org.xml.sax.SAXException - any SAX exception, possiblywrapping another exception. throws: IOException - an IO exception from the parser,possibly from a byte stream or character streamsupplied by the application. |
reset | public void reset()(Code) | | |
|
|