Java Reference
In-Depth Information
the org.xml.sax.SAXException classisthrownwhen createXMLReader()
cannot obtain an appropriate class or instantiate the class.
The returned XMLReader object makes available several methods for configuring
the parser and parsing a document's content. These methods are described here:
ContentHandler getContentHandler() returns the current content
handler, which is an instance of a class that implements the
org.xml.sax.ContentHandler interface, or the null reference when
none has been registered.
DTDHandler getDTDHandler() returnsthecurrentDTDhandler,which
is an instance of a class that implements the org.xml.sax.DTDHandler
interface, or the null reference when none has been registered.
EntityResolver getEntityResolver() returns the current entity
resolver, which is an instance of a class that implements the
org.xml.sax.EntityResolver interface, or the null reference when
none has been registered.
ErrorHandler getErrorHandler() returns the current error handler,
which is an instance of a class that implements the
org.xml.sax.ErrorHandler interface, or the null reference when none
has been registered.
boolean getFeature(String name) returns the Boolean value that
correspondstothefeatureidentifiedby name ,whichmustbeafully-qualified
URI. This method throws
org.xml.sax.SAXNotRecognizedException when the name is not
recognized as a feature, and throws
org.xml.sax.SAXNotSupportedException whenthenameisrecog-
nized but the associated value cannot be determined when getFeature()
iscalled. SAXNotRecognizedException and SAXNotSupportedEx-
ception are subclasses of SAXException .
Object getProperty(String name) returns the
java.lang.Object instancethatcorrespondstothepropertyidentifiedby
name ,whichmustbeafully-qualifiedURI.Thismethodthrows SAXNotRe-
cognizedException when the name is not recognized as a property, and
throws SAXNotSupportedException when the name is recognized but
the associated value cannot be determined when getProperty() is called.
Search WWH ::




Custom Search