org.xml.sax |
|
Java Source File Name | Type | Comment |
AttributeList.java | Interface | Interface for an element's attribute specifications.
The SAX parser implements this interface and passes an instance
to the SAX application as the second argument of each startElement
event.
The instance provided will return valid results only during the
scope of the startElement invocation (to save it for future
use, the application must make a copy: the AttributeListImpl
helper class provides a convenient constructor for doing so).
An AttributeList includes only attributes that have been
specified or defaulted: #IMPLIED attributes will not be included.
There are two ways for the SAX application to obtain information
from the AttributeList. |
DocumentHandler.java | Interface | Receive notification of general document events.
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 setDocumentHandler method. |
DTDHandler.java | Interface | Receive notification of basic DTD-related events.
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.
If a SAX application needs to implement customized error
handling, it must implement this interface and then register an
instance with the SAX parser using the parser's setErrorHandler
method. |
HandlerBase.java | Class | Default base class for handlers. |
InputSource.java | Class | A single input source for an XML entity.
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.
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 document
handler's setDocumentLocator method. |
Parser.java | Interface | Basic interface for SAX (Simple API for XML) parsers. |
SAXException.java | Class | Encapsulate a general SAX error or warning.
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. |
SAXParseException.java | Class | Encapsulate an XML parse error or warning.
This exception will include information for locating the error
in the original XML document. |