Class UniVocityTsvDataFormat

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.dataformat.univocity.AbstractUniVocityDataFormat<com.univocity.parsers.tsv.TsvFormat,com.univocity.parsers.tsv.TsvWriterSettings,com.univocity.parsers.tsv.TsvWriter,com.univocity.parsers.tsv.TsvParserSettings,com.univocity.parsers.tsv.TsvParser,UniVocityTsvDataFormat>
org.apache.camel.dataformat.univocity.UniVocityTsvDataFormat
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("univocityTsv") public class UniVocityTsvDataFormat extends AbstractUniVocityDataFormat<com.univocity.parsers.tsv.TsvFormat,com.univocity.parsers.tsv.TsvWriterSettings,com.univocity.parsers.tsv.TsvWriter,com.univocity.parsers.tsv.TsvParserSettings,com.univocity.parsers.tsv.TsvParser,UniVocityTsvDataFormat>
This class is the data format that uses the TSV uniVocity parser.
  • Constructor Details

    • UniVocityTsvDataFormat

      public UniVocityTsvDataFormat()
  • Method Details

    • getEscapeChar

      public Character getEscapeChar()
    • setEscapeChar

      public void setEscapeChar(Character escapeChar)
    • createWriterSettings

      protected com.univocity.parsers.tsv.TsvWriterSettings createWriterSettings()
      Description copied from class: AbstractUniVocityDataFormat
      Creates a new instance of the writer settings.
      Specified by:
      createWriterSettings in class AbstractUniVocityDataFormat<com.univocity.parsers.tsv.TsvFormat,com.univocity.parsers.tsv.TsvWriterSettings,com.univocity.parsers.tsv.TsvWriter,com.univocity.parsers.tsv.TsvParserSettings,com.univocity.parsers.tsv.TsvParser,UniVocityTsvDataFormat>
      Returns:
      New instance of the writer settings
    • createWriter

      protected com.univocity.parsers.tsv.TsvWriter createWriter(Writer writer, com.univocity.parsers.tsv.TsvWriterSettings settings)
      Description copied from class: AbstractUniVocityDataFormat
      Creates a new instance of the uniVocity writer.
      Specified by:
      createWriter in class AbstractUniVocityDataFormat<com.univocity.parsers.tsv.TsvFormat,com.univocity.parsers.tsv.TsvWriterSettings,com.univocity.parsers.tsv.TsvWriter,com.univocity.parsers.tsv.TsvParserSettings,com.univocity.parsers.tsv.TsvParser,UniVocityTsvDataFormat>
      Parameters:
      writer - Output writer to use
      settings - Writer settings to use
      Returns:
      New uinstance of the uniVocity writer
    • createParserSettings

      protected com.univocity.parsers.tsv.TsvParserSettings createParserSettings()
      Description copied from class: AbstractUniVocityDataFormat
      Creates a new instance of the parser settings.
      Specified by:
      createParserSettings in class AbstractUniVocityDataFormat<com.univocity.parsers.tsv.TsvFormat,com.univocity.parsers.tsv.TsvWriterSettings,com.univocity.parsers.tsv.TsvWriter,com.univocity.parsers.tsv.TsvParserSettings,com.univocity.parsers.tsv.TsvParser,UniVocityTsvDataFormat>
      Returns:
      New instance of the parser settings
    • createParser

      protected com.univocity.parsers.tsv.TsvParser createParser(com.univocity.parsers.tsv.TsvParserSettings settings)
      Description copied from class: AbstractUniVocityDataFormat
      Creates a new instance of the uniVocity parser.
      Specified by:
      createParser in class AbstractUniVocityDataFormat<com.univocity.parsers.tsv.TsvFormat,com.univocity.parsers.tsv.TsvWriterSettings,com.univocity.parsers.tsv.TsvWriter,com.univocity.parsers.tsv.TsvParserSettings,com.univocity.parsers.tsv.TsvParser,UniVocityTsvDataFormat>
      Parameters:
      settings - Parser settings to use
      Returns:
      New instance of the uniVocity parser
    • configureFormat

      protected void configureFormat(com.univocity.parsers.tsv.TsvFormat format)
      Description copied from class: AbstractUniVocityDataFormat
      Configures the format.
      Overrides:
      configureFormat in class AbstractUniVocityDataFormat<com.univocity.parsers.tsv.TsvFormat,com.univocity.parsers.tsv.TsvWriterSettings,com.univocity.parsers.tsv.TsvWriter,com.univocity.parsers.tsv.TsvParserSettings,com.univocity.parsers.tsv.TsvParser,UniVocityTsvDataFormat>
      Parameters:
      format - format to configure
    • getDataFormatName

      public String getDataFormatName()