org.springframework.integration.adapter.stream
Class ByteStreamTargetAdapter

java.lang.Object
  extended by org.springframework.integration.adapter.AbstractTargetAdapter
      extended by org.springframework.integration.adapter.stream.ByteStreamTargetAdapter
All Implemented Interfaces:
MessageHandler

public class ByteStreamTargetAdapter
extends AbstractTargetAdapter

A target adapter that writes a byte array to an OutputStream.

Author:
Mark Fisher

Field Summary
 
Fields inherited from class org.springframework.integration.adapter.AbstractTargetAdapter
logger
 
Constructor Summary
ByteStreamTargetAdapter(java.io.OutputStream stream)
           
ByteStreamTargetAdapter(java.io.OutputStream stream, int bufferSize)
           
 
Method Summary
protected  boolean sendToTarget(java.lang.Object object)
           
 
Methods inherited from class org.springframework.integration.adapter.AbstractTargetAdapter
getMessageMapper, handle, setMessageMapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteStreamTargetAdapter

public ByteStreamTargetAdapter(java.io.OutputStream stream)

ByteStreamTargetAdapter

public ByteStreamTargetAdapter(java.io.OutputStream stream,
                               int bufferSize)
Method Detail

sendToTarget

protected boolean sendToTarget(java.lang.Object object)
Specified by:
sendToTarget in class AbstractTargetAdapter