public abstract class XMLParser2 extends java.lang.Object implements XMLParser
DocumentBuilderFactory.| Modifier and Type | Field and Description |
|---|---|
private boolean |
coalescing |
private boolean |
expandEntityRef |
private boolean |
ignoreComments |
private boolean |
namespaceAware |
private boolean |
validating |
private boolean |
whitespace |
| Constructor and Description |
|---|
XMLParser2() |
| Modifier and Type | Method and Description |
|---|---|
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 java.lang.Object |
parseXML(java.io.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.
|
private boolean validating
private boolean namespaceAware
private boolean whitespace
private boolean expandEntityRef
private boolean ignoreComments
private boolean coalescing
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 java.lang.Object parseXML(java.io.InputStream stream)
XMLParser