org.springframework.integration.adapter.file
Class TextFileMapper
java.lang.Object
org.springframework.integration.message.AbstractMessageMapper<T,java.io.File>
org.springframework.integration.adapter.file.AbstractFileMapper<java.lang.String>
org.springframework.integration.adapter.file.TextFileMapper
- All Implemented Interfaces:
- org.springframework.integration.message.MessageMapper<java.lang.String,java.io.File>
public class TextFileMapper
- extends AbstractFileMapper<java.lang.String>
A MessageMapper
implementation for messages with a String payload.
- Author:
- Mark Fisher
Method Summary |
protected java.lang.String |
readMessagePayload(java.io.File file)
|
protected void |
writeToFile(java.io.File file,
java.lang.String payload)
|
Methods inherited from class org.springframework.integration.message.AbstractMessageMapper |
getIdGenerator, setIdGenerator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextFileMapper
public TextFileMapper(java.io.File parentDirectory)
readMessagePayload
protected java.lang.String readMessagePayload(java.io.File file)
throws java.lang.Exception
- Specified by:
readMessagePayload
in class AbstractFileMapper<java.lang.String>
- Throws:
java.lang.Exception
writeToFile
protected void writeToFile(java.io.File file,
java.lang.String payload)
throws java.lang.Exception
- Specified by:
writeToFile
in class AbstractFileMapper<java.lang.String>
- Throws:
java.lang.Exception