Class FileToByteArrayTransformer
java.lang.Object
org.springframework.integration.file.transformer.AbstractFilePayloadTransformer<byte[]>
org.springframework.integration.file.transformer.FileToByteArrayTransformer
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- GenericTransformer<Message<?>,,- Message<?>> - Transformer
A payload transformer that copies a File's contents to a byte array.
- Author:
- Mark Fisher
- 
Field SummaryFields inherited from class org.springframework.integration.file.transformer.AbstractFilePayloadTransformerlogger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected final byte[]transformFile(File file) Subclasses must implement this method to transform the File contents.Methods inherited from class org.springframework.integration.file.transformer.AbstractFilePayloadTransformergetMessageBuilderFactory, setBeanFactory, setDeleteFiles, transform
- 
Constructor Details- 
FileToByteArrayTransformerpublic FileToByteArrayTransformer()
 
- 
- 
Method Details- 
transformFileDescription copied from class:AbstractFilePayloadTransformerSubclasses must implement this method to transform the File contents.- Specified by:
- transformFilein class- AbstractFilePayloadTransformer<byte[]>
- Parameters:
- file- The file.
- Returns:
- The result of the transformation.
- Throws:
- IOException- Any IOException.
 
 
-