Package org.supercsv.quote
Class AlwaysQuoteMode
java.lang.Object
org.supercsv.quote.AlwaysQuoteMode
- All Implemented Interfaces:
QuoteMode
When using AlwaysQuoteMode surrounding quotes are always applied.
- Since:
- 2.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
quotesRequired
(String csvColumn, CsvContext context, CsvPreference preference) Determines whether surrounding quotes are mandatory in cases where the CSV column would not normally be quoted (the data to be written doesn't contain special characters).
-
Constructor Details
-
AlwaysQuoteMode
public AlwaysQuoteMode()Constructs a new AlwaysQuoteMode.
-
-
Method Details
-
quotesRequired
Determines whether surrounding quotes are mandatory in cases where the CSV column would not normally be quoted (the data to be written doesn't contain special characters).- Specified by:
quotesRequired
in interfaceQuoteMode
- Parameters:
csvColumn
- an element of a CSV filecontext
- the contextpreference
- the CSV preferences- Returns:
- true if surrounding quotes are mandatory, otherwise false
-