|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.parsers.DocumentBuilder
org.eclipse.ercp.jaxp.implForCore.DocumentBuilderImpl
public class DocumentBuilderImpl
Implementation of DocumentBuilder
Constructor Summary | |
---|---|
DocumentBuilderImpl(DocumentBuilderFactory factory)
Constructor for DocumentBuilderImpl. |
Method Summary | |
---|---|
DOMImplementation |
getDOMImplementation()
Obtain an instance of a DOMImplementation object. |
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()
Obtain a new instance of a DOM Document object
to build a DOM tree with. |
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 entityResolver)
Specify the EntityResolver to be used to resolve
entities present in the XML document to be parsed. |
void |
setErrorHandler(ErrorHandler errorHandler)
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 |
Constructor Detail |
---|
public DocumentBuilderImpl(DocumentBuilderFactory factory)
Method Detail |
---|
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.DocumentBuilder.parse(InputSource)
public boolean isNamespaceAware()
DocumentBuilder
isNamespaceAware
in class DocumentBuilder
DocumentBuilder.isNamespaceAware()
public boolean isValidating()
DocumentBuilder
isValidating
in class DocumentBuilder
DocumentBuilder.isValidating()
public void setEntityResolver(EntityResolver entityResolver)
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
entityResolver
- The EntityResolver
to be used to resolve entities
present in the XML document to be parsed.DocumentBuilder.setEntityResolver(EntityResolver)
public void setErrorHandler(ErrorHandler errorHandler)
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
errorHandler
- The ErrorHandler
to be used to report errors
present in the XML document to be parsed.DocumentBuilder.setErrorHandler(ErrorHandler)
public Document newDocument()
DocumentBuilder
Document
object
to build a DOM tree with. An alternative way to create a DOM
Document object is to use the
getDOMImplementation
method to get a DOM Level 2 DOMImplementation object and then use
DOM Level 2 methods on that object to create a DOM Document object.
newDocument
in class DocumentBuilder
DocumentBuilder.newDocument()
public DOMImplementation getDOMImplementation()
DocumentBuilder
DOMImplementation
object.
getDOMImplementation
in class DocumentBuilder
DOMImplementation
.DocumentBuilder.getDOMImplementation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |