|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<UnescapedQuoteHandling>
com.univocity.parsers.csv.UnescapedQuoteHandling
public enum UnescapedQuoteHandling
This enumeration is used to determine how the (CsvParser) will handle values with unescaped quotes.
Use CsvParserSettings.setUnescapedQuoteHandling(UnescapedQuoteHandling) to configure the appropriate
handling of unescaped quotes on your input.
CsvParserSettings,
CsvFormat,
CsvParser,
CommonParserSettings| Enum Constant Summary | |
|---|---|
RAISE_ERROR
If unescaped quotes are found in the input, a TextParsingException will be thrown. |
|
SKIP_VALUE
If unescaped quotes are found in the input, the content parsed for the given value will be skipped (until the next delimiter is found) and the value set in CommonSettings.getNullValue() will be produced instead. |
|
STOP_AT_CLOSING_QUOTE
If unescaped quotes are found in the input, accumulate the quote character and proceed parsing the value as a quoted value, until a closing quote is found. |
|
STOP_AT_DELIMITER
If unescaped quotes are found in the input, consider the value as an unquoted value. |
|
| Method Summary | |
|---|---|
static UnescapedQuoteHandling |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static UnescapedQuoteHandling[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final UnescapedQuoteHandling STOP_AT_CLOSING_QUOTE
public static final UnescapedQuoteHandling STOP_AT_DELIMITER
CsvFormat.getDelimiter() is found in the input.
public static final UnescapedQuoteHandling SKIP_VALUE
CommonSettings.getNullValue() will be produced instead.
public static final UnescapedQuoteHandling RAISE_ERROR
TextParsingException will be thrown.
| Method Detail |
|---|
public static UnescapedQuoteHandling[] values()
for (UnescapedQuoteHandling c : UnescapedQuoteHandling.values()) System.out.println(c);
public static UnescapedQuoteHandling valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||