|
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 | |
---|---|
Document |
build(InputStream is)
|
Document |
build(Reader reader)
|
Document |
build(javax.xml.stream.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)
|
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(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(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 Document build(InputStream is) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public Document build(Reader reader) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |