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<String,String> namespaces) |
Modifier and Type | Method and Description |
---|---|
org.jdom.Document |
build(InputStream is) |
org.jdom.Document |
build(Reader reader) |
org.jdom.Document |
build(XMLStreamReader r)
This will build a JDOM tree given a StAX stream reader.
|
Map<String,String> |
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<String,String> additionalNamespaces) |
void |
setFactory(org.jdom.JDOMFactory f) |
void |
setIgnoreWhitespace(boolean state) |
protected boolean cfgIgnoreWS
public void setAdditionalNamespaces(Map<String,String> 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(XMLStreamReader r) throws XMLStreamException
r
- Stream reader from which input is read.Document
- JDOM document object.XMLStreamException
- If the reader threw such exception (to
indicate a parsing or I/O problem)public org.jdom.Document build(InputStream is) throws XMLStreamException
XMLStreamException
public org.jdom.Document build(Reader reader) throws XMLStreamException
XMLStreamException
Apache CXF