javolution.xml.sax
Class SAX2ReaderImpl
Object
SAX2ReaderImpl
- All Implemented Interfaces:
- Reusable, XMLReader
public final class SAX2ReaderImpl
- extends Object
- implements XMLReader, Reusable
This class provides a SAX2-compliant parser wrapping a
XMLReaderImpl
. This parser allocates
java.lang.String
instances while parsing in accordance
with the SAX2 specification. For faster performance (2-5x), the use of
the SAX2-like XMLSaxParserImpl
or betterXMLStreamReader
is recommended.
- Version:
- 4.0, June 16, 2005
- Author:
- Jean-Marie Dautelle
- See Also:
- SAX -- Simple API for XML
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAX2ReaderImpl
public SAX2ReaderImpl()
- Default constructor.
getFeature
public boolean getFeature(String name)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
getFeature
in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
setFeature
public void setFeature(String name,
boolean value)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
setFeature
in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
getProperty
public Object getProperty(String name)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
getProperty
in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
setProperty
public void setProperty(String name,
Object value)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
setProperty
in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
setEntityResolver
public void setEntityResolver(EntityResolver resolver)
- Specified by:
setEntityResolver
in interface XMLReader
getEntityResolver
public EntityResolver getEntityResolver()
- Specified by:
getEntityResolver
in interface XMLReader
setDTDHandler
public void setDTDHandler(DTDHandler handler)
- Specified by:
setDTDHandler
in interface XMLReader
getDTDHandler
public DTDHandler getDTDHandler()
- Specified by:
getDTDHandler
in interface XMLReader
setContentHandler
public void setContentHandler(ContentHandler handler)
- Specified by:
setContentHandler
in interface XMLReader
getContentHandler
public ContentHandler getContentHandler()
- Specified by:
getContentHandler
in interface XMLReader
setErrorHandler
public void setErrorHandler(ErrorHandler handler)
- Specified by:
setErrorHandler
in interface XMLReader
getErrorHandler
public ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler
in interface XMLReader
parse
public void parse(InputSource input)
throws IOException,
SAXException
- Specified by:
parse
in interface XMLReader
- Throws:
IOException
SAXException
parse
public void parse(String systemId)
throws IOException,
SAXException
- Specified by:
parse
in interface XMLReader
- Throws:
IOException
SAXException
reset
public void reset()
- Description copied from interface:
Reusable
- Resets the internal state of this object to its default values.
- Specified by:
reset
in interface Reusable
Copyright © 2005-2012 Javolution. All Rights Reserved.