com.caucho.xml.parsers
Class AbstractDocumentBuilder

java.lang.Object
  extended by javax.xml.parsers.DocumentBuilder
      extended by com.caucho.xml.parsers.AbstractDocumentBuilder

public class AbstractDocumentBuilder
extends javax.xml.parsers.DocumentBuilder

JAXP document builder factory for strict XML parsing.


Field Summary
protected  XmlParser _parser
           
 
Constructor Summary
AbstractDocumentBuilder()
           
 
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
 

Field Detail

_parser

protected XmlParser _parser
Constructor Detail

AbstractDocumentBuilder

public AbstractDocumentBuilder()
Method Detail

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