Since DEFAULT is supposed to be RFC4180 + ignore blank lines: make it so
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1399048 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e04a86ae11
commit
3daeb02c08
|
@ -63,22 +63,6 @@ public class CSVFormat implements Serializable {
|
|||
*/
|
||||
private static final CSVFormat PRISTINE = new CSVFormat(DISABLED, null, null, null, null, false, false, null, null);
|
||||
|
||||
/**
|
||||
* Standard comma separated format, as for {@link #RFC4180} but allowing blank lines.
|
||||
* <ul>
|
||||
* <li>withDelimiter(',')</li>
|
||||
* <li>withQuoteChar('"')</li>
|
||||
* <li>withEmptyLinesIgnored(true)</li>
|
||||
* <li>withLineSeparator(CRLF)</li>
|
||||
* </ul>
|
||||
*/
|
||||
public static final CSVFormat DEFAULT =
|
||||
PRISTINE
|
||||
.withDelimiter(COMMA)
|
||||
.withQuoteChar(DOUBLE_QUOTE)
|
||||
.withIgnoreEmptyLines(true)
|
||||
.withRecordSeparator(CRLF);
|
||||
|
||||
/**
|
||||
* Comma separated format as defined by <a href="http://tools.ietf.org/html/rfc4180">RFC 4180</a>.
|
||||
* <ul>
|
||||
|
@ -93,6 +77,19 @@ public class CSVFormat implements Serializable {
|
|||
.withQuoteChar(DOUBLE_QUOTE)
|
||||
.withRecordSeparator(CRLF);
|
||||
|
||||
/**
|
||||
* Standard comma separated format, as for {@link #RFC4180} but allowing blank lines.
|
||||
* <ul>
|
||||
* <li>withDelimiter(',')</li>
|
||||
* <li>withQuoteChar('"')</li>
|
||||
* <li>withEmptyLinesIgnored(true)</li>
|
||||
* <li>withLineSeparator(CRLF)</li>
|
||||
* </ul>
|
||||
*/
|
||||
public static final CSVFormat DEFAULT = // TODO rename to something more meaningful
|
||||
RFC4180
|
||||
.withIgnoreEmptyLines(true);
|
||||
|
||||
/**
|
||||
* Excel file format (using a comma as the value delimiter). Note that the actual value delimiter used by Excel is
|
||||
* locale dependent, it might be necessary to customize this format to accomodate to your regional settings.
|
||||
|
|
Loading…
Reference in New Issue