Class FileSplitterSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<FileSplitterSpec, FileSplitter>
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 SummaryFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedprotectedFileSplitterSpec(boolean iterator) protectedFileSplitterSpec(boolean iterator, boolean markers) 
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
FileSplitterSpecprotected FileSplitterSpec()
- 
FileSplitterSpecprotected FileSplitterSpec(boolean iterator) 
- 
FileSplitterSpecprotected FileSplitterSpec(boolean iterator, boolean markers) 
 
- 
- 
Method Details- 
charsetSet 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
 
- 
charsetSet 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
 
- 
markersSpecify 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
 
- 
applySequenceAbooleanflag 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:
 
- 
firstLineAsHeaderSpecify 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 class- IntegrationComponentSpec<FileSplitterSpec, FileSplitter>
 
 
-