public class FileToStringTransformer extends AbstractFilePayloadTransformer<String>
Constructor and Description |
---|
FileToStringTransformer() |
Modifier and Type | Method and Description |
---|---|
void |
setCharset(String charset)
Set the charset name to use when copying the File to a String.
|
protected String |
transformFile(File file)
Subclasses must implement this method to transform the File contents.
|
setBeanFactory, setDeleteFiles, transform
public void setCharset(String charset)
charset
- The charset.protected final String transformFile(File file) throws Exception
AbstractFilePayloadTransformer
transformFile
in class AbstractFilePayloadTransformer<String>
file
- The file.Exception
- Any Exception.