net.sf.xbus.protocol.simple
Class Stream2TextTransformer
java.lang.Object
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.
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 |
Stream2TextTransformer
public Stream2TextTransformer()
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 messagesource
- not used - from the Transformer interfacedestination
- not used - from the Transformer interfacedestinationMessage
- not used - from the Transformer interface
- Returns:
ByteArrayList
- Throws:
XException