|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.xfire.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(java.util.Map namespaces)
|
|
StaxBuilder(javax.xml.stream.XMLInputFactory xifactory)
|
|
| Method Summary | |
|---|---|
org.jdom.Document |
build(java.io.InputStream is)
|
org.jdom.Document |
build(java.io.Reader reader)
|
org.jdom.Document |
build(javax.xml.stream.XMLStreamReader r)
This will build a JDOM tree given a StAX stream reader. |
java.util.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(java.util.Map 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(java.util.Map namespaces)
public StaxBuilder(javax.xml.stream.XMLInputFactory xifactory)
| Method Detail |
|---|
public java.util.Map getAdditionalNamespaces()
public void setAdditionalNamespaces(java.util.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(java.io.InputStream is)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public org.jdom.Document build(java.io.Reader reader)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||