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

Constructor Summary
protected DocumentBuilder()
           
 
Method Summary
abstract  org.w3c.dom.DOMImplementation getDOMImplementation()
           
abstract  boolean isNamespaceAware()
           
abstract  boolean isValidating()
           
abstract  org.w3c.dom.Document newDocument()
           
 org.w3c.dom.Document parse(java.io.File file)
          Constructs an InputSource from the file, and invokes parse ().
abstract  org.w3c.dom.Document parse(InputSource source)
           
 org.w3c.dom.Document parse(java.io.InputStream stream)
          Avoid using this call; provide the system ID wherever possible.
 org.w3c.dom.Document parse(java.io.InputStream stream, java.lang.String systemID)
           
 org.w3c.dom.Document parse(java.lang.String uri)
           
abstract  void setEntityResolver(EntityResolver resolver)
           
abstract  void setErrorHandler(ErrorHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentBuilder

protected DocumentBuilder()
Method Detail

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)