gnu.xml.aelfred2
public final class SAXDriver extends Object implements Locator, Attributes2, XMLReader, Parser, AttributeList
Name | Notes |
---|---|
(URL)/external-general-entities | Value defaults to true |
(URL)/external-parameter-entities | Value defaults to true |
(URL)/is-standalone | (PRELIMINARY) Returns true iff the document's parsing has started (some non-error event after startDocument() was reported) and the document's standalone flag is set. |
(URL)/namespace-prefixes | Value defaults to false (but XML 1.0 names are always reported) |
(URL)/lexical-handler/parameter-entities | Value is fixed at true |
(URL)/namespaces | Value defaults to true |
(URL)/resolve-dtd-uris | (PRELIMINARY) Value defaults to true |
(URL)/string-interning | Value is fixed at true |
(URL)/use-attributes2 | (PRELIMINARY) Value is fixed at true |
(URL)/use-entity-resolver2 | (PRELIMINARY) Value defaults to true |
(URL)/validation | Value is fixed at false |
(URL)/declaration-handler | A declaration handler may be provided. |
(URL)/lexical-handler | A lexical handler may be provided. |
This parser currently implements the SAX1 Parser API, but it may not continue to do so in the future.
Version: $Date: 2001/11/19 18:27:20 $
See Also: Parser
Constructor Summary | |
---|---|
SAXDriver() Constructs a SAX Parser. |
Method Summary | |
---|---|
int | getColumnNumber()
SAX Locator method (don't invoke on parser); |
ContentHandler | getContentHandler()
SAX2: Returns the object used to report the logical
content of an XML document. |
DTDHandler | getDTDHandler()
SAX2: Returns the object used to process declarations related
to notations and unparsed entities. |
EntityResolver | getEntityResolver()
SAX2: Returns the object used when resolving external
entities during parsing (both general and parameter entities). |
ErrorHandler | getErrorHandler()
SAX2: Returns the object used to receive callbacks for XML
errors of all levels (fatal, nonfatal, warning); this is never null; |
boolean | getFeature(String featureId)
SAX2: Tells the value of the specified feature flag.
|
int | getIndex(String uri, String local)
SAX2 Attributes method (don't invoke on parser); |
int | getIndex(String xmlName)
SAX2 Attributes method (don't invoke on parser); |
int | getLength()
SAX1 AttributeList, SAX2 Attributes method
(don't invoke on parser); |
int | getLineNumber()
SAX Locator method (don't invoke on parser); |
String | getLocalName(int index)
SAX2 Attributes method (don't invoke on parser); |
String | getName(int i)
SAX1 AttributeList method (don't invoke on parser); |
Object | getProperty(String propertyId)
SAX2: Returns the specified property.
|
String | getPublicId()
SAX Locator method (don't invoke on parser); |
String | getQName(int i)
SAX2 Attributes method (don't invoke on parser); |
String | getSystemId()
SAX Locator method (don't invoke on parser); |
String | getType(int i)
SAX1 AttributeList, SAX2 Attributes method
(don't invoke on parser); |
String | getType(String uri, String local)
SAX2 Attributes method (don't invoke on parser); |
String | getType(String xmlName)
SAX1 AttributeList, SAX2 Attributes method
(don't invoke on parser); |
String | getURI(int index)
SAX2 Attributes method (don't invoke on parser); |
String | getValue(int i)
SAX1 AttributeList, SAX2 Attributes method
(don't invoke on parser); |
String | getValue(String uri, String local)
SAX Attributes method (don't invoke on parser); |
String | getValue(String xmlName)
SAX1 AttributeList, SAX2 Attributes method
(don't invoke on parser); |
boolean | isSpecified(int index)
SAX-ext Attributes2 method (don't invoke on parser); |
boolean | isSpecified(String uri, String local)
SAX-ext Attributes2 method (don't invoke on parser); |
boolean | isSpecified(String xmlName)
SAX-ext Attributes2 method (don't invoke on parser); |
void | parse(InputSource source)
SAX1, SAX2: Auxiliary API to parse an XML document, used mostly
when no URI is available.
|
void | parse(String systemId)
SAX1, SAX2: Preferred API to parse an XML document, using a
system identifier (URI). |
void | setContentHandler(ContentHandler handler)
SAX2: Assigns the object used to report the logical
content of an XML document. |
void | setDocumentHandler(DocumentHandler handler)
SAX1: Set the document handler for this parser. |
void | setDTDHandler(DTDHandler handler)
SAX1, SAX2: Set the DTD handler for this parser. |
void | setEntityResolver(EntityResolver resolver)
SAX1, SAX2: Set the entity resolver for this parser. |
void | setErrorHandler(ErrorHandler handler)
SAX1, SAX2: Set the error handler for this parser. |
void | setFeature(String featureId, boolean value)
SAX2: Sets the state of feature flags in this parser. |
void | setLocale(Locale locale)
SAX1: Sets the locale used for diagnostics; currently,
only locales using the English language are supported. |
void | setProperty(String propertyId, Object value)
SAX2: Assigns the specified property. |
Throws: SAXNotRecognizedException thrown if the feature flag is neither built in, nor yet assigned.
Throws: SAXNotRecognizedException thrown if the property value is neither built in, nor yet stored.
Parameters: source The XML input source. Don't set 'encoding' unless you know for a fact that it's correct.
Throws: SAXException The handlers may throw any SAXException, and the parser normally throws SAXParseException objects. IOException IOExceptions are normally through through the parser if there are problems reading the source document.
Deprecated: SAX2 programs should use the XMLReader interface and a ContentHandler.
SAX1: Set the document handler for this parser. If a content handler was set, this document handler will supplant it. The parser is set to report all XML 1.0 names rather than to filter out "xmlns" attributes (the "namespace-prefixes" feature is set to true).Parameters: handler The object to receive document events.
Parameters: handler The object to receive DTD events.
Parameters: handler The object to receive entity events.
Parameters: handler The object to receive error events.
Parameters: locale The locale for which diagnostics will be generated
Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2013-01-12.