|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.xml.parsers.DocumentBuilder | +--org.enhydra.apache.xerces.jaxp.DocumentBuilderImpl
Field Summary | |
(package private) static java.lang.String |
CREATE_ENTITY_REF_NODES_FEATURE
|
(package private) static java.lang.String |
INCLUDE_IGNORABLE_WHITESPACE
|
(package private) static java.lang.String |
XERCES_FEATURE_PREFIX
Xerces features |
Constructor Summary | |
(package private) |
DocumentBuilderImpl(DocumentBuilderFactory dbf,
java.util.Hashtable dbfAttrs)
|
Method Summary | |
DOMImplementation |
getDOMImplementation()
Obtain an instance of a DOMImplementation object. |
(package private) DOMParser |
getDOMParser()
|
boolean |
isNamespaceAware()
Indicates whether or not this parser is configured to understand namespaces. |
boolean |
isValidating()
Indicates whether or not this parser is configured to validate XML documents. |
Document |
newDocument()
Non-preferred: use the getDOMImplementation() method instead of this one to get a DOM Level 2 DOMImplementation object and then use DOM Level 2 methods to create a DOM Document object. |
Document |
parse(InputSource is)
Parse the content of the given input source as an XML document and return a new DOM Document object. |
void |
setEntityResolver(EntityResolver er)
Specify the EntityResolver to be used to resolve
entities present in the XML document to be parsed. |
void |
setErrorHandler(ErrorHandler eh)
Specify the ErrorHandler to be used to report
errors present in the XML document to be parsed. |
Methods inherited from class javax.xml.parsers.DocumentBuilder |
parse, parse, parse, parse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final java.lang.String XERCES_FEATURE_PREFIX
static final java.lang.String CREATE_ENTITY_REF_NODES_FEATURE
static final java.lang.String INCLUDE_IGNORABLE_WHITESPACE
Constructor Detail |
DocumentBuilderImpl(DocumentBuilderFactory dbf, java.util.Hashtable dbfAttrs) throws SAXNotRecognizedException, SAXNotSupportedException
Method Detail |
public Document newDocument()
newDocument
in class DocumentBuilder
public DOMImplementation getDOMImplementation()
DocumentBuilder
DOMImplementation
object.
getDOMImplementation
in class DocumentBuilder
DOMImplementation
.public Document parse(InputSource is) throws SAXException, java.io.IOException
DocumentBuilder
Document
object.
parse
in class DocumentBuilder
is
- InputSource containing the content to be parsed.
SAXException
- If any parse errors occur.
java.io.IOException
- If any IO errors occur.DocumentHandler
public boolean isNamespaceAware()
DocumentBuilder
isNamespaceAware
in class DocumentBuilder
public boolean isValidating()
DocumentBuilder
isValidating
in class DocumentBuilder
public void setEntityResolver(EntityResolver er)
DocumentBuilder
EntityResolver
to be used to resolve
entities present in the XML document to be parsed. Setting
this to null
will result in the underlying
implementation using it's own default implementation and
behavior.
setEntityResolver
in class DocumentBuilder
er
- The EntityResolver
to be used to resolve entities
present in the XML document to be parsed.public void setErrorHandler(ErrorHandler eh)
DocumentBuilder
ErrorHandler
to be used to report
errors present in the XML document to be parsed. Setting
this to null
will result in the underlying
implementation using it's own default implementation and
behavior.
setErrorHandler
in class DocumentBuilder
eh
- The ErrorHandler
to be used to report errors
present in the XML document to be parsed.DOMParser getDOMParser()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |