public class FileToByteArrayTransformer extends AbstractFilePayloadTransformer<byte[]>
Constructor and Description |
---|
FileToByteArrayTransformer() |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
transformFile(File file)
Subclasses must implement this method to transform the File contents.
|
setBeanFactory, setDeleteFiles, transform
protected final byte[] transformFile(File file) throws Exception
AbstractFilePayloadTransformer
transformFile
in class AbstractFilePayloadTransformer<byte[]>
file
- The file.Exception
- Any Exception.