|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.file.transformer.AbstractFilePayloadTransformer<java.lang.String> org.springframework.integration.file.transformer.FileToStringTransformer
public class FileToStringTransformer
A payload transformer that copies a File's contents to a String.
Constructor Summary | |
---|---|
FileToStringTransformer()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.springframework.integration.file.transformer.AbstractFilePayloadTransformer |
---|
setDeleteFiles, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileToStringTransformer()
Method Detail |
---|
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
|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |