Format, the CSV format defines:
e.g. the value a , b is parsed as [ a ][ b ]
e.g. the value " a , b " is parsed as [ a , b ] (instead of [ a ][ b ]
e.g. the value " "" a , b "" " is parsed as [ " a , b " ] (instead of [ " a ][ b " ] or [ "" a , b "" ])
e.g. if the quoteEscape and charToEscapeQuoteEscaping are set to '\', the value " \\\" a , b \\\" " is parsed as [ \" a , b \" ]
com.univocity.parsers.common.Format
| Modifier and Type | Field and Description |
|---|---|
| private Character | |
| private String | |
| private char | |
| private char |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final CsvFormat | clone()
Overrides com. |
| public final char | Returns: the character to escape the character used for escaping quotes definedReturns the character used to escape the character used for escaping quotes defined by |
| protected TreeMap | |
| public char | |
| public String | |
| public char | Returns: the quote characterReturns the character used for escaping values where the field delimiter is part of the value. |
| public char | Returns: the quote escape characterReturns the character used for escaping quotes inside an already quoted value. |
| public final boolean | Returns: true if the given character is used to escape the quote escape character, false otherwisethe character to be verified ch)Identifies whether or not a given character is used to escape the character used for escaping quotes defined by |
| public boolean | Returns: true if the given character is the field delimiter character, false otherwisethe character to be verified ch)Identifies whether or not a given character represents a field delimiter |
| public boolean | Returns: true if the given sequence is the field delimiter character sequence, false otherwisethe character sequence to be verified sequence)Identifies whether or not a given character represents a field delimiter |
| public boolean | Returns: true if the given character is the character used for escaping values, false otherwisethe character to be verified ch)Identifies whether or not a given character is used for escaping values where the field delimiter is part of the value |
| public boolean | Returns: true if the given character is the quote escape character, false otherwisethe character to be verified ch)Identifies whether or not a given character is used for escaping quotes inside an already quoted value. |
| public final void | setCharToEscapeQuoteEscaping(char
the character to escape the character used for escaping quotes defined charToEscapeQuoteEscaping)Defines the character used to escape the character used for escaping quotes defined by |
| public void | |
| public void | setDelimiter(String
the field delimiter sequence. delimiter)Defines the field delimiter as a sequence of characters. |
| public void | setQuote(char
the quote character quote)Defines the character used for escaping values where the field delimiter is part of the value. |
| public void | setQuoteEscape(char
the quote escape character quoteEscape)Defines the character used for escaping quotes inside an already quoted value. |
| charToEscapeQuoteEscaping | back to summary |
|---|---|
| private Character charToEscapeQuoteEscaping | |
| delimiter | back to summary |
|---|---|
| private String delimiter | |
| quote | back to summary |
|---|---|
| private char quote | |
| quoteEscape | back to summary |
|---|---|
| private char quoteEscape | |
| CsvFormat | back to summary |
|---|---|
| public CsvFormat() | |
| clone | back to summary |
|---|---|
| public final CsvFormat clone() Overrides com. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| getCharToEscapeQuoteEscaping | back to summary |
|---|---|
| public final char getCharToEscapeQuoteEscaping() Returns the character used to escape the character used for escaping quotes defined by [ " a\\", b ] Then:
| |
| getConfiguration | back to summary |
|---|---|
| protected TreeMap Implements abstract com.
| |
| getDelimiter | back to summary |
|---|---|
| public char getDelimiter() Returns the field delimiter character. Defaults to ','
| |
| getDelimiterString | back to summary |
|---|---|
| public String getDelimiterString() Returns the field delimiter sequence.
| |
| getQuote | back to summary |
|---|---|
| public char getQuote() Returns the character used for escaping values where the field delimiter is part of the value. Defaults to '"'
| |
| getQuoteEscape | back to summary |
|---|---|
| public char getQuoteEscape() Returns the character used for escaping quotes inside an already quoted value. Defaults to '"'
| |
| isCharToEscapeQuoteEscaping | back to summary |
|---|---|
| public final boolean isCharToEscapeQuoteEscaping(char ch) Identifies whether or not a given character is used to escape the character used for escaping quotes defined by
| |
| isDelimiter | back to summary |
|---|---|
| public boolean isDelimiter(char ch) Identifies whether or not a given character represents a field delimiter
| |
| isDelimiter | back to summary |
|---|---|
| public boolean isDelimiter(String sequence) Identifies whether or not a given character represents a field delimiter
| |
| isQuote | back to summary |
|---|---|
| public boolean isQuote(char ch) Identifies whether or not a given character is used for escaping values where the field delimiter is part of the value
| |
| isQuoteEscape | back to summary |
|---|---|
| public boolean isQuoteEscape(char ch) Identifies whether or not a given character is used for escaping quotes inside an already quoted value.
| |
| setCharToEscapeQuoteEscaping | back to summary |
|---|---|
| public final void setCharToEscapeQuoteEscaping(char charToEscapeQuoteEscaping) Defines the character used to escape the character used for escaping quotes defined by [ " a\\", b ] Then:
| |
| setDelimiter | back to summary |
|---|---|
| public void setDelimiter(char delimiter) Defines the field delimiter character. Defaults to ','
| |
| setDelimiter | back to summary |
|---|---|
| public void setDelimiter(String delimiter) Defines the field delimiter as a sequence of characters. Defaults to ','
| |
| setQuote | back to summary |
|---|---|
| public void setQuote(char quote) Defines the character used for escaping values where the field delimiter is part of the value. Defaults to '"'
| |
| setQuoteEscape | back to summary |
|---|---|
| public void setQuoteEscape(char quoteEscape) Defines the character used for escaping quotes inside an already quoted value. Defaults to '"'
| |