Example usage for Java org.apache.commons.csv CSVFormat fields, constructors, methods, implement or subclass
The text is from its open source code.
CSVFormat | DEFAULT Standard comma separated format, as for #RFC4180 but allowing empty lines. |
CSVFormat | RFC4180 Comma separated format as defined by RFC 4180. |
CSVFormat | EXCEL Excel file format (using a comma as the value delimiter). |
CSVFormat | TDF Tab-delimited format. |
CSVFormat | MYSQL Default MySQL format used by the SELECT INTO OUTFILE and LOAD DATA INFILE operations. |
String | format(final Object... values) Formats the specified values. |
Character | getCommentMarker() Returns the character marking the start of a line comment. |
char | getDelimiter() Returns the character delimiting the values (typically ';', ',' or '\t'). |
Character | getEscapeCharacter() Returns the escape character. |
String[] | getHeader() Returns a copy of the header array. |
String[] | getHeaderComments() Returns a copy of the header comment array. |
boolean | getIgnoreEmptyLines() Specifies whether empty lines between records are ignored when parsing input. |
boolean | getIgnoreSurroundingSpaces() Specifies whether spaces around values are ignored when parsing input. |
String | getNullString() Gets the String to convert to and from null . |
Character | getQuoteCharacter() Returns the character used to encapsulate values containing special characters. |
QuoteMode | getQuoteMode() Returns the quote policy output fields. |
String | getRecordSeparator() Returns the record separator delimiting output records. |
boolean | getSkipHeaderRecord() Returns whether to skip the header record. |
CSVFormat | newFormat(final char delimiter) Creates a new CSV format with the specified delimiter. |
CSVParser | parse(final Reader in) Parses the specified content. |
CSVPrinter | print(final Appendable out) Prints to the specified output. |
CSVFormat | withAllowMissingColumnNames(final boolean allowMissingColumnNames) Sets the missing column names behavior of the format. |
CSVFormat | withCommentMarker(final char commentMarker) Sets the comment start marker of the format to the specified character. |
CSVFormat | withCommentMarker(final Character commentMarker) Sets the comment start marker of the format to the specified character. |
CSVFormat | withDelimiter(final char delimiter) Sets the delimiter of the format to the specified character. |
CSVFormat | withEscape(final char escape) Sets the escape character of the format to the specified character. |
CSVFormat | withEscape(final Character escape) Sets the escape character of the format to the specified character. |
CSVFormat | withHeader(final String... header) Sets the header of the format. |
CSVFormat | withHeader(final ResultSet resultSet) Sets the header of the format. |
CSVFormat | withHeader(final ResultSetMetaData metaData) Sets the header of the format. |
CSVFormat | withHeaderComments(final Object... headerComments) Sets the header comments of the format. |
CSVFormat | withIgnoreEmptyLines(final boolean ignoreEmptyLines) Sets the empty line skipping behavior of the format. |
CSVFormat | withIgnoreSurroundingSpaces(final boolean ignoreSurroundingSpaces) Sets the trimming behavior of the format. |
CSVFormat | withNullString(final String nullString) Performs conversions to and from null for strings on input and output. |
CSVFormat | withQuote(final char quoteChar) Sets the quoteChar of the format to the specified character. |
CSVFormat | withQuote(final Character quoteChar) Sets the quoteChar of the format to the specified character. |
CSVFormat | withQuoteMode(final QuoteMode quoteModePolicy) Sets the output quote policy of the format to the specified value. |
CSVFormat | withRecordSeparator(final char recordSeparator) Sets the record separator of the format to the specified character. |
CSVFormat | withRecordSeparator(final String recordSeparator) Sets the record separator of the format to the specified String. |
CSVFormat | withSkipHeaderRecord(final boolean skipHeaderRecord) Sets whether to skip the header record. |
CSVFormat | withSkipHeaderRecord() Sets skipping the header record to true . |