net.sf.xbus.protocol.simple
Class Stream2TextTransformer

java.lang.Object
  extended by net.sf.xbus.protocol.simple.Stream2TextTransformer
All Implemented Interfaces:
Transformer

public class Stream2TextTransformer
extends java.lang.Object
implements Transformer

The Stream2TextTransformer read the content of an InputStream into string.


Constructor Summary
Stream2TextTransformer()
           
 
Method Summary
 java.lang.Object transform(java.lang.Object inObject, XBUSSystem source, XBUSSystem destination, Message destinationMessage)
          The Stream2TextTransformer read the content of an InputStream into string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stream2TextTransformer

public Stream2TextTransformer()
Method Detail

transform

public java.lang.Object transform(java.lang.Object inObject,
                                  XBUSSystem source,
                                  XBUSSystem destination,
                                  Message destinationMessage)
                           throws XException
The Stream2TextTransformer read the content of an InputStream into string.

Specified by:
transform in interface Transformer
Parameters:
inObject - either the request or response of the source message
source - not used - from the Transformer interface
destination - not used - from the Transformer interface
destinationMessage - not used - from the Transformer interface
Returns:
ByteArrayList
Throws:
XException