org.springframework.integration.file.transformer
Class AbstractFilePayloadTransformer<T>
java.lang.Object
org.springframework.integration.file.transformer.AbstractFilePayloadTransformer<T>
- All Implemented Interfaces:
- Transformer
- Direct Known Subclasses:
- FileToByteArrayTransformer, FileToStringTransformer
public abstract class AbstractFilePayloadTransformer<T>
- extends Object
- implements Transformer
Base class for transformers that convert a File payload.
- Author:
- Mark Fisher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFilePayloadTransformer
public AbstractFilePayloadTransformer()
setDeleteFiles
public void setDeleteFiles(boolean deleteFiles)
- Specify whether to delete the File after transformation.
Default is false.
transform
public final Message<?> transform(Message<?> message)
- Specified by:
transform
in interface Transformer
transformFile
protected abstract T transformFile(File file)
throws Exception
- Subclasses must implement this method to transform the File contents.
- Throws:
Exception
Copyright © 2010. All Rights Reserved.