java.lang.Object | +--gnu.xml.aelfred2.XmlReaderAll Implemented Interfaces:
SAXDriver
gnu.xml.pipeline.ValidationConsumer
Constructs a SAX Parser. |
XmlReader(boolean invalidIsFatal) Constructs a SAX Parser, optionally treating validity errors as if they were fatal errors. |
SAX2: Returns the object used to report the logical content of an XML document. | |
SAX2: Returns the object used to process declarations related to notations and unparsed entities. | |
SAX2: Returns the object used when resolving external entities during parsing (both general and parameter entities). | |
SAX2: Returns the object used to receive callbacks for XML errors of all levels (fatal, nonfatal, warning); this is never null; | |
boolean | getFeature(java.lang.String featureId) SAX2: Tells whether this parser supports the specified feature. |
java.lang.Object | getProperty(java.lang.String propertyId) SAX2: Returns the specified property. |
void | parse(java.lang.String systemId) SAX1: Preferred API to parse an XML document, using a system identifier (URI). |
void | parse(InputSource source) SAX1: Underlying API to parse an XML document, used directly when no URI is available. |
void | setContentHandler(ContentHandler handler) SAX2: Assigns the object used to report the logical content of an XML document. |
void | setDTDHandler(DTDHandler handler) SAX1 Assigns DTD handler |
void | setEntityResolver(EntityResolver handler) SAX1 Assigns parser's entity resolver |
void | setErrorHandler(ErrorHandler handler) SAX1 Assigns error handler |
void | setFeature(java.lang.String featureId, boolean state) SAX2: Sets the state of features supported in this parser. |
void | setLocale(java.util.Locale locale) SAX1: Sets the locale used for diagnostics; currently, only locales using the English language are supported. |
void | setProperty(java.lang.String propertyId, java.lang.Object value) SAX2: Assigns the specified property. |
public XmlReader()
public XmlReader(boolean invalidIsFatal)
public ContentHandler getContentHandler()
public DTDHandler getDTDHandler()
public EntityResolver getEntityResolver()
public ErrorHandler getErrorHandler()
public boolean getFeature(java.lang.String featureId)
SAXDriver
public Object getProperty(java.lang.String propertyId)
public void parse(java.lang.String systemId)
public void parse(InputSource source)
java.lang.IllegalStateException
- if called mid-parseSAXException
- The handlers may throw any SAXException,
and the parser normally throws SAXParseException objects.java.io.IOException
- IOExceptions are normally through through
the parser if there are problems reading the source document.public void setContentHandler(ContentHandler handler)
java.lang.IllegalStateException
- if called mid-parsepublic void setDTDHandler(DTDHandler handler)
java.lang.IllegalStateException
- if called mid-parsepublic void setEntityResolver(EntityResolver handler)
public void setErrorHandler(ErrorHandler handler)
java.lang.IllegalStateException
- if called mid-parsepublic void setFeature(java.lang.String featureId, boolean state)
public void setLocale(java.util.Locale locale)
public void setProperty(java.lang.String propertyId, java.lang.Object value)
java.lang.IllegalStateException
- if called mid-parse