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.
|
getMessageBuilderFactory, setBeanFactory, setDeleteFiles, transformpublic void setCharset(String charset)
charset - The charset.protected final String transformFile(File file) throws IOException
AbstractFilePayloadTransformertransformFile in class AbstractFilePayloadTransformer<String>file - The file.IOException - Any IOException.