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.
  • Field Details

    • escapeChar

      protected Character escapeChar
  • Constructor Details

    • UniVocityTsvDataFormat

      public UniVocityTsvDataFormat()
  • Method Details

    • getEscapeChar

      public Character getEscapeChar()
      Gets the escape character symbol. If null then the default format value is used.
      Returns:
      the escape character symbol
      See Also:
      • TsvFormat.getEscapeChar()
    • setEscapeChar

      public UniVocityTsvDataFormat setEscapeChar(Character escapeChar)
      Sets the escape character symbol. If null then the default settings value is used.
      Parameters:
      escapeChar - the escape character symbol
      Returns:
      current data format instance, fluent API
      See Also:
      • TsvFormat.setEscapeChar(char)
    • createWriterSettings

      protected com.univocity.parsers.tsv.TsvWriterSettings createWriterSettings()
      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)
      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()
      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)
      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)
      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()