org.xml.sax |
|
Java Source File Name | Type | Comment |
AttributeList.java | Interface | Interface for an element's attribute specifications.
This module, both source code and documentation, is in the
Public Domain, and comes with NO WARRANTY.
This is the original SAX1 interface for reporting an element's
attributes. |
Attributes.java | Interface | Interface for a list of XML attributes.
This module, both source code and documentation, is in the
Public Domain, and comes with NO WARRANTY.
This interface allows access to a list of attributes in
three different ways:
- by attribute index;
- by Namespace-qualified name; or
- by qualified (prefixed) name.
The list will not contain attributes that were declared
#IMPLIED but not specified in the start tag. |
ContentHandler.java | Interface | Receive notification of the logical content of a document.
This module, both source code and documentation, is in the
Public Domain, and comes with NO WARRANTY.
This is the main interface that most SAX applications
implement: if the application needs to be informed of basic parsing
events, it implements this interface and registers an instance with
the SAX parser using the
org.xml.sax.XMLReader.setContentHandler setContentHandler method. |
DocumentHandler.java | Interface | Receive notification of general document events.
This module, both source code and documentation, is in the
Public Domain, and comes with NO WARRANTY.
This was the main event-handling interface for SAX1; in
SAX2, it has been replaced by
org.xml.sax.ContentHandlerContentHandler , which provides Namespace support and reporting
of skipped entities. |
DTDHandler.java | Interface | Receive notification of basic DTD-related events.
This module, both source code and documentation, is in the
Public Domain, and comes with NO WARRANTY.
If a SAX application needs information about notations and
unparsed entities, then the application implements this
interface and registers an instance with the SAX parser using
the parser's setDTDHandler method. |
EntityResolver.java | Interface | Basic interface for resolving entities. |
ErrorHandler.java | Interface | Basic interface for SAX error handlers.
This module, both source code and documentation, is in the
Public Domain, and comes with NO WARRANTY.
If a SAX application needs to implement customized error
handling, it must implement this interface and then register an
instance with the XML reader using the
org.xml.sax.XMLReader.setErrorHandler setErrorHandler method. |
HandlerBase.java | Class | Default base class for handlers.
This module, both source code and documentation, is in the
Public Domain, and comes with NO WARRANTY.
This class implements the default behaviour for four SAX1
interfaces: EntityResolver, DTDHandler, DocumentHandler,
and ErrorHandler. |
InputSource.java | Class | A single input source for an XML entity.
This module, both source code and documentation, is in the
Public Domain, and comes with NO WARRANTY.
This class allows a SAX application to encapsulate information
about an input source in a single object, which may include
a public identifier, a system identifier, a byte stream (possibly
with a specified encoding), and/or a character stream.
There are two places that the application will deliver this
input source to the parser: as the argument to the Parser.parse
method, or as the return value of the EntityResolver.resolveEntity
method.
The SAX parser will use the InputSource object to determine how
to read XML input. |
Locator.java | Interface | Interface for associating a SAX event with a document location.
This module, both source code and documentation, is in the
Public Domain, and comes with NO WARRANTY.
If a SAX parser provides location information to the SAX
application, it does so by implementing this interface and then
passing an instance to the application using the content
handler's
org.xml.sax.ContentHandler.setDocumentLocatorsetDocumentLocator method. |
Parser.java | Interface | Basic interface for SAX (Simple API for XML) parsers. |
SAXException.java | Class | Encapsulate a general SAX error or warning.
This module, both source code and documentation, is in the
Public Domain, and comes with NO WARRANTY.
This class can contain basic error or warning information from
either the XML parser or the application: a parser writer or
application writer can subclass it to provide additional
functionality. |
SAXNotRecognizedException.java | Class | Exception class for an unrecognized identifier. |
SAXNotSupportedException.java | Class | Exception class for an unsupported operation.
This module, both source code and documentation, is in the
Public Domain, and comes with NO WARRANTY.
An XMLReader will throw this exception when it recognizes a
feature or property identifier, but cannot perform the requested
operation (setting a state or value). |
SAXParseException.java | Class | Encapsulate an XML parse error or warning.
This module, both source code and documentation, is in the
Public Domain, and comes with NO WARRANTY.
This exception will include information for locating the error
in the original XML document. |
XMLFilter.java | Interface | Interface for an XML filter.
This module, both source code and documentation, is in the
Public Domain, and comes with NO WARRANTY.
An XML filter is like an XML reader, except that it obtains its
events from another XML reader rather than a primary source like
an XML document or database. |
XMLReader.java | Interface | Interface for reading an XML document using callbacks.
This module, both source code and documentation, is in the
Public Domain, and comes with NO WARRANTY.
Note: despite its name, this interface does
not extend the standard Java
java.io.Reader Reader
interface, because reading XML is a fundamentally different activity
than reading character data.
XMLReader is the interface that an XML parser's SAX2 driver must
implement. |