CsvFormat, CsvWriterSettings, CsvParser, AbstractWriter
| Modifier and Type | Field and Description |
|---|---|
| private char | |
| private boolean | |
| private char | |
| private char | |
| private boolean | |
| private boolean | |
| private char | |
| private char[] | |
| private char | |
| private boolean[] | |
| private boolean | |
| private char | |
| private Set | |
| private FieldSelector | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | CsvWriter(CsvWriterSettings
the CSV writer configuration settings)The CsvWriter supports all settings provided by |
| public | CsvWriter(Writer
the output resource that will receive CSV records produced by this class. writer, CsvWriterSettings the CSV writer configuration settings)The CsvWriter supports all settings provided by |
| public | CsvWriter(File
the output file that will receive CSV records produced by this class. file, CsvWriterSettings the CSV writer configuration settings)The CsvWriter supports all settings provided by |
| public | CsvWriter(File
the output file that will receive CSV records produced by this class. file, String the encoding of the file encoding, CsvWriterSettings the CSV writer configuration settings)The CsvWriter supports all settings provided by |
| public | CsvWriter(File
the output file that will receive CSV records produced by this class. file, Charset the encoding of the file encoding, CsvWriterSettings the CSV writer configuration settings)The CsvWriter supports all settings provided by |
| public | CsvWriter(OutputStream
the output stream that will be written with the CSV records produced by this class. output, CsvWriterSettings the CSV writer configuration settings)The CsvWriter supports all settings provided by |
| public | CsvWriter(OutputStream
the output stream that will be written with the CSV records produced by this class. output, String the encoding of the stream encoding, CsvWriterSettings the CSV writer configuration settings)The CsvWriter supports all settings provided by |
| public | CsvWriter(OutputStream
the output stream that will be written with the CSV records produced by this class. output, Charset the encoding of the stream encoding, CsvWriterSettings the CSV writer configuration settings)The CsvWriter supports all settings provided by |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| private void | |
| protected final void | initialize(CsvWriterSettings
the CSV writer configuration settings)Implements abstract com. |
| private boolean | |
| protected void | processRow(Object[]
the data to be written to the output in the expected format. row)Implements abstract com. |
| private boolean |
| delimiter | back to summary |
|---|---|
| private char delimiter | |
| dontProcessNormalizedNewLines | back to summary |
|---|---|
| private boolean dontProcessNormalizedNewLines | |
| escapeChar | back to summary |
|---|---|
| private char escapeChar | |
| escapeEscape | back to summary |
|---|---|
| private char escapeEscape | |
| escapeUnquoted | back to summary |
|---|---|
| private boolean escapeUnquoted | |
| inputNotEscaped | back to summary |
|---|---|
| private boolean inputNotEscaped | |
| maxTrigger | back to summary |
|---|---|
| private char maxTrigger | |
| multiDelimiter | back to summary |
|---|---|
| private char[] multiDelimiter | |
| newLine | back to summary |
|---|---|
| private char newLine | |
| quotationTriggers | back to summary |
|---|---|
| private boolean[] quotationTriggers | |
| quoteAllFields | back to summary |
|---|---|
| private boolean quoteAllFields | |
| quoteChar | back to summary |
|---|---|
| private char quoteChar | |
| quotedColumns | back to summary |
|---|---|
| private Set<Integer> quotedColumns | |
| quotedFieldSelector | back to summary |
|---|---|
| private FieldSelector quotedFieldSelector | |
| quoteNulls | back to summary |
|---|---|
| private boolean quoteNulls | |
| CsvWriter | back to summary |
|---|---|
| public CsvWriter(CsvWriterSettings settings) The CsvWriter supports all settings provided by Important Note by not providing an instance of
| |
| CsvWriter | back to summary |
|---|---|
| public CsvWriter(Writer writer, CsvWriterSettings settings) The CsvWriter supports all settings provided by
| |
| CsvWriter | back to summary |
|---|---|
| public CsvWriter(File file, CsvWriterSettings settings) The CsvWriter supports all settings provided by
| |
| CsvWriter | back to summary |
|---|---|
| public CsvWriter(File file, String encoding, CsvWriterSettings settings) The CsvWriter supports all settings provided by
| |
| CsvWriter | back to summary |
|---|---|
| public CsvWriter(File file, Charset encoding, CsvWriterSettings settings) The CsvWriter supports all settings provided by
| |
| CsvWriter | back to summary |
|---|---|
| public CsvWriter(OutputStream output, CsvWriterSettings settings) The CsvWriter supports all settings provided by
| |
| CsvWriter | back to summary |
|---|---|
| public CsvWriter(OutputStream output, String encoding, CsvWriterSettings settings) The CsvWriter supports all settings provided by
| |
| CsvWriter | back to summary |
|---|---|
| public CsvWriter(OutputStream output, Charset encoding, CsvWriterSettings settings) The CsvWriter supports all settings provided by
| |
| append | back to summary |
|---|---|
| private boolean append(int columnIndex, boolean isElementQuoted, boolean allowTrim, String element) | |
| appendQuoted | back to summary |
|---|---|
| private void appendQuoted(int start, boolean allowTrim, String element) | |
| initialize | back to summary |
|---|---|
| protected final void initialize(CsvWriterSettings settings) Implements abstract com. Initializes the CSV writer with CSV-specific configuration
| |
| matchMultiDelimiter | back to summary |
|---|---|
| private boolean matchMultiDelimiter(String element, int from) | |
| 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.
| |
| quoteElement | back to summary |
|---|---|
| private boolean quoteElement(int start, String element) | |