August 2001
Intermediate to advanced
528 pages
14h 35m
English
JAXP provides an abstraction layer over the process of getting a vendor’s implementation of a SAX or DOM parser, as well as providing transformations in a vendor-neutral way.
This is the single package used in JAXP, and details the classes needed for the JAXP abstraction and pluggability layer over XML parsing.
This class is the wrapper over an underlying parser implementation class. It allows parsing to occur in a vendor-neutral way.
public abstract class DocumentBuilder {
public Document parse(InputStream stream)
throws SAXException, IOException, IllegalArgumentException;
public Document parse(InputStream stream, String systemID)
throws SAXException, IOException, IllegalArgumentException;
public Document parse(String uri)
throws SAXException, IOException, IllegalArgumentException;
public Document parse(File file)
throws SAXException, IOException, IllegalArgumentException;
public abstract Document parse(InputSource source)
throws SAXException, IOException, IllegalArgumentException;
public abstract Document newDocument( );
public abstract boolean isNamespaceAware( );
public abstract boolean isValidating( );
public abstract void setEntityResolver(EntityResolver er);
public abstract void setErrorHandler(ErrorHandler eh);
public DOMmplementation getDOMImplementation( );
}
This
class is the factory used to create instances of the
DocumentBuilder class, and allows namespace and validation features to be set ...
Read now
Unlock full access