Class UniVocityFixedDataFormat

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.dataformat.univocity.AbstractUniVocityDataFormat<com.univocity.parsers.fixed.FixedWidthFormat,com.univocity.parsers.fixed.FixedWidthWriterSettings,com.univocity.parsers.fixed.FixedWidthWriter,com.univocity.parsers.fixed.FixedWidthParserSettings,com.univocity.parsers.fixed.FixedWidthParser,UniVocityFixedDataFormat>
org.apache.camel.dataformat.univocity.UniVocityFixedDataFormat
All Implemented Interfaces:
AutoCloseable, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.DataFormat, org.apache.camel.spi.DataFormatName, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

@Dataformat("univocityFixed") public class UniVocityFixedDataFormat extends AbstractUniVocityDataFormat<com.univocity.parsers.fixed.FixedWidthFormat,com.univocity.parsers.fixed.FixedWidthWriterSettings,com.univocity.parsers.fixed.FixedWidthWriter,com.univocity.parsers.fixed.FixedWidthParserSettings,com.univocity.parsers.fixed.FixedWidthParser,UniVocityFixedDataFormat>
This class is the data format that uses the fixed-width uniVocity parser.
  • Constructor Details

    • UniVocityFixedDataFormat

      public UniVocityFixedDataFormat()
  • Method Details

    • fieldLengthsAsArray

      public int[] fieldLengthsAsArray()
    • getFieldLengths

      public String getFieldLengths()
    • setFieldLengths

      public void setFieldLengths(String fieldLengths)
    • getSkipTrailingCharsUntilNewline

      public Boolean getSkipTrailingCharsUntilNewline()
    • setSkipTrailingCharsUntilNewline

      public void setSkipTrailingCharsUntilNewline(Boolean skipTrailingCharsUntilNewline)
    • getRecordEndsOnNewline

      public Boolean getRecordEndsOnNewline()
    • setRecordEndsOnNewline

      public void setRecordEndsOnNewline(Boolean recordEndsOnNewline)
    • getPadding

      public Character getPadding()
    • setPadding

      public void setPadding(Character padding)
    • createWriterSettings

      protected com.univocity.parsers.fixed.FixedWidthWriterSettings createWriterSettings()
      Description copied from class: AbstractUniVocityDataFormat
      Creates a new instance of the writer settings.
      Specified by:
      createWriterSettings in class AbstractUniVocityDataFormat<com.univocity.parsers.fixed.FixedWidthFormat,com.univocity.parsers.fixed.FixedWidthWriterSettings,com.univocity.parsers.fixed.FixedWidthWriter,com.univocity.parsers.fixed.FixedWidthParserSettings,com.univocity.parsers.fixed.FixedWidthParser,UniVocityFixedDataFormat>
      Returns:
      New instance of the writer settings
    • createWriter

      protected com.univocity.parsers.fixed.FixedWidthWriter createWriter(Writer writer, com.univocity.parsers.fixed.FixedWidthWriterSettings settings)
      Description copied from class: AbstractUniVocityDataFormat
      Creates a new instance of the uniVocity writer.
      Specified by:
      createWriter in class AbstractUniVocityDataFormat<com.univocity.parsers.fixed.FixedWidthFormat,com.univocity.parsers.fixed.FixedWidthWriterSettings,com.univocity.parsers.fixed.FixedWidthWriter,com.univocity.parsers.fixed.FixedWidthParserSettings,com.univocity.parsers.fixed.FixedWidthParser,UniVocityFixedDataFormat>
      Parameters:
      writer - Output writer to use
      settings - Writer settings to use
      Returns:
      New uinstance of the uniVocity writer
    • createParserSettings

      protected com.univocity.parsers.fixed.FixedWidthParserSettings createParserSettings()
      Description copied from class: AbstractUniVocityDataFormat
      Creates a new instance of the parser settings.
      Specified by:
      createParserSettings in class AbstractUniVocityDataFormat<com.univocity.parsers.fixed.FixedWidthFormat,com.univocity.parsers.fixed.FixedWidthWriterSettings,com.univocity.parsers.fixed.FixedWidthWriter,com.univocity.parsers.fixed.FixedWidthParserSettings,com.univocity.parsers.fixed.FixedWidthParser,UniVocityFixedDataFormat>
      Returns:
      New instance of the parser settings
    • configureParserSettings

      protected void configureParserSettings(com.univocity.parsers.fixed.FixedWidthParserSettings settings)
      Description copied from class: AbstractUniVocityDataFormat
      Configure the parser settings.
      Overrides:
      configureParserSettings in class AbstractUniVocityDataFormat<com.univocity.parsers.fixed.FixedWidthFormat,com.univocity.parsers.fixed.FixedWidthWriterSettings,com.univocity.parsers.fixed.FixedWidthWriter,com.univocity.parsers.fixed.FixedWidthParserSettings,com.univocity.parsers.fixed.FixedWidthParser,UniVocityFixedDataFormat>
      Parameters:
      settings - Parser settings to configure
    • createParser

      protected com.univocity.parsers.fixed.FixedWidthParser createParser(com.univocity.parsers.fixed.FixedWidthParserSettings settings)
      Description copied from class: AbstractUniVocityDataFormat
      Creates a new instance of the uniVocity parser.
      Specified by:
      createParser in class AbstractUniVocityDataFormat<com.univocity.parsers.fixed.FixedWidthFormat,com.univocity.parsers.fixed.FixedWidthWriterSettings,com.univocity.parsers.fixed.FixedWidthWriter,com.univocity.parsers.fixed.FixedWidthParserSettings,com.univocity.parsers.fixed.FixedWidthParser,UniVocityFixedDataFormat>
      Parameters:
      settings - Parser settings to use
      Returns:
      New instance of the uniVocity parser
    • configureFormat

      protected void configureFormat(com.univocity.parsers.fixed.FixedWidthFormat format)
      Description copied from class: AbstractUniVocityDataFormat
      Configures the format.
      Overrides:
      configureFormat in class AbstractUniVocityDataFormat<com.univocity.parsers.fixed.FixedWidthFormat,com.univocity.parsers.fixed.FixedWidthWriterSettings,com.univocity.parsers.fixed.FixedWidthWriter,com.univocity.parsers.fixed.FixedWidthParserSettings,com.univocity.parsers.fixed.FixedWidthParser,UniVocityFixedDataFormat>
      Parameters:
      format - format to configure
    • getDataFormatName

      public String getDataFormatName()