org.springframework.integration.adapter.file
Class ByteArrayFileMapper
java.lang.Object
org.springframework.integration.message.AbstractMessageMapper<T,java.io.File>
org.springframework.integration.adapter.file.AbstractFileMapper<byte[]>
org.springframework.integration.adapter.file.ByteArrayFileMapper
- All Implemented Interfaces:
- org.springframework.integration.message.MessageMapper<byte[],java.io.File>
public class ByteArrayFileMapper
- extends AbstractFileMapper<byte[]>
A MessageMapper
implementation for messages with a byte array payload.
- Author:
- Mark Fisher
Methods inherited from class org.springframework.integration.message.AbstractMessageMapper |
getIdGenerator, setIdGenerator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteArrayFileMapper
public ByteArrayFileMapper(java.io.File parentDirectory)
readMessagePayload
protected byte[] readMessagePayload(java.io.File file)
throws java.lang.Exception
- Specified by:
readMessagePayload
in class AbstractFileMapper<byte[]>
- Throws:
java.lang.Exception
writeToFile
protected void writeToFile(java.io.File file,
byte[] payload)
throws java.lang.Exception
- Specified by:
writeToFile
in class AbstractFileMapper<byte[]>
- Throws:
java.lang.Exception