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 |
|---|---|
Document |
build(InputStream is) |
Document |
build(Reader reader) |
Document |
build(XMLStreamReader r)
This will build a JDOM tree given a StAX stream reader.
|
Map<String,String> |
getAdditionalNamespaces() |
JDOMFactory |
getFactory()
Returns the current
org.jdom.JDOMFactory in use, if one has been
previously set with setFactory(JDOMFactory), otherwise null. |
void |
setAdditionalNamespaces(Map<String,String> additionalNamespaces) |
void |
setFactory(JDOMFactory f) |
void |
setIgnoreWhitespace(boolean state) |
protected boolean cfgIgnoreWS
public void setAdditionalNamespaces(Map<String,String> additionalNamespaces)
public void setFactory(JDOMFactory f)
public void setIgnoreWhitespace(boolean state)
public JDOMFactory getFactory()
org.jdom.JDOMFactory in use, if one has been
previously set with setFactory(JDOMFactory), otherwise null.public 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 Document build(InputStream is) throws XMLStreamException
XMLStreamExceptionpublic Document build(Reader reader) throws XMLStreamException
XMLStreamExceptionApache CXF