Top Description Fields Constructors Methods
com.univocity.parsers.csv

public final Enum UnescapedQuoteHandling

extends Enum<UnescapedQuoteHandling>
Class Inheritance
Imports
com.univocity.parsers.common.*

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.
Author
Univocity Software Pty Ltd - [email protected]
See Also
com.univocity.parsers.csv.CsvParserSettings, com.univocity.parsers.csv.CsvFormat, com.univocity.parsers.csv.CsvParser, com.univocity.parsers.common.CommonParserSettings

Field Summary

Modifier and TypeField and Description
public static final UnescapedQuoteHandling
BACK_TO_DELIMITER

If unescaped quotes are found in the input, consider the value as an unquoted value.

public static final UnescapedQuoteHandling
RAISE_ERROR

If unescaped quotes are found in the input, a TextParsingException will be thrown.

public static final UnescapedQuoteHandling
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.

public static final UnescapedQuoteHandling
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.

public static final UnescapedQuoteHandling
STOP_AT_DELIMITER

If unescaped quotes are found in the input, consider the value as an unquoted value.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static UnescapedQuoteHandling
public static UnescapedQuoteHandling[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

BACK_TO_DELIMITERback to summary
public static final UnescapedQuoteHandling BACK_TO_DELIMITER

If unescaped quotes are found in the input, consider the value as an unquoted value. This will make the parser accumulate all characters of the current parsed value until the delimiter defined by CsvFormat#getDelimiter() is found. If no delimiter is found in the value, the parser will continue accumulating characters from the input until a delimiter or line ending is found.

RAISE_ERRORback to summary
public static final UnescapedQuoteHandling RAISE_ERROR

If unescaped quotes are found in the input, a TextParsingException will be thrown.

SKIP_VALUEback to summary
public static final UnescapedQuoteHandling 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_QUOTEback to summary
public static final UnescapedQuoteHandling 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_DELIMITERback to summary
public static final UnescapedQuoteHandling STOP_AT_DELIMITER

If unescaped quotes are found in the input, consider the value as an unquoted value. This will make the parser accumulate all characters until the delimiter defined by CsvFormat#getDelimiter(), or a line ending is found in the input.

Constructor Detail

UnescapedQuoteHandlingback to summary
private UnescapedQuoteHandling()

Method Detail

valueOfback to summary
public static UnescapedQuoteHandling valueOf(String name)
valuesback to summary
public static UnescapedQuoteHandling[] values()