|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.util.xml.XMLStreamReaderToXMLStreamWriter
public class XMLStreamReaderToXMLStreamWriter
Reads a sub-tree from XMLStreamReader and writes to XMLStreamWriter
as-is.
This class can be sub-classed to implement a simple transformation logic.
| Field Summary | |
|---|---|
protected javax.xml.stream.XMLStreamReader |
in
Deprecated. |
protected javax.xml.stream.XMLStreamWriter |
out
Deprecated. |
| Constructor Summary | |
|---|---|
XMLStreamReaderToXMLStreamWriter()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
bridge(javax.xml.stream.XMLStreamReader in,
javax.xml.stream.XMLStreamWriter out)
Deprecated. Reads one subtree and writes it out. |
protected void |
handleAttribute(int i)
Deprecated. Writes out the i-th attribute of the current element. |
protected void |
handleCDATA()
Deprecated. |
protected void |
handleCharacters()
Deprecated. |
protected void |
handleComment()
Deprecated. |
protected void |
handleDTD()
Deprecated. |
protected void |
handleEndElement()
Deprecated. |
protected void |
handleEntityReference()
Deprecated. |
protected void |
handlePI()
Deprecated. |
protected void |
handleSpace()
Deprecated. |
protected void |
handleStartElement()
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.xml.stream.XMLStreamReader in
protected javax.xml.stream.XMLStreamWriter out
| Constructor Detail |
|---|
public XMLStreamReaderToXMLStreamWriter()
| Method Detail |
|---|
public void bridge(javax.xml.stream.XMLStreamReader in,
javax.xml.stream.XMLStreamWriter out)
throws javax.xml.stream.XMLStreamException
The XMLStreamWriter never receives a start/end document event.
Those need to be written separately by the caller.
javax.xml.stream.XMLStreamException
protected void handlePI()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected void handleCharacters()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected void handleEndElement()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected void handleStartElement()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected void handleAttribute(int i)
throws javax.xml.stream.XMLStreamException
i-th attribute of the current element.
Used from handleStartElement().
javax.xml.stream.XMLStreamException
protected void handleDTD()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected void handleComment()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected void handleEntityReference()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected void handleSpace()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected void handleCDATA()
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 | |||||||||