|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jxpath.xml.XMLParser2
public abstract class XMLParser2
The abstract superclass of XML parsers that produce DOM Documents.
The features have the same defaults as DocumentBuilderFactory
.
Constructor Summary | |
---|---|
XMLParser2()
|
Method Summary | |
---|---|
boolean |
isCoalescing()
Learn whether the underlying parser is coalescing. |
boolean |
isExpandEntityReferences()
Learn whether the underlying parser expands entity references. |
boolean |
isIgnoringComments()
Learn whether the underlying parser ignores comments. |
boolean |
isIgnoringElementContentWhitespace()
Learn whether the underlying parser is ignoring whitespace. |
boolean |
isNamespaceAware()
Learn whether the underlying parser is ns-aware. |
boolean |
isValidating()
Learn whether the underlying parser is validating. |
abstract Object |
parseXML(InputStream stream)
Reads the supplied XML file and returns the resulting model, which is not necessarily DOM. |
void |
setCoalescing(boolean coalescing)
Set whether the underlying parser is coalescing. |
void |
setExpandEntityReferences(boolean expandEntityRef)
Set whether the underlying parser expands entity references. |
void |
setIgnoringComments(boolean ignoreComments)
Set whether the underlying parser ignores comments. |
void |
setIgnoringElementContentWhitespace(boolean whitespace)
Set whether the underlying parser is ignoring whitespace. |
void |
setNamespaceAware(boolean namespaceAware)
Set whether the underlying parser is ns-aware. |
void |
setValidating(boolean validating)
Set whether the underlying parser should be validating. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLParser2()
Method Detail |
---|
public void setValidating(boolean validating)
validating
- flagDocumentBuilderFactory.setValidating(boolean)
public boolean isValidating()
DocumentBuilderFactory.isValidating()
public boolean isNamespaceAware()
DocumentBuilderFactory.isNamespaceAware()
public void setNamespaceAware(boolean namespaceAware)
namespaceAware
- flagDocumentBuilderFactory.setNamespaceAware(boolean)
public void setIgnoringElementContentWhitespace(boolean whitespace)
whitespace
- flagDocumentBuilderFactory.setIgnoringElementContentWhitespace(boolean)
public boolean isIgnoringElementContentWhitespace()
DocumentBuilderFactory.isIgnoringElementContentWhitespace()
public boolean isExpandEntityReferences()
DocumentBuilderFactory.isExpandEntityReferences()
public void setExpandEntityReferences(boolean expandEntityRef)
expandEntityRef
- flagDocumentBuilderFactory.setExpandEntityReferences(boolean)
public boolean isIgnoringComments()
DocumentBuilderFactory.isIgnoringComments()
public void setIgnoringComments(boolean ignoreComments)
ignoreComments
- flagDocumentBuilderFactory.setIgnoringComments(boolean)
public boolean isCoalescing()
DocumentBuilderFactory.isCoalescing()
public void setCoalescing(boolean coalescing)
coalescing
- flagDocumentBuilderFactory.setCoalescing(boolean)
public abstract Object parseXML(InputStream stream)
XMLParser
parseXML
in interface XMLParser
stream
- InputStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |