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.1 2002/04/13 00:12:05 yoren 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 org.w3c.dom.DOMImplementation getDOMImplementation()
isNamespaceAware
public abstract boolean isNamespaceAware()
isValidating
public abstract boolean isValidating()
newDocument
public abstract org.w3c.dom.Document newDocument()
parse
public org.w3c.dom.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.
SAXException
java.io.IOException
parse
public abstract org.w3c.dom.Document parse(InputSource source)
throws SAXException,
java.io.IOException
SAXException
java.io.IOException
parse
public org.w3c.dom.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.
SAXException
java.io.IOException
parse
public org.w3c.dom.Document parse(java.io.InputStream stream,
java.lang.String systemID)
throws SAXException,
java.io.IOException
SAXException
java.io.IOException
parse
public org.w3c.dom.Document parse(java.lang.String uri)
throws SAXException,
java.io.IOException
SAXException
java.io.IOException
setEntityResolver
public abstract void setEntityResolver(EntityResolver resolver)
setErrorHandler
public abstract void setErrorHandler(ErrorHandler handler)