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