TsvFormat, TsvWriterSettings, TsvParser, AbstractWriter
| Modifier and Type | Field and Description |
|---|---|
| private char | |
| private char | |
| private boolean | |
| private char |
| Access | Constructor and Description |
|---|---|
| public | TsvWriter(TsvWriterSettings
the TSV writer configuration settings)The TsvWriter supports all settings provided by |
| public | TsvWriter(Writer
the output resource that will receive TSV records produced by this class. writer, TsvWriterSettings the TSV writer configuration settings)The TsvWriter supports all settings provided by |
| public | TsvWriter(File
the output file that will receive TSV records produced by this class. file, TsvWriterSettings the TSV writer configuration settings)The TsvWriter supports all settings provided by |
| public | TsvWriter(File
the output file that will receive TSV records produced by this class. file, String the encoding of the file encoding, TsvWriterSettings the TSV writer configuration settings)The TsvWriter supports all settings provided by |
| public | TsvWriter(File
the output file that will receive TSV records produced by this class. file, Charset the encoding of the file encoding, TsvWriterSettings the TSV writer configuration settings)The TsvWriter supports all settings provided by |
| public | TsvWriter(OutputStream
the output stream that will be written with the TSV records produced by this class. output, TsvWriterSettings the TSV writer configuration settings)The TsvWriter supports all settings provided by |
| public | TsvWriter(OutputStream
the output stream that will be written with the TSV records produced by this class. output, String the encoding of the stream encoding, TsvWriterSettings the TSV writer configuration settings)The TsvWriter supports all settings provided by |
| public | TsvWriter(OutputStream
the output stream that will be written with the TSV records produced by this class. output, Charset the encoding of the stream encoding, TsvWriterSettings the TSV writer configuration settings)The TsvWriter supports all settings provided by |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected final void | initialize(TsvWriterSettings
the TSV writer configuration settings)Implements abstract com. |
| protected void | processRow(Object[]
the data to be written to the output in the expected format. row)Implements abstract com. |
| escapeChar | back to summary |
|---|---|
| private char escapeChar | |
| escapedTabChar | back to summary |
|---|---|
| private char escapedTabChar | |
| joinLines | back to summary |
|---|---|
| private boolean joinLines | |
| newLine | back to summary |
|---|---|
| private char newLine | |
| TsvWriter | back to summary |
|---|---|
| public TsvWriter(TsvWriterSettings settings) The TsvWriter supports all settings provided by Important Note by not providing an instance of
| |
| TsvWriter | back to summary |
|---|---|
| public TsvWriter(Writer writer, TsvWriterSettings settings) The TsvWriter supports all settings provided by
| |
| TsvWriter | back to summary |
|---|---|
| public TsvWriter(File file, TsvWriterSettings settings) The TsvWriter supports all settings provided by
| |
| TsvWriter | back to summary |
|---|---|
| public TsvWriter(File file, String encoding, TsvWriterSettings settings) The TsvWriter supports all settings provided by
| |
| TsvWriter | back to summary |
|---|---|
| public TsvWriter(File file, Charset encoding, TsvWriterSettings settings) The TsvWriter supports all settings provided by
| |
| TsvWriter | back to summary |
|---|---|
| public TsvWriter(OutputStream output, TsvWriterSettings settings) The TsvWriter supports all settings provided by
| |
| TsvWriter | back to summary |
|---|---|
| public TsvWriter(OutputStream output, String encoding, TsvWriterSettings settings) The TsvWriter supports all settings provided by
| |
| TsvWriter | back to summary |
|---|---|
| public TsvWriter(OutputStream output, Charset encoding, TsvWriterSettings settings) The TsvWriter supports all settings provided by
| |
| append | back to summary |
|---|---|
| private void append(String element, boolean allowTrim) | |
| initialize | back to summary |
|---|---|
| protected final void initialize(TsvWriterSettings settings) Implements abstract com. Initializes the TSV writer with TSV-specific configuration
| |
| processRow | back to summary |
|---|---|
| protected void processRow(Object[] row) Implements abstract com. Doc from com. Format-specific implementation for writing a single record into the output.
The AbstractWriter handles the initialization and processing of the output until it is ready to be written (generally, reorganizing it and passing it on
to a
processRow(Object[]) method returns, a row will be written to the output with the processed information, and a newline will be automatically written after the given contents, unless this is a
com. whose FixedWidthWriterSettings#getWriteLineSeparatorAfterRecord() evaluates to false. The newline character sequence will conform to what is specified in Format#getLineSeparator()
This cycle repeats until the writing process is stopped by the user or an error happens.
In case of errors, the unchecked exception TextWritingException will be thrown and all resources in use will be closed automatically. The exception should contain the cause and more information about the output state when the error happened.
| |