All Packages Class Hierarchy This Package Previous Next Index
This interface is part of the Java implementation of SAX, the Simple API for XML. It is free for both commercial and non-commercial use, and is distributed with no warrantee, real or implied.
All SAX-conformant XML parsers (or their front-end SAX drivers) must implement this interface, together with a zero-argument constructor.
You can plug three different kinds of callback interfaces into a basic SAX parser: one for entity handling, one for basic document events, and one for error reporting. It is not an error to start a parse without setting any handlers.
public abstract void setEntityHandler(EntityHandler handler)
If you begin a parse without setting an entity handler, the parser will by default resolve all entities to their default system IDs.
public abstract void setDocumentHandler(DocumentHandler handler)
You may begin the parse without setting a handler, but in that case no document events will be reported.
public abstract void setErrorHandler(ErrorHandler handler)
If you begin a parse without setting an error handlers, warnings will be printed to System.err, and errors will throw an unspecified exception.
public abstract void parse(String publicID, String systemID) throws Exception
Nothing exciting will happen unless you have set handlers.
All Packages Class Hierarchy This Package Previous Next Index