Interface for an attribute list. This interface provides
information about a list of attributes for an element (only
specified or defaulted attributes will be reported). Note that the
information returned by this object will be valid only during the
scope of the DocumentHandler.startElement callback, and the
attributes will not necessarily be provided in the order declared
or specified.
Handle general document events. This is the main client
interface for SAX: it contains callbacks for the most important
document events, such as the start and end of elements. You need
to create an object that implements this interface, and then
register it with the Parser. If you do not want to implement
the entire interface, you can derive a class from HandlerBase,
which implements the default functionality. You can find the
location of any document event using the Locator interface
supplied by setDocumentLocator().
Handle DTD events. This interface specifies only those DTD
events required for basic parsing (unparsed entities and
attributes). If you do not want to implement the entire interface,
you can extend HandlerBase, which implements the default
behaviour.
This is the basic interface for resolving entities. If you create an object
implementing this interface, then register the object with your
Parser instance, the parser will call the method in your object to
resolve all external entities. Note that HandlerBase implements
this interface with the default behaviour.
This is the basic interface for SAX error handlers. If you create an object
that implements this interface, then register the object with your
Parser, the parser will call the methods in your object to report
all warnings and errors. There are three levels of errors
available: warnings, (possibly) recoverable errors, and
unrecoverable errors. All methods take a SAXParseException as the
only parameter.
Default base class for handlers. This class implements the default
behaviour for four SAX interfaces, inheriting from them all:
EntityResolver, DTDHandler,
DocumentHandler, and ErrorHandler. Rather than
implementing those full interfaces, you may simply extend this
class and override the methods that you need. Note that the use of
this class is optional, since you are free to implement the
interfaces directly if you wish.
Interface for associating a SAX event with a document
location. A locator object will return valid results only during
calls to methods of the SAXDocumentHandler class;
at any other time, the results are unpredictable.
Basic interface for SAX parsers. All SAX
parsers must implement this basic interface: it allows users to
register handlers for different types of events and to initiate a
parse from a URI, a character stream, or a byte stream. SAX
parsers should also implement a zero-argument constructor.
Encapsulate an XML error or warning. This class can contain
basic error or warning information from either the XML parser or
the application: you can subclass it to provide additional
functionality, or to add localization. Note that although you will
receive a SAXException as the argument to the handlers in the
ErrorHandler interface, you are not actually required to throw
the exception; instead, you can simply read the information in
it.
Encapsulate an XML parse error or warning.
This exception will include information for locating the error in the
original XML document. Note that although the application will
receive a SAXParseException as the argument to the
handlers in the ErrorHandler interface, the application is not
actually required to throw the exception; instead, it can simply
read the information in it and take a different action.
Since this exception is a subclass of SAXException, it inherits
the ability to wrap another exception.