public class StaxBuilder extends Object
org.jdom.Document
using a
XMLStreamReader
.Modifier and Type | Field and Description |
---|---|
protected boolean |
cfgIgnoreWS
Whether ignorable white space should be ignored, ie not added in the
resulting JDOM tree.
|
Constructor and Description |
---|
StaxBuilder()
Default constructor.
|
StaxBuilder(Map namespaces) |
Modifier and Type | Method and Description |
---|---|
org.jdom.Document |
build(InputStream is) |
org.jdom.Document |
build(Reader reader) |
org.jdom.Document |
build(javax.xml.stream.XMLStreamReader r)
This will build a JDOM tree given a StAX stream reader.
|
Map |
getAdditionalNamespaces() |
org.jdom.JDOMFactory |
getFactory()
Returns the current
JDOMFactory in use, if one has been
previously set with setFactory(org.jdom.JDOMFactory) , otherwise null. |
void |
setAdditionalNamespaces(Map additionalNamespaces) |
void |
setFactory(org.jdom.JDOMFactory f) |
void |
setIgnoreWhitespace(boolean state) |
protected boolean cfgIgnoreWS
public StaxBuilder()
public StaxBuilder(Map namespaces)
public Map getAdditionalNamespaces()
public void setAdditionalNamespaces(Map additionalNamespaces)
public void setFactory(org.jdom.JDOMFactory f)
public void setIgnoreWhitespace(boolean state)
public org.jdom.JDOMFactory getFactory()
JDOMFactory
in use, if one has been
previously set with setFactory(org.jdom.JDOMFactory)
, otherwise null.public org.jdom.Document build(javax.xml.stream.XMLStreamReader r) throws javax.xml.stream.XMLStreamException
r
- Stream reader from which input is read.Document
- JDOM document object.javax.xml.stream.XMLStreamException
- If the reader threw such exception (to
indicate a parsing or I/O problem)public org.jdom.Document build(InputStream is) throws javax.xml.stream.XMLStreamException
public org.jdom.Document build(Reader reader) throws javax.xml.stream.XMLStreamException
Apache CXF