Class TsvWriter

    • Field Detail

      • joinLines

        private boolean joinLines
      • escapeChar

        private char escapeChar
      • escapedTabChar

        private char escapedTabChar
      • newLine

        private char newLine
    • Constructor Detail

      • 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​(java.io.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​(java.io.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​(java.io.File file,
                         java.lang.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​(java.io.File file,
                         java.nio.charset.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​(java.io.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​(java.io.OutputStream output,
                         java.lang.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​(java.io.OutputStream output,
                         java.nio.charset.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