org.springframework.integration.file.transformer
Class FileToByteArrayTransformer
java.lang.Object
org.springframework.integration.file.transformer.AbstractFilePayloadTransformer<byte[]>
org.springframework.integration.file.transformer.FileToByteArrayTransformer
- All Implemented Interfaces:
- Transformer
public class FileToByteArrayTransformer
- extends AbstractFilePayloadTransformer<byte[]>
A payload transformer that copies a File's contents to a byte array.
- Author:
- Mark Fisher
Method Summary |
protected byte[] |
transformFile(File file)
Subclasses must implement this method to transform the File contents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileToByteArrayTransformer
public FileToByteArrayTransformer()
transformFile
protected final byte[] transformFile(File file)
throws Exception
- Description copied from class:
AbstractFilePayloadTransformer
- Subclasses must implement this method to transform the File contents.
- Specified by:
transformFile
in class AbstractFilePayloadTransformer<byte[]>
- Throws:
Exception
Copyright © 2010. All Rights Reserved.