Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ public class CsvConstant {
public static final char PIPE = '|';
public static final char DOUBLE_QUOTE = '"';

/**
* Represents a disabled quote character.
* When the quote is set to this value, the CSV parser will treat all quote characters as regular text.
*/
public static final char NONE_QUOTE = '\0';

/**
* line break
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ public CsvReaderBuilder delimiter(String delimiter) {

/**
* Sets the quote character
* <p>
* If set to {@link org.apache.fesod.sheet.metadata.csv.CsvConstant#NONE_QUOTE}, the quote parsing logic will be disabled,
* and quote characters will be treated as regular text.This is equivalent to setting
* {@code quote} to {@code null} in Apache Commons CSV.
* </p>
*
* @param quote the quote character
* @return Returns a CsvReaderBuilder object, enabling method chaining
Expand Down
Loading