org.apache.xerces.jaxp
Class DocumentBuilderImpl
java.lang.Object
|
+--javax.xml.parsers.DocumentBuilder
|
+--org.apache.xerces.jaxp.DocumentBuilderImpl
- public class DocumentBuilderImpl
- extends javax.xml.parsers.DocumentBuilder
The DocumentBuilder
implementation for the Apache Xerces XML
parser.
- Version:
- $Revision: 1.1 $ $Date: 2000/02/26 05:58:12 $
- Author:
- Pierpaolo Fumagalli
(Apache Software Foundation, Exoffice Technologies)
Constructor Summary |
protected |
DocumentBuilderImpl(boolean namespaces,
boolean validation)
Create a new SAXParserFactoryImpl instance. |
Methods inherited from class javax.xml.parsers.DocumentBuilder |
parse,
parse,
parse |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DocumentBuilderImpl
protected DocumentBuilderImpl(boolean namespaces,
boolean validation)
throws javax.xml.parsers.ParserConfigurationException
- Create a new
SAXParserFactoryImpl
instance.
parse
public Document parse(InputSource source)
throws SAXException,
java.io.IOException,
java.lang.IllegalArgumentException
- Parses the content of the given
InputSource
and returns
a Document
object.
- Overrides:
- parse in class javax.xml.parsers.DocumentBuilder
- Tags copied from class: javax.xml.parsers.DocumentBuilder
- Throws:
- SAXException - If there is a problem parsing the given XML
content.
- java.io.IOException - if any IO Errors occur while reading content
from the given
InputSource
.- java.lang.IllegalArgumentException - if the given
InputSource
is null.
newDocument
public Document newDocument()
- Creates an new
Document
instance from the underlying DOM
implementation.
- Overrides:
- newDocument in class javax.xml.parsers.DocumentBuilder
isNamespaceAware
public boolean isNamespaceAware()
- Returns whether or not this parser supports XML namespaces.
- Overrides:
- isNamespaceAware in class javax.xml.parsers.DocumentBuilder
isValidating
public boolean isValidating()
- Returns whether or not this parser supports validating XML content.
- Overrides:
- isValidating in class javax.xml.parsers.DocumentBuilder
setEntityResolver
public void setEntityResolver(EntityResolver er)
- Specifies the
EntityResolver
to be used by this
DocumentBuilderImpl
.
- Overrides:
- setEntityResolver in class javax.xml.parsers.DocumentBuilder
setErrorHandler
public void setErrorHandler(ErrorHandler eh)
- Specifies the
ErrorHandler
to be used by this
DocumentBuilderImpl
.
- Overrides:
- setErrorHandler in class javax.xml.parsers.DocumentBuilder
Copyright © 1999 Apache XML Project. All Rights Reserved.