Class Reader2Writer
- java.lang.Object
-
- org.apache.axis2.jaxws.message.util.Reader2Writer
-
public class Reader2Writer extends Object
Reader2Writer This is a simple converter that is constructed with an XMLStreamReader and allows you to write the contents to an XMLStreamWriter.
-
-
Constructor Summary
Constructors Constructor Description Reader2Writer(XMLStreamReader reader)
Construct from a ReaderReader2Writer(XMLStreamReader reader, boolean closeReader)
Construct from a Reader
-
-
-
Constructor Detail
-
Reader2Writer
public Reader2Writer(XMLStreamReader reader)
Construct from a Reader- Parameters:
reader
- -- the input to the converter
-
Reader2Writer
public Reader2Writer(XMLStreamReader reader, boolean closeReader)
Construct from a Reader- Parameters:
reader
- -- the input to the convertercloseReader
- -- close the reader upon completion
-
-
Method Detail
-
outputTo
public void outputTo(XMLStreamWriter writer) throws XMLStreamException
outputTo the writer.- Parameters:
writer
- -- the output of the converter- Throws:
XMLStreamException
-
-