|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.xml.parsers.DocumentBuilder | +--org.enhydra.xml.io.DOMParser
XML parser that parsers to a DOM. This implements the JAXP DOM parser interface plus the following additional features:
DocumentBuilder
Inner Class Summary | |
(package private) class |
DOMParser.XercesParser
Need standarderror handler, this is just a tmp hack. |
Constructor Summary | |
DOMParser()
|
Method Summary | |
String |
getDocumentClassName()
get the document class for the document to construct. |
DOMImplementation |
getDOMImplementation()
Obtain an instance of a DOMImplementation object. |
EntityResolver |
getEntityResolver()
Get the EntityResolver |
ErrorHandler |
getErrorHandler()
Get the ErrorHandler . |
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 |
setDocumentClassName(String className)
Set the document class for the document to construct. |
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 handle parse
errors. |
void |
setNamespaceAware(boolean enable)
Enable or disable namespaces. |
void |
setValidation(boolean enable)
Enable or disable validation. |
String |
toString()
Generate a description of various attributes of the parser for debugging purposes. |
Methods inherited from class javax.xml.parsers.DocumentBuilder |
getSchema, isXIncludeAware, parse, parse, parse, parse, reset |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public DOMParser()
Method Detail |
public Document parse(InputSource is) throws SAXException, IOException
parse
in class DocumentBuilder
is
- InputSource containing the content to be parsed.IOException
- If any IO errors occur.SAXException
- If any parse errors occur.IllegalArgumentException
- If the InputSource is nullDocumentBuilder.parse(java.io.InputStream)
public void setNamespaceAware(boolean enable)
public boolean isNamespaceAware()
isNamespaceAware
in class DocumentBuilder
DocumentBuilder.isNamespaceAware()
public void setValidation(boolean enable)
public boolean isValidating()
isValidating
in class DocumentBuilder
DocumentBuilder.isValidating()
public void setEntityResolver(EntityResolver er)
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
DocumentBuilder.setEntityResolver(org.xml.sax.EntityResolver)
public EntityResolver getEntityResolver()
EntityResolver
public void setErrorHandler(ErrorHandler eh)
ErrorHandler
to be used handle parse
errors. Setting
this to null
will result in the underlying
implementation using it's own default implementation and
behavior.setErrorHandler
in class DocumentBuilder
DocumentBuilder.setErrorHandler(org.xml.sax.ErrorHandler)
public ErrorHandler getErrorHandler()
ErrorHandler
.public void setDocumentClassName(String className)
public String getDocumentClassName()
public Document newDocument()
newDocument
in class DocumentBuilder
DocumentBuilder.newDocument()
public DOMImplementation getDOMImplementation()
DOMImplementation
object.getDOMImplementation
in class DocumentBuilder
DOMImplementation
.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |