public abstract class DocumentBuilder extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
DocumentBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract org.w3c.dom.DOMImplementation |
getDOMImplementation()
Returns the DOM implementation.
|
javax.xml.validation.Schema |
getSchema()
Returns the schema in use by the XML processor.
|
abstract boolean |
isNamespaceAware()
Indicates whether this document builder is XML Namespace aware.
|
abstract boolean |
isValidating()
Indicates whether this document builder will validate its input.
|
boolean |
isXIncludeAware()
Returns the XInclude processing mode in use by the parser.
|
abstract org.w3c.dom.Document |
newDocument()
Creates a new, empty DOM Document.
|
org.w3c.dom.Document |
parse(java.io.File f)
Parse the specified file and return a DOM Document.
|
abstract org.w3c.dom.Document |
parse(org.xml.sax.InputSource source)
Parse the specified input source and return a DOM Document.
|
org.w3c.dom.Document |
parse(java.io.InputStream is)
Parse the specified input stream and return a DOM Document.
|
org.w3c.dom.Document |
parse(java.io.InputStream is,
java.lang.String systemId)
Parse the specified input stream and return a DOM Document.
|
org.w3c.dom.Document |
parse(java.lang.String uri)
Parse the content of the specified URI and return a DOM Document.
|
void |
reset()
Reset this document builder to its original configuration.
|
abstract void |
setEntityResolver(org.xml.sax.EntityResolver er)
Sets the SAX entity resolver callback used to resolve external entities
in the XML document(s) to parse.
|
abstract void |
setErrorHandler(org.xml.sax.ErrorHandler eh)
Sets the SAX error handler callback used to report parsing errors.
|
protected DocumentBuilder()
public org.w3c.dom.Document parse(java.io.InputStream is) throws org.xml.sax.SAXException, java.io.IOException
is - an XML input streamjava.lang.IllegalArgumentException - if the input stream is nullorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic org.w3c.dom.Document parse(java.io.InputStream is, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
is - an XML input streamsystemId - the system ID of the XML documentjava.lang.IllegalArgumentException - if the input stream is nullorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic org.w3c.dom.Document parse(java.lang.String uri) throws org.xml.sax.SAXException, java.io.IOException
uri - an XML system IDjava.lang.IllegalArgumentException - if the URI is nullorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic org.w3c.dom.Document parse(java.io.File f) throws org.xml.sax.SAXException, java.io.IOException
f - the XML filejava.lang.IllegalArgumentException - if the file is nullorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic abstract org.w3c.dom.Document parse(org.xml.sax.InputSource source) throws org.xml.sax.SAXException, java.io.IOException
source - the input sourcejava.lang.IllegalArgumentException - if the input source is nullorg.xml.sax.SAXExceptionjava.io.IOExceptionpublic abstract boolean isNamespaceAware()
public abstract boolean isValidating()
public abstract void setEntityResolver(org.xml.sax.EntityResolver er)
er - an entity resolverpublic abstract void setErrorHandler(org.xml.sax.ErrorHandler eh)
eh - the error handlerpublic abstract org.w3c.dom.Document newDocument()
DOMImplementation instead.DOMImplementation.createDocument(java.lang.String, java.lang.String, org.w3c.dom.DocumentType)public abstract org.w3c.dom.DOMImplementation getDOMImplementation()
public void reset()
public javax.xml.validation.Schema getSchema()
public boolean isXIncludeAware()