Methods Summary |
---|
public abstract org.w3c.dom.DOMImplementation | getDOMImplementation()Queries the DOM implementation this {@code DocumentBuilder} is working
on.
|
public abstract boolean | isNamespaceAware()Queries whether the {@code DocumentBuilder} has namespace support
enabled.
|
public abstract boolean | isValidating()Queries whether the {@code DocumentBuilder} has validation support
enabled.
|
public boolean | isXIncludeAware()Queries whether the {@code DocumentBuilder} has XInclude support enabled.
throw new UnsupportedOperationException();
|
public abstract org.w3c.dom.Document | newDocument()Creates a new, empty document, serving as the starting point for a DOM
tree.
|
public org.w3c.dom.Document | parse(java.lang.String uri)Parses an XML input stream from a given URI and builds a DOM tree from
it.
if (uri == null) {
throw new IllegalArgumentException();
}
return parse(new InputSource(uri));
|
public abstract org.w3c.dom.Document | parse(org.xml.sax.InputSource source)Parses an XML input source and builds a DOM tree from it.
|
public org.w3c.dom.Document | parse(java.io.File file)Parses a given XML file and builds a DOM tree from it.
if (file == null) {
throw new IllegalArgumentException();
}
return parse(new BufferedInputStream(new FileInputStream(file), 8192));
|
public org.w3c.dom.Document | parse(java.io.InputStream stream)Parses a given XML input stream and builds a DOM tree from it.
if (stream == null) {
throw new IllegalArgumentException();
}
return parse(new InputSource(stream));
|
public org.w3c.dom.Document | parse(java.io.InputStream stream, java.lang.String systemId)Parses a given XML input stream and builds a DOM tree from it.
if (stream == null) {
throw new IllegalArgumentException();
}
InputSource source = new InputSource(stream);
source.setSystemId(systemId);
return parse(source);
|
public void | reset()Resets the DocumentBuilder to the same state is was in after its
creation.
// Do nothing.
|
public abstract void | setEntityResolver(org.xml.sax.EntityResolver resolver)Sets the {@link EntityResolver} used for resolving entities encountered
during the parse process. Passing {@code null} results in the
{@code DocumentBuilder}'s own {@code EntityResolver} being used.
|
public abstract void | setErrorHandler(org.xml.sax.ErrorHandler handler)Sets the {@link ErrorHandler} used for dealing with errors encountered
during the parse process. Passing {@code null} results in the
{@code DocumentBuilder}'s own {@code ErrorHandler} being used.
|