Class FileDataSet
java.lang.Object
org.apache.camel.component.dataset.DataSetSupport
org.apache.camel.component.dataset.ListDataSet
org.apache.camel.component.dataset.FileDataSet
- All Implemented Interfaces:
DataSet
A DataSet that reads payloads from a file that are used to create each message exchange along with using a pluggable
transformer to customize the messages. The file contents may optionally be split using a supplied token.
-
Constructor Summary
ConstructorDescriptionFileDataSet
(File sourceFile) FileDataSet
(File sourceFile, String delimiter) FileDataSet
(String sourceFileName) FileDataSet
(String sourceFileName, String delimiter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setSourceFile
(File sourceFile) void
setSourceFile
(File sourceFile, String delimiter) Methods inherited from class org.apache.camel.component.dataset.ListDataSet
createMessageBody, getDefaultBodies, setDefaultBodies
Methods inherited from class org.apache.camel.component.dataset.DataSetSupport
applyHeaders, assertMessageExpected, getDefaultHeaders, getOutputTransformer, getReportCount, getSize, populateDefaultHeaders, populateMessage, setDefaultHeaders, setOutputTransformer, setReportCount, setSize
-
Constructor Details
-
FileDataSet
- Throws:
IOException
-
FileDataSet
- Throws:
IOException
-
FileDataSet
- Throws:
IOException
-
FileDataSet
- Throws:
IOException
-
-
Method Details
-
getSourceFile
-
setSourceFile
- Throws:
IOException
-
setSourceFile
- Throws:
IOException
-
getDelimiter
-