public abstract class XMLParser2 extends Object implements XMLParser
DocumentBuilderFactory
.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 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.
|
public XMLParser2()
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)
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.