public abstract class Files
extends java.lang.Object
Constructor and Description |
---|
Files() |
Modifier and Type | Method and Description |
---|---|
static FileInboundChannelAdapterSpec |
inboundAdapter(java.io.File directory) |
static FileInboundChannelAdapterSpec |
inboundAdapter(java.io.File directory,
java.util.Comparator<java.io.File> receptionOrderComparator) |
static FileWritingMessageHandlerSpec |
outboundAdapter(org.springframework.expression.Expression directoryExpression) |
static FileWritingMessageHandlerSpec |
outboundAdapter(java.io.File destinationDirectory) |
static <P> FileWritingMessageHandlerSpec |
outboundAdapter(Function<org.springframework.messaging.Message<P>,?> directoryFunction) |
static FileWritingMessageHandlerSpec |
outboundAdapter(java.lang.String directoryExpression) |
static FileWritingMessageHandlerSpec |
outboundGateway(org.springframework.expression.Expression directoryExpression) |
static FileWritingMessageHandlerSpec |
outboundGateway(java.io.File destinationDirectory) |
static <P> FileWritingMessageHandlerSpec |
outboundGateway(Function<org.springframework.messaging.Message<P>,?> directoryFunction) |
static FileWritingMessageHandlerSpec |
outboundGateway(java.lang.String directoryExpression) |
static FileSplitterSpec |
splitter()
The
FileSplitterSpec builder factory method with default arguments. |
static FileSplitterSpec |
splitter(boolean iterator)
The
FileSplitterSpec builder factory method with iterator flag specified. |
static FileSplitterSpec |
splitter(boolean iterator,
boolean markers)
|
static TailAdapterSpec |
tailAdapter(java.io.File file) |
public static FileInboundChannelAdapterSpec inboundAdapter(java.io.File directory)
public static FileInboundChannelAdapterSpec inboundAdapter(java.io.File directory, java.util.Comparator<java.io.File> receptionOrderComparator)
public static FileWritingMessageHandlerSpec outboundAdapter(java.io.File destinationDirectory)
public static FileWritingMessageHandlerSpec outboundAdapter(java.lang.String directoryExpression)
public static FileWritingMessageHandlerSpec outboundAdapter(org.springframework.expression.Expression directoryExpression)
directoryExpression
- an expression to evaluate the target directory.public static <P> FileWritingMessageHandlerSpec outboundAdapter(Function<org.springframework.messaging.Message<P>,?> directoryFunction)
public static FileWritingMessageHandlerSpec outboundGateway(java.io.File destinationDirectory)
public static FileWritingMessageHandlerSpec outboundGateway(java.lang.String directoryExpression)
public static FileWritingMessageHandlerSpec outboundGateway(org.springframework.expression.Expression directoryExpression)
directoryExpression
- an expression to evaluate the target directory.public static <P> FileWritingMessageHandlerSpec outboundGateway(Function<org.springframework.messaging.Message<P>,?> directoryFunction)
public static TailAdapterSpec tailAdapter(java.io.File file)
public static FileSplitterSpec splitter()
FileSplitterSpec
builder factory method with default arguments.FileSplitterSpec
builder.public static FileSplitterSpec splitter(boolean iterator)
FileSplitterSpec
builder factory method with iterator
flag specified.iterator
- the boolean
flag to specify the iterator
mode or not.FileSplitterSpec
builder.public static FileSplitterSpec splitter(boolean iterator, boolean markers)
iterator
- the boolean
flag to specify the iterator
mode or not.markers
- true to emit start of file/end of file marker messages before/after the data.FileSplitterSpec
builder.