Package com.sun.xml.ws.util.xml
Class XMLStreamReaderToXMLStreamWriter
- java.lang.Object
-
- com.sun.xml.ws.util.xml.XMLStreamReaderToXMLStreamWriter
-
public class XMLStreamReaderToXMLStreamWriter extends Object
Deprecated.use org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriterReads a sub-tree fromXMLStreamReaderand writes toXMLStreamWriteras-is.This class can be sub-classed to implement a simple transformation logic.
- Author:
- Kohsuke Kawaguchi, Ryan Shoemaker
-
-
Field Summary
Fields Modifier and Type Field Description protected XMLStreamReaderinDeprecated.protected XMLStreamWriteroutDeprecated.
-
Constructor Summary
Constructors Constructor Description XMLStreamReaderToXMLStreamWriter()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidbridge(XMLStreamReader in, XMLStreamWriter out)Deprecated.Reads one subtree and writes it out.protected voidhandleAttribute(int i)Deprecated.Writes out thei-th attribute of the current element.protected voidhandleCDATA()Deprecated.protected voidhandleCharacters()Deprecated.protected voidhandleComment()Deprecated.protected voidhandleDTD()Deprecated.protected voidhandleEndElement()Deprecated.protected voidhandleEntityReference()Deprecated.protected voidhandlePI()Deprecated.protected voidhandleSpace()Deprecated.protected voidhandleStartElement()Deprecated.
-
-
-
Field Detail
-
in
protected XMLStreamReader in
Deprecated.
-
out
protected XMLStreamWriter out
Deprecated.
-
-
Method Detail
-
bridge
public void bridge(XMLStreamReader in, XMLStreamWriter out) throws XMLStreamException
Deprecated.Reads one subtree and writes it out.The
XMLStreamWriternever receives a start/end document event. Those need to be written separately by the caller.- Throws:
XMLStreamException
-
handlePI
protected void handlePI() throws XMLStreamExceptionDeprecated.- Throws:
XMLStreamException
-
handleCharacters
protected void handleCharacters() throws XMLStreamExceptionDeprecated.- Throws:
XMLStreamException
-
handleEndElement
protected void handleEndElement() throws XMLStreamExceptionDeprecated.- Throws:
XMLStreamException
-
handleStartElement
protected void handleStartElement() throws XMLStreamExceptionDeprecated.- Throws:
XMLStreamException
-
handleAttribute
protected void handleAttribute(int i) throws XMLStreamExceptionDeprecated.Writes out thei-th attribute of the current element.Used from
handleStartElement().- Throws:
XMLStreamException
-
handleDTD
protected void handleDTD() throws XMLStreamExceptionDeprecated.- Throws:
XMLStreamException
-
handleComment
protected void handleComment() throws XMLStreamExceptionDeprecated.- Throws:
XMLStreamException
-
handleEntityReference
protected void handleEntityReference() throws XMLStreamExceptionDeprecated.- Throws:
XMLStreamException
-
handleSpace
protected void handleSpace() throws XMLStreamExceptionDeprecated.- Throws:
XMLStreamException
-
handleCDATA
protected void handleCDATA() throws XMLStreamExceptionDeprecated.- Throws:
XMLStreamException
-
-