org.springframework.integration.adapter.file
Class FileMessageCreator

java.lang.Object
  extended by org.springframework.integration.adapter.file.AbstractFileMessageCreator<java.io.File>
      extended by org.springframework.integration.adapter.file.FileMessageCreator
All Implemented Interfaces:
MessageCreator<java.io.File,java.io.File>

public class FileMessageCreator
extends AbstractFileMessageCreator<java.io.File>

A MessageCreator that creates Message instances with the absolute path to the File as payload.

Author:
Marius Bogoevici

Field Summary
 
Fields inherited from class org.springframework.integration.adapter.file.AbstractFileMessageCreator
logger
 
Constructor Summary
FileMessageCreator()
           
 
Method Summary
protected  java.io.File readMessagePayload(java.io.File file)
           
 
Methods inherited from class org.springframework.integration.adapter.file.AbstractFileMessageCreator
createMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileMessageCreator

public FileMessageCreator()
Method Detail

readMessagePayload

protected java.io.File readMessagePayload(java.io.File file)
                                   throws java.lang.Exception
Specified by:
readMessagePayload in class AbstractFileMessageCreator<java.io.File>
Throws:
java.lang.Exception