Class BeanioDataFormat.Builder
java.lang.Object
org.apache.camel.model.dataformat.BeanioDataFormat.Builder
- All Implemented Interfaces:
DataFormatBuilder<BeanioDataFormat>
- Enclosing class:
BeanioDataFormat
public static class BeanioDataFormat.Builder
extends Object
implements DataFormatBuilder<BeanioDataFormat>
Builder
is a specific builder for BeanioDataFormat
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeanReaderErrorHandlerType
(String beanReaderErrorHandlerType) To use a custom org.apache.camel.dataformat.beanio.BeanIOErrorHandler as error handler while parsing.The charset to use.end()
Ends the build of the data format.ignoreInvalidRecords
(boolean ignoreInvalidRecords) Whether to ignore invalid records.ignoreInvalidRecords
(String ignoreInvalidRecords) Whether to ignore invalid records.ignoreUnexpectedRecords
(boolean ignoreUnexpectedRecords) Whether to ignore unexpected records.ignoreUnexpectedRecords
(String ignoreUnexpectedRecords) Whether to ignore unexpected records.ignoreUnidentifiedRecords
(boolean ignoreUnidentifiedRecords) Whether to ignore unidentified records.ignoreUnidentifiedRecords
(String ignoreUnidentifiedRecords) Whether to ignore unidentified records.The BeanIO mapping file.streamName
(String streamName) The name of the stream to use.unmarshalSingleObject
(boolean unmarshalSingleObject) This options controls whether to unmarshal as a list of objects or as a single object only.unmarshalSingleObject
(String unmarshalSingleObject) This options controls whether to unmarshal as a list of objects or as a single object only.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mapping
The BeanIO mapping file. Is by default loaded from the classpath. You can prefix with file:, http:, or classpath: to denote from where to load the mapping file. -
streamName
The name of the stream to use. -
ignoreUnidentifiedRecords
Whether to ignore unidentified records. -
ignoreUnidentifiedRecords
Whether to ignore unidentified records. -
ignoreUnexpectedRecords
Whether to ignore unexpected records. -
ignoreUnexpectedRecords
Whether to ignore unexpected records. -
ignoreInvalidRecords
Whether to ignore invalid records. -
ignoreInvalidRecords
Whether to ignore invalid records. -
encoding
The charset to use. Is by default the JVM platform default charset. -
beanReaderErrorHandlerType
To use a custom org.apache.camel.dataformat.beanio.BeanIOErrorHandler as error handler while parsing. Configure the fully qualified class name of the error handler. Notice the options ignoreUnidentifiedRecords, ignoreUnexpectedRecords, and ignoreInvalidRecords may not be in use when you use a custom error handler. -
unmarshalSingleObject
This options controls whether to unmarshal as a list of objects or as a single object only. The former is the default mode, and the latter is only intended in special use-cases where beanio maps the Camel message to a single POJO bean. -
unmarshalSingleObject
This options controls whether to unmarshal as a list of objects or as a single object only. The former is the default mode, and the latter is only intended in special use-cases where beanio maps the Camel message to a single POJO bean. -
end
Description copied from interface:DataFormatBuilder
Ends the build of the data format.- Specified by:
end
in interfaceDataFormatBuilder<BeanioDataFormat>
- Returns:
- the data format fully built.
-