public interface InboundLocalFileOperations
FileEventHandler instances that
notifies the operations on the file those were performed| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(FileEventHandler handler)
Registers an individual event handler.
|
void |
setCreateDirectoriesIfRequired(boolean createDirectoriesIfRequired)
Sets the flag to true if directories given are to be created if not present
|
void |
setEventListeners(java.util.List<FileEventHandler> handlers)
Registers a
List of FileEventHandler instances |
void |
setTemporaryFileSuffix(java.lang.String prefix)
The temporary file suffix that will be used when the file is being written to the filesystem
|
void |
writeToFile(java.io.File directory,
java.lang.String fileName,
java.io.InputStream in)
The method will write to the file with the specified name in the specified directory
from the given
InputStream. |
void addEventListener(FileEventHandler handler)
handler - void setEventListeners(java.util.List<FileEventHandler> handlers)
List of FileEventHandler instanceshandlers - void setTemporaryFileSuffix(java.lang.String prefix)
prefix - void setCreateDirectoriesIfRequired(boolean createDirectoriesIfRequired)
createDirectoriesIfRequired - void writeToFile(java.io.File directory,
java.lang.String fileName,
java.io.InputStream in)
throws java.io.IOException
InputStream. Upon completion of the writing the appropriate
FileEventHandler instance(s) will be notified with the FileOperationType
WRITE and File instance for the created file.directory - fileName - in - java.io.IOException