Class FileSplitterSpec
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
org.springframework.integration.dsl.MessageHandlerSpec<FileSplitterSpec,FileSplitter>
org.springframework.integration.file.dsl.FileSplitterSpec
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<FileSplitter>,InitializingBean,Lifecycle,Phased,SmartLifecycle
public class FileSplitterSpec extends MessageHandlerSpec<FileSplitterSpec,FileSplitter>
The
MessageHandlerSpec for the FileSplitter.- Since:
- 5.0
- Author:
- Artem Bilan
- See Also:
FileSplitter
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target -
Constructor Summary
Constructors Modifier Constructor Description protectedFileSplitterSpec()protectedFileSplitterSpec(boolean iterator)protectedFileSplitterSpec(boolean iterator, boolean markers) -
Method Summary
Modifier and Type Method Description FileSplitterSpecapplySequence(boolean applySequence)Abooleanflag to indicate ifsequenceDetailsshould be applied for messages based on the lines from file.FileSplitterSpeccharset(String charset)Set the charset to be used when reading the file, when something other than the default charset is required.FileSplitterSpeccharset(Charset charset)Set the charset to be used when reading the file, when something other than the default charset is required.protected FileSplitterdoGet()FileSplitterSpecfirstLineAsHeader(String firstLineHeaderName)Specify the header name for the first line to be carried as a header in the messages emitted for the remaining lines.FileSplitterSpecmarkers()FileSplitterSpecmarkers(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, createInstance, destroyInstance, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
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:
AbstractMessageSplitter.setApplySequence(boolean)
-
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>
-