com.caucho.xml2.parsers
Class AbstractDocumentBuilder
java.lang.Object
javax.xml.parsers.DocumentBuilder
com.caucho.xml2.parsers.AbstractDocumentBuilder
public class AbstractDocumentBuilder
- extends javax.xml.parsers.DocumentBuilder
JAXP document builder factory for strict XML parsing.
Method Summary |
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)
|
Methods inherited from class javax.xml.parsers.DocumentBuilder |
getSchema, isXIncludeAware, parse, parse, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_parser
protected XmlParser _parser
AbstractDocumentBuilder
public AbstractDocumentBuilder()
getDOMImplementation
public org.w3c.dom.DOMImplementation getDOMImplementation()
- Specified by:
getDOMImplementation
in class javax.xml.parsers.DocumentBuilder
parse
public org.w3c.dom.Document parse(org.xml.sax.InputSource is)
throws java.io.IOException,
org.xml.sax.SAXException
- Parses the document based on an input source.
- Specified by:
parse
in class javax.xml.parsers.DocumentBuilder
- Parameters:
is
- the SAX input source
- Returns:
- the parsed document
- Throws:
java.io.IOException
org.xml.sax.SAXException
parse
public org.w3c.dom.Document parse(java.io.InputStream is)
throws java.io.IOException,
org.xml.sax.SAXException
- Parses the document based on an input stream.
- Overrides:
parse
in class javax.xml.parsers.DocumentBuilder
- Parameters:
is
- the input stream.
- Returns:
- the parsed document
- Throws:
java.io.IOException
org.xml.sax.SAXException
parse
public org.w3c.dom.Document parse(java.io.InputStream is,
java.lang.String systemId)
throws java.io.IOException,
org.xml.sax.SAXException
- Parses the document based on an input stream.
- Overrides:
parse
in class javax.xml.parsers.DocumentBuilder
- Parameters:
is
- the input stream.systemId
- the stream's URL.
- Returns:
- the parsed document
- Throws:
java.io.IOException
org.xml.sax.SAXException
isNamespaceAware
public boolean isNamespaceAware()
- Specified by:
isNamespaceAware
in class javax.xml.parsers.DocumentBuilder
isValidating
public boolean isValidating()
- Specified by:
isValidating
in class javax.xml.parsers.DocumentBuilder
setEntityResolver
public void setEntityResolver(org.xml.sax.EntityResolver er)
- Sets the callback to lookup included files.
- Specified by:
setEntityResolver
in class javax.xml.parsers.DocumentBuilder
- Parameters:
er
- the callback object to find included files.
setErrorHandler
public void setErrorHandler(org.xml.sax.ErrorHandler eh)
- Specified by:
setErrorHandler
in class javax.xml.parsers.DocumentBuilder
newDocument
public org.w3c.dom.Document newDocument()
- Specified by:
newDocument
in class javax.xml.parsers.DocumentBuilder