public class AbstractDocumentBuilder
extends javax.xml.parsers.DocumentBuilder
| Constructor and Description |
|---|
AbstractDocumentBuilder() |
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.DOMImplementation |
getDOMImplementation() |
boolean |
isNamespaceAware() |
boolean |
isValidating() |
org.w3c.dom.Document |
newDocument() |
org.w3c.dom.Document |
parse(org.xml.sax.InputSource is)
Parses the document based on an input source.
|
org.w3c.dom.Document |
parse(java.io.InputStream is)
Parses the document based on an input stream.
|
org.w3c.dom.Document |
parse(java.io.InputStream is,
java.lang.String systemId)
Parses the document based on an input stream.
|
void |
setEntityResolver(org.xml.sax.EntityResolver er)
Sets the callback to lookup included files.
|
void |
setErrorHandler(org.xml.sax.ErrorHandler eh) |
protected XmlParser _parser
public org.w3c.dom.DOMImplementation getDOMImplementation()
getDOMImplementation in class javax.xml.parsers.DocumentBuilderpublic org.w3c.dom.Document parse(org.xml.sax.InputSource is)
throws java.io.IOException,
org.xml.sax.SAXException
parse in class javax.xml.parsers.DocumentBuilderis - the SAX input sourcejava.io.IOExceptionorg.xml.sax.SAXExceptionpublic org.w3c.dom.Document parse(java.io.InputStream is)
throws java.io.IOException,
org.xml.sax.SAXException
parse in class javax.xml.parsers.DocumentBuilderis - the input stream.java.io.IOExceptionorg.xml.sax.SAXExceptionpublic org.w3c.dom.Document parse(java.io.InputStream is,
java.lang.String systemId)
throws java.io.IOException,
org.xml.sax.SAXException
parse in class javax.xml.parsers.DocumentBuilderis - the input stream.systemId - the stream's URL.java.io.IOExceptionorg.xml.sax.SAXExceptionpublic boolean isNamespaceAware()
isNamespaceAware in class javax.xml.parsers.DocumentBuilderpublic boolean isValidating()
isValidating in class javax.xml.parsers.DocumentBuilderpublic void setEntityResolver(org.xml.sax.EntityResolver er)
setEntityResolver in class javax.xml.parsers.DocumentBuilderer - the callback object to find included files.public void setErrorHandler(org.xml.sax.ErrorHandler eh)
setErrorHandler in class javax.xml.parsers.DocumentBuilderpublic org.w3c.dom.Document newDocument()
newDocument in class javax.xml.parsers.DocumentBuilder