public class FileSplitterSpec extends MessageHandlerSpec<FileSplitterSpec,FileSplitter>
MessageHandlerSpec for the FileSplitter.FileSplitterlogger, PARSER, target| Modifier and Type | Method and Description |
|---|---|
FileSplitterSpec |
applySequence(boolean applySequence)
A
boolean flag to indicate if sequenceDetails should be
applied for messages based on the lines from file. |
FileSplitterSpec |
charset(java.nio.charset.Charset charset)
Set the charset to be used when reading the file, when something other than the default
charset is required.
|
FileSplitterSpec |
charset(java.lang.String charset)
Set the charset to be used when reading the file, when something other than the default
charset is required.
|
protected FileSplitter |
doGet() |
FileSplitterSpec |
firstLineAsHeader(java.lang.String firstLineHeaderName)
Specify the header name for the first line to be carried as a header in the
messages emitted for the remaining lines.
|
FileSplitterSpec |
markers()
|
FileSplitterSpec |
markers(boolean asJson)
Specify if
FileSplitter should emit
FileSplitter.FileMarkers
and if they should be converted to the JSON string representation. |
_this, afterPropertiesSet, destroy, get, getId, getObject, getObjectType, id, isSingletonpublic FileSplitterSpec charset(java.lang.String charset)
charset - the charset.public FileSplitterSpec charset(java.nio.charset.Charset charset)
charset - the charset.public FileSplitterSpec markers()
public FileSplitterSpec markers(boolean asJson)
FileSplitter should emit
FileSplitter.FileMarkers
and if they should be converted to the JSON string representation.
Defaults to false for markers and false for markersJson.asJson - the asJson flag to use.public FileSplitterSpec applySequence(boolean applySequence)
boolean flag to indicate if sequenceDetails should be
applied for messages based on the lines from file.
Defaults to false.applySequence - the applySequence flag to use.AbstractMessageSplitter.setApplySequence(boolean)public FileSplitterSpec firstLineAsHeader(java.lang.String firstLineHeaderName)
firstLineHeaderName - the header name to carry first line.protected FileSplitter doGet()
doGet in class IntegrationComponentSpec<FileSplitterSpec,FileSplitter>