|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.aegis.util.jdom.StaxBuilder
public class StaxBuilder
Builds a JDOM org.jdom.Document
using a
XMLStreamReader
.
Field Summary | |
---|---|
protected boolean |
cfgIgnoreWS
Whether ignorable white space should be ignored, ie not added in the resulting JDOM tree. |
Constructor Summary | |
---|---|
StaxBuilder()
Default constructor. |
|
StaxBuilder(Map<String,String> namespaces)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean cfgIgnoreWS
Constructor Detail |
---|
public StaxBuilder()
public StaxBuilder(Map<String,String> namespaces)
Method Detail |
---|
public Map<String,String> getAdditionalNamespaces()
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 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |