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 Details

    • Builder

      public Builder()
  • Method Details

    • mapping

      public BeanioDataFormat.Builder mapping(String 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

      public BeanioDataFormat.Builder streamName(String streamName)
      The name of the stream to use.
    • ignoreUnidentifiedRecords

      public BeanioDataFormat.Builder ignoreUnidentifiedRecords(String ignoreUnidentifiedRecords)
      Whether to ignore unidentified records.
    • ignoreUnidentifiedRecords

      public BeanioDataFormat.Builder ignoreUnidentifiedRecords(boolean ignoreUnidentifiedRecords)
      Whether to ignore unidentified records.
    • ignoreUnexpectedRecords

      public BeanioDataFormat.Builder ignoreUnexpectedRecords(String ignoreUnexpectedRecords)
      Whether to ignore unexpected records.
    • ignoreUnexpectedRecords

      public BeanioDataFormat.Builder ignoreUnexpectedRecords(boolean ignoreUnexpectedRecords)
      Whether to ignore unexpected records.
    • ignoreInvalidRecords

      public BeanioDataFormat.Builder ignoreInvalidRecords(String ignoreInvalidRecords)
      Whether to ignore invalid records.
    • ignoreInvalidRecords

      public BeanioDataFormat.Builder ignoreInvalidRecords(boolean ignoreInvalidRecords)
      Whether to ignore invalid records.
    • encoding

      public BeanioDataFormat.Builder encoding(String encoding)
      The charset to use.

      Is by default the JVM platform default charset.

    • beanReaderErrorHandlerType

      public BeanioDataFormat.Builder beanReaderErrorHandlerType(String 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

      public BeanioDataFormat.Builder unmarshalSingleObject(String 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

      public BeanioDataFormat.Builder unmarshalSingleObject(boolean 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

      public BeanioDataFormat end()
      Description copied from interface: DataFormatBuilder
      Ends the build of the data format.
      Specified by:
      end in interface DataFormatBuilder<BeanioDataFormat>
      Returns:
      the data format fully built.