org.springframework.integration.adapter.file
Class ByteArrayFileMessageCreator

java.lang.Object
  extended by org.springframework.integration.adapter.file.AbstractFileMessageCreator<byte[]>
      extended by org.springframework.integration.adapter.file.ByteArrayFileMessageCreator
All Implemented Interfaces:
MessageCreator<java.io.File,byte[]>

public class ByteArrayFileMessageCreator
extends AbstractFileMessageCreator<byte[]>

A MessageCreator implementation for messages with a byte array payload.

Author:
Mark Fisher, Marius Bogoevici

Field Summary
 
Fields inherited from class org.springframework.integration.adapter.file.AbstractFileMessageCreator
logger
 
Constructor Summary
ByteArrayFileMessageCreator()
           
 
Method Summary
protected  byte[] readMessagePayload(java.io.File file)
           
 
Methods inherited from class org.springframework.integration.adapter.file.AbstractFileMessageCreator
createMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayFileMessageCreator

public ByteArrayFileMessageCreator()
Method Detail

readMessagePayload

protected byte[] readMessagePayload(java.io.File file)
                             throws java.lang.Exception
Specified by:
readMessagePayload in class AbstractFileMessageCreator<byte[]>
Throws:
java.lang.Exception