public class FileSplitterSpec extends MessageHandlerSpec<FileSplitterSpec,FileSplitter>
MessageHandlerSpec
for the FileSplitter
.FileSplitter
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
FileSplitterSpec() |
protected |
FileSplitterSpec(boolean iterator) |
protected |
FileSplitterSpec(boolean iterator,
boolean markers) |
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(Charset charset)
Set the charset to be used when reading the file, when something other than the default
charset is required.
|
FileSplitterSpec |
charset(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(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.FileMarker s
and if they should be converted to the JSON string representation. |
_this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
protected FileSplitterSpec()
protected FileSplitterSpec(boolean iterator)
protected FileSplitterSpec(boolean iterator, boolean markers)
public FileSplitterSpec charset(String charset)
charset
- the charset.public FileSplitterSpec charset(Charset charset)
charset
- the charset.public FileSplitterSpec markers()
public FileSplitterSpec markers(boolean asJson)
FileSplitter
should emit
FileSplitter.FileMarker
s
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(String firstLineHeaderName)
firstLineHeaderName
- the header name to carry first line.protected FileSplitter doGet()
doGet
in class IntegrationComponentSpec<FileSplitterSpec,FileSplitter>