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.DocumentBuilder
public org.w3c.dom.Document parse(org.xml.sax.InputSource is) throws java.io.IOException, org.xml.sax.SAXException
parse
in class javax.xml.parsers.DocumentBuilder
is
- the SAX input sourcejava.io.IOException
org.xml.sax.SAXException
public org.w3c.dom.Document parse(java.io.InputStream is) throws java.io.IOException, org.xml.sax.SAXException
parse
in class javax.xml.parsers.DocumentBuilder
is
- the input stream.java.io.IOException
org.xml.sax.SAXException
public 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.DocumentBuilder
is
- the input stream.systemId
- the stream's URL.java.io.IOException
org.xml.sax.SAXException
public boolean isNamespaceAware()
isNamespaceAware
in class javax.xml.parsers.DocumentBuilder
public boolean isValidating()
isValidating
in class javax.xml.parsers.DocumentBuilder
public void setEntityResolver(org.xml.sax.EntityResolver er)
setEntityResolver
in class javax.xml.parsers.DocumentBuilder
er
- the callback object to find included files.public void setErrorHandler(org.xml.sax.ErrorHandler eh)
setErrorHandler
in class javax.xml.parsers.DocumentBuilder
public org.w3c.dom.Document newDocument()
newDocument
in class javax.xml.parsers.DocumentBuilder