com.dautelle.xml.sax
Class XMLReaderImpl
java.lang.Object
com.dautelle.xml.sax.XMLReaderImpl
- All Implemented Interfaces:
- org.xml.sax.XMLReader
- public final class XMLReaderImpl
- extends java.lang.Object
- implements org.xml.sax.XMLReader
This class provides a SAX2-compliant parser wrapping a
RealtimeParser
. This parser allocates
java.lang.String
instances while parsing in accordance
with the SAX2 specification. For faster performance (2-3x), the use of
the SAX2-like RealtimeParser
(with java.lang.String
replaced by java.lang.CharSequence
) is recommended.
See SAXParserFactoryImpl
for Plug-In Installation:
- Version:
- 4.5, May 26, 2003
- Author:
- Jean-Marie Dautelle
- See Also:
- SAX -- Simple API for XML
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLReaderImpl
public XMLReaderImpl()
- Default constructor.
getFeature
public boolean getFeature(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
- Specified by:
getFeature
in interface org.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
setFeature
public void setFeature(java.lang.String name,
boolean value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
- Specified by:
setFeature
in interface org.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
getProperty
public java.lang.Object getProperty(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
- Specified by:
getProperty
in interface org.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
- Specified by:
setProperty
in interface org.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
setEntityResolver
public void setEntityResolver(org.xml.sax.EntityResolver resolver)
- Specified by:
setEntityResolver
in interface org.xml.sax.XMLReader
getEntityResolver
public org.xml.sax.EntityResolver getEntityResolver()
- Specified by:
getEntityResolver
in interface org.xml.sax.XMLReader
setDTDHandler
public void setDTDHandler(org.xml.sax.DTDHandler handler)
- Specified by:
setDTDHandler
in interface org.xml.sax.XMLReader
getDTDHandler
public org.xml.sax.DTDHandler getDTDHandler()
- Specified by:
getDTDHandler
in interface org.xml.sax.XMLReader
setContentHandler
public void setContentHandler(org.xml.sax.ContentHandler handler)
- Specified by:
setContentHandler
in interface org.xml.sax.XMLReader
getContentHandler
public org.xml.sax.ContentHandler getContentHandler()
- Specified by:
getContentHandler
in interface org.xml.sax.XMLReader
setErrorHandler
public void setErrorHandler(org.xml.sax.ErrorHandler handler)
- Specified by:
setErrorHandler
in interface org.xml.sax.XMLReader
getErrorHandler
public org.xml.sax.ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler
in interface org.xml.sax.XMLReader
parse
public void parse(org.xml.sax.InputSource input)
throws java.io.IOException,
org.xml.sax.SAXException
- Specified by:
parse
in interface org.xml.sax.XMLReader
- Throws:
java.io.IOException
org.xml.sax.SAXException
parse
public void parse(java.lang.String systemId)
throws java.io.IOException,
org.xml.sax.SAXException
- Specified by:
parse
in interface org.xml.sax.XMLReader
- Throws:
java.io.IOException
org.xml.sax.SAXException
Copyright © 2004 Jean-Marie Dautelle.