All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.microstar.xml.HandlerBase
This base class implements the XmlHandler interface with
(mostly empty) default handlers. You are not required to use this,
but if you need to handle only a few events, you might find
it convenient to extend this class rather than implementing
the entire interface. This example overrides only the
charData method, using the defaults for the others:
import com.microstar.xml.HandlerBase;
public class MyHandler extends HandlerBase {
public void charData (char ch[], int start, int length)
{
System.out.println("Data: " + new String (ch, start, length));
}
}
This class is optional, but if you use it, you must also
include the XmlException class.
Do not extend this if you are using SAX; extend
org.xml.sax.HandlerBase instead.
public HandlerBase()
public void startDocument() throws Exception
The default implementation does nothing.
public void endDocument() throws Exception
The default implementation does nothing.
public Object resolveEntity(String publicId,
String systemId) throws Exception
The default implementation simply returns the supplied system identifier.
public void startExternalEntity(String systemId) throws Exception
The default implementation does nothing.
public void endExternalEntity(String systemId) throws Exception
The default implementation does nothing.
public void doctypeDecl(String name,
String publicId,
String systemId) throws Exception
The default implementation does nothing.
public void attribute(String aname,
String value,
boolean isSpecified) throws Exception
The default implementation does nothing.
public void startElement(String elname) throws Exception
The default implementation does nothing.
public void endElement(String elname) throws Exception
The default implementation does nothing.
public void charData(char ch[],
int start,
int length) throws Exception
The default implementation does nothing.
public void ignorableWhitespace(char ch[],
int start,
int length) throws Exception
The default implementation does nothing.
public void processingInstruction(String target,
String data) throws Exception
The default implementation does nothing.
public void error(String message,
String systemId,
int line,
int column) throws XmlException, Exception
The default implementation throws XmlException.
All Packages Class Hierarchy This Package Previous Next Index