|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.codehaus.xfire.util.STAXStreamReader
Reads a DOM4J Document
, as well as other Node
s, from a StAX
XMLStreamReader
.
Constructor Summary | |
STAXStreamReader()
Constructs a default STAXEventReader instance with a
default DocumentFactory . |
|
STAXStreamReader(org.dom4j.DocumentFactory factory)
Constructs a STAXStreamReader instance that uses the
specified DocumentFactory to construct DOM4J Node s. |
Method Summary | |
org.dom4j.Element |
createElement(javax.xml.stream.XMLStreamReader reader)
|
org.dom4j.Document |
readDocument(java.io.InputStream is)
Constructs a StAX event stream from the provided I/O stream and reads a DOM4J document from it. |
org.dom4j.Document |
readDocument(java.io.InputStream is,
java.lang.String systemId)
|
org.dom4j.Document |
readDocument(java.io.Reader reader)
Constructs a StAX event stream from the provided I/O character stream and reads a DOM4J document from it. |
org.dom4j.Document |
readDocument(java.io.Reader reader,
java.lang.String systemId)
Constructs a StAX event stream from the provided I/O character stream and reads a DOM4J document from it. |
org.dom4j.Document |
readDocument(javax.xml.stream.XMLStreamReader reader)
Reads a DOM4J Document from the provided stream. |
org.dom4j.Element |
readElement(javax.xml.stream.XMLStreamReader reader)
|
org.dom4j.Entity |
readEntityReference(javax.xml.stream.XMLStreamReader reader)
|
void |
readNode(javax.xml.stream.XMLStreamReader reader,
org.dom4j.Branch node)
|
org.dom4j.ProcessingInstruction |
readProcessingInstruction(javax.xml.stream.XMLStreamReader reader)
Constructs a DOM4J ProcessingInstruction from the provided event stream. |
void |
setDocumentFactory(org.dom4j.DocumentFactory factory)
Sets the DocumentFactory to be used when constructing DOM4J nodes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public STAXStreamReader()
STAXEventReader
instance with a
default DocumentFactory
.
public STAXStreamReader(org.dom4j.DocumentFactory factory)
STAXStreamReader
instance that uses the
specified DocumentFactory
to construct DOM4J Node
s.
factory
- The DocumentFactory to use when constructing DOM4J nodes, or
null
if a default should be used.Method Detail |
public void setDocumentFactory(org.dom4j.DocumentFactory factory)
factory
- The DocumentFactory to use when constructing DOM4J nodes, or
null
if a default should be used.public org.dom4j.Document readDocument(java.io.InputStream is) throws javax.xml.stream.XMLStreamException
is
- The I/O stream from which the Document will be read.
javax.xml.stream.XMLStreamException
- If an error occurs reading content from the stream.public org.dom4j.Document readDocument(java.io.Reader reader) throws javax.xml.stream.XMLStreamException
reader
- The character stream from which the Document will be read.
javax.xml.stream.XMLStreamException
- If an error occurs reading content from the stream.public org.dom4j.Document readDocument(java.io.InputStream is, java.lang.String systemId) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public org.dom4j.Document readDocument(java.io.Reader reader, java.lang.String systemId) throws javax.xml.stream.XMLStreamException
reader
- The character stream from which the Document will be read.systemId
- A system id used to resolve entities.
javax.xml.stream.XMLStreamException
- If an error occurs reading content from the stream.public void readNode(javax.xml.stream.XMLStreamReader reader, org.dom4j.Branch node) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public org.dom4j.Document readDocument(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException
Document
from the provided stream. The stream
should be positioned at the start of a document, or before a
StartElement
event.
reader
- The event stream from which to read the Document
.
Document
that was read from the stream.
javax.xml.stream.XMLStreamException
- If an error occurs reading events from the stream.public org.dom4j.Element readElement(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public org.dom4j.Entity readEntityReference(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public org.dom4j.ProcessingInstruction readProcessingInstruction(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException
ProcessingInstruction
event.
reader
- The event stream from which to read the ProcessingInstruction.
javax.xml.stream.XMLStreamException
- If an error occured reading events from the stream, or the
stream was not positioned before a
ProcessingInstruction
event.public org.dom4j.Element createElement(javax.xml.stream.XMLStreamReader reader)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |