javax.xml.parsers

Class DocumentBuilder

public abstract class DocumentBuilder extends Object

DocumentBuilder

Version: $Id: DocumentBuilder.java,v 1.6 2001/11/02 21:40:25 db Exp $

Author: Andrew Selkirk, David Brownell

Constructor Summary
protected DocumentBuilder()
Method Summary
abstract DOMImplementationgetDOMImplementation()
abstract booleanisNamespaceAware()
abstract booleanisValidating()
abstract DocumentnewDocument()
Documentparse(File file)
Constructs an InputSource from the file, and invokes parse ().
abstract Documentparse(InputSource source)
Documentparse(InputStream stream)
Avoid using this call; provide the system ID wherever possible.
Documentparse(InputStream stream, String systemID)
Documentparse(String uri)
abstract voidsetEntityResolver(EntityResolver resolver)
abstract voidsetErrorHandler(ErrorHandler handler)

Constructor Detail

DocumentBuilder

protected DocumentBuilder()

Method Detail

getDOMImplementation

public abstract DOMImplementation getDOMImplementation()

isNamespaceAware

public abstract boolean isNamespaceAware()

isValidating

public abstract boolean isValidating()

newDocument

public abstract Document newDocument()

parse

public Document parse(File file)
Constructs an InputSource from the file, and invokes parse (). The InputSource includes the URI for the file.

parse

public abstract Document parse(InputSource source)

parse

public Document parse(InputStream stream)
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(InputStream stream, String systemID)

parse

public Document parse(String uri)

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 2011-08-26.