org.apache.axis2.jaxws.message.util
Class Reader2Writer

java.lang.Object
  extended by org.apache.axis2.jaxws.message.util.Reader2Writer

public class Reader2Writer
extends java.lang.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
Reader2Writer(javax.xml.stream.XMLStreamReader reader)
          Construct from a Reader
 
Method Summary
 java.lang.String getAsString()
          Utility method to write the reader contents to a String
 void outputTo(javax.xml.stream.XMLStreamWriter writer)
          outputTo the writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Reader2Writer

public Reader2Writer(javax.xml.stream.XMLStreamReader reader)
Construct from a Reader

Parameters:
reader - -- the input to the converter
Method Detail

outputTo

public void outputTo(javax.xml.stream.XMLStreamWriter writer)
              throws javax.xml.stream.XMLStreamException
outputTo the writer.

Parameters:
writer - -- the output of the converter
Throws:
javax.xml.stream.XMLStreamException

getAsString

public java.lang.String getAsString()
                             throws javax.xml.stream.XMLStreamException
Utility method to write the reader contents to a String

Returns:
String
Throws:
javax.xml.stream.XMLStreamException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.