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.
|
setDeleteFiles, transform
public void setCharset(java.lang.String charset)
protected final java.lang.String transformFile(java.io.File file) throws java.lang.Exception
AbstractFilePayloadTransformer
transformFile
in class AbstractFilePayloadTransformer<java.lang.String>
java.lang.Exception