Class TsvWriter


public class TsvWriter extends AbstractWriter<TsvWriterSettings>
A powerful and flexible TSV writer implementation.
See Also:
  • Field Details

    • joinLines

      private boolean joinLines
    • escapeChar

      private char escapeChar
    • escapedTabChar

      private char escapedTabChar
    • newLine

      private char newLine
  • Constructor Details

    • TsvWriter

      public TsvWriter(TsvWriterSettings settings)
      The TsvWriter supports all settings provided by TsvWriterSettings, and requires this configuration to be properly initialized.

      Important: by not providing an instance of Writer to this constructor, only the operations that write to Strings are available.

      Parameters:
      settings - the TSV writer configuration
    • TsvWriter

      public TsvWriter(Writer writer, TsvWriterSettings settings)
      The TsvWriter supports all settings provided by TsvWriterSettings, and requires this configuration to be properly initialized.
      Parameters:
      writer - the output resource that will receive TSV records produced by this class.
      settings - the TSV writer configuration
    • TsvWriter

      public TsvWriter(File file, TsvWriterSettings settings)
      The TsvWriter supports all settings provided by TsvWriterSettings, and requires this configuration to be properly initialized.
      Parameters:
      file - the output file that will receive TSV records produced by this class.
      settings - the TSV writer configuration
    • TsvWriter

      public TsvWriter(File file, String encoding, TsvWriterSettings settings)
      The TsvWriter supports all settings provided by TsvWriterSettings, and requires this configuration to be properly initialized.
      Parameters:
      file - the output file that will receive TSV records produced by this class.
      encoding - the encoding of the file
      settings - the TSV writer configuration
    • TsvWriter

      public TsvWriter(File file, Charset encoding, TsvWriterSettings settings)
      The TsvWriter supports all settings provided by TsvWriterSettings, and requires this configuration to be properly initialized.
      Parameters:
      file - the output file that will receive TSV records produced by this class.
      encoding - the encoding of the file
      settings - the TSV writer configuration
    • TsvWriter

      public TsvWriter(OutputStream output, TsvWriterSettings settings)
      The TsvWriter supports all settings provided by TsvWriterSettings, and requires this configuration to be properly initialized.
      Parameters:
      output - the output stream that will be written with the TSV records produced by this class.
      settings - the TSV writer configuration
    • TsvWriter

      public TsvWriter(OutputStream output, String encoding, TsvWriterSettings settings)
      The TsvWriter supports all settings provided by TsvWriterSettings, and requires this configuration to be properly initialized.
      Parameters:
      output - the output stream that will be written with the TSV records produced by this class.
      encoding - the encoding of the stream
      settings - the TSV writer configuration
    • TsvWriter

      public TsvWriter(OutputStream output, Charset encoding, TsvWriterSettings settings)
      The TsvWriter supports all settings provided by TsvWriterSettings, and requires this configuration to be properly initialized.
      Parameters:
      output - the output stream that will be written with the TSV records produced by this class.
      encoding - the encoding of the stream
      settings - the TSV writer configuration
  • Method Details