Class FileSplitterSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
org.springframework.integration.dsl.MessageHandlerSpec<FileSplitterSpec,FileSplitter>
org.springframework.integration.file.dsl.FileSplitterSpec
- All Implemented Interfaces:
DisposableBean,FactoryBean<FileSplitter>,InitializingBean,Lifecycle,Phased,SmartLifecycle
The
MessageHandlerSpec for the FileSplitter.- Since:
- 5.0
- Author:
- Artem Bilan
- See Also:
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
logger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedFileSplitterSpec(boolean iterator) protectedFileSplitterSpec(boolean iterator, boolean markers) -
Method Summary
Modifier and TypeMethodDescriptionapplySequence(boolean applySequence) Abooleanflag to indicate ifsequenceDetailsshould be applied for messages based on the lines from file.Set the charset to be used when reading the file, when something other than the default charset is required.Set the charset to be used when reading the file, when something other than the default charset is required.protected FileSplitterdoGet()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.markers()markers(boolean asJson) Specify ifFileSplittershould emitFileSplitter.FileMarkers and if they should be converted to the JSON string representation.Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
FileSplitterSpec
protected FileSplitterSpec() -
FileSplitterSpec
protected FileSplitterSpec(boolean iterator) -
FileSplitterSpec
protected FileSplitterSpec(boolean iterator, boolean markers)
-
-
Method Details
-
charset
Set the charset to be used when reading the file, when something other than the default charset is required.- Parameters:
charset- the charset.- Returns:
- the FileSplitterSpec
-
charset
Set the charset to be used when reading the file, when something other than the default charset is required.- Parameters:
charset- the charset.- Returns:
- the FileSplitterSpec
-
markers
- Returns:
- the FileSplitterSpec
-
markers
Specify ifFileSplittershould emitFileSplitter.FileMarkers and if they should be converted to the JSON string representation. Defaults tofalsefor markers andfalsefor markersJson.- Parameters:
asJson- the asJson flag to use.- Returns:
- the FileSplitterSpec
-
applySequence
Abooleanflag to indicate ifsequenceDetailsshould be applied for messages based on the lines from file. Defaults tofalse.- Parameters:
applySequence- the applySequence flag to use.- Returns:
- the FileSplitterSpec
- See Also:
-
firstLineAsHeader
Specify the header name for the first line to be carried as a header in the messages emitted for the remaining lines.- Parameters:
firstLineHeaderName- the header name to carry first line.- Returns:
- the FileSplitterSpec
-
doGet
- Overrides:
doGetin classIntegrationComponentSpec<FileSplitterSpec,FileSplitter>
-