|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--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
Constructor Summary | |
DOMParser()
|
Method Summary | |
java.lang.String |
getDocumentClassName()
get the document class for the document to construct. |
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(java.lang.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. |
java.lang.String |
toString()
Generate a description of various attributes of the parser for debugging purposes. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public DOMParser()
Method Detail |
public Document parse(InputSource is) throws SAXException, java.io.IOException
is
- InputSource containing the content to be parsed.DocumentHandler
,
javax.xml.parsers.DocumentBuilder.parse
public void setNamespaceAware(boolean enable)
public boolean isNamespaceAware()
javax.xml.parsers.DocumentBuilder.isNamespaceAware
public void setValidation(boolean enable)
public boolean isValidating()
javax.xml.parsers.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.javax.xml.parsers.DocumentBuilder.setEntityResolver
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.javax.xml.parsers.DocumentBuilder.setErrorHandler
public ErrorHandler getErrorHandler()
ErrorHandler
.public void setDocumentClassName(java.lang.String className)
public java.lang.String getDocumentClassName()
public Document newDocument()
javax.xml.parsers.DocumentBuilder.newDocument
public java.lang.String toString()
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |