javax.xml.parsers
Class DocumentBuilder
java.lang.Object
|
+--javax.xml.parsers.DocumentBuilder
- public abstract class DocumentBuilder
- extends java.lang.Object
DocumentBuilder
- Version:
- $Id: DocumentBuilder.java,v 1.6 2001/11/02 21:40:25 db Exp $
- Author:
- Andrew Selkirk, David Brownell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentBuilder
protected DocumentBuilder()
getDOMImplementation
public abstract DOMImplementation getDOMImplementation()
isNamespaceAware
public abstract boolean isNamespaceAware()
isValidating
public abstract boolean isValidating()
newDocument
public abstract Document newDocument()
parse
public Document parse(java.io.File file)
throws SAXException,
java.io.IOException
- Constructs an InputSource from the file, and invokes parse ().
The InputSource includes the URI for the file.
parse
public abstract Document parse(InputSource source)
throws SAXException,
java.io.IOException
parse
public Document parse(java.io.InputStream stream)
throws SAXException,
java.io.IOException
- Avoid using this call; provide the system ID wherever possible.
System IDs are essential when parsers resolve relative URIs,
or provide diagnostics.
parse
public Document parse(java.io.InputStream stream,
java.lang.String systemID)
throws SAXException,
java.io.IOException
parse
public Document parse(java.lang.String uri)
throws SAXException,
java.io.IOException
setEntityResolver
public abstract void setEntityResolver(EntityResolver resolver)
setErrorHandler
public abstract void setErrorHandler(ErrorHandler handler)
Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2001-11-20.