Package | Description |
---|---|
org.supercsv.encoder |
Provides the classes used for encoding CSV for writing.
|
org.supercsv.io |
Provides the various readers and writers used to read/write Strings, Maps, or Objects.
|
org.supercsv.io.dozer |
Provides the various readers and writers used to read/write POJOs using Dozer.
|
org.supercsv.prefs |
Provides the configuration classes used when instantiating readers and writers.
|
org.supercsv.quote |
Provides the classes used to quote CSV for output.
|
Modifier and Type | Method and Description |
---|---|
String |
SelectiveCsvEncoder.encode(String input,
CsvContext context,
CsvPreference preference)
Encodes a String to be written to a CSV file.
|
String |
DefaultCsvEncoder.encode(String input,
CsvContext context,
CsvPreference preference)
Encodes a String to be written to a CSV file.
|
String |
CsvEncoder.encode(String input,
CsvContext context,
CsvPreference preference)
Encodes a String to be written to a CSV file.
|
Modifier and Type | Method and Description |
---|---|
protected CsvPreference |
AbstractTokenizer.getPreferences()
Gets the CSV preferences.
|
protected CsvPreference |
AbstractCsvReader.getPreferences()
Gets the preferences.
|
Constructor and Description |
---|
AbstractCsvReader(ITokenizer tokenizer,
CsvPreference preferences)
Constructs a new AbstractCsvReader, using a custom
Tokenizer (which should have already been set
up with the Reader, CsvPreference, and CsvContext). |
AbstractCsvReader(Reader reader,
CsvPreference preferences)
Constructs a new AbstractCsvReader, using the default
Tokenizer . |
AbstractCsvWriter(Writer writer,
CsvPreference preference)
Constructs a new AbstractCsvWriter with the supplied writer and preferences.
|
AbstractCsvWriter(Writer writer,
CsvPreference preference,
boolean bufferizeWriter)
Constructs a new AbstractCsvWriter with the supplied writer, preferences and option
to wrap the writer.
|
AbstractTokenizer(Reader reader,
CsvPreference preferences)
Constructs a new AbstractTokenizer, which reads the CSV file, line by line.
|
CsvBeanReader(ITokenizer tokenizer,
CsvPreference preferences)
Constructs a new CsvBeanReader with the supplied (custom) Tokenizer and CSV preferences.
|
CsvBeanReader(Reader reader,
CsvPreference preferences)
Constructs a new CsvBeanReader with the supplied Reader and CSV preferences.
|
CsvBeanWriter(Writer writer,
CsvPreference preference)
Constructs a new CsvBeanWriter with the supplied Writer and CSV preferences.
|
CsvListReader(ITokenizer tokenizer,
CsvPreference preferences)
Constructs a new CsvListReader with the supplied (custom) Tokenizer and CSV preferences.
|
CsvListReader(Reader reader,
CsvPreference preferences)
Constructs a new CsvListReader with the supplied Reader and CSV preferences.
|
CsvListWriter(Writer writer,
CsvPreference preference)
Constructs a new CsvListWriter with the supplied Writer and CSV preferences.
|
CsvMapReader(ITokenizer tokenizer,
CsvPreference preferences)
Constructs a new CsvMapReader with the supplied (custom) Tokenizer and CSV preferences.
|
CsvMapReader(Reader reader,
CsvPreference preferences)
Constructs a new CsvMapReader with the supplied Reader and CSV preferences.
|
CsvMapWriter(Writer writer,
CsvPreference preference)
Constructs a new CsvMapWriter with the supplied Writer and CSV preferences.
|
CsvMapWriter(Writer writer,
CsvPreference preference,
boolean bufferizeWriter)
Constructs a new CsvMapWriter with the supplied Writer, CSV preferences and option
to bufferize the writer.
|
CsvResultSetWriter(Writer writer,
CsvPreference preference)
Constructs a new
CsvResultSetWriter with the supplied Writer and CSV preferences. |
Tokenizer(Reader reader,
CsvPreference preferences)
Constructs a new Tokenizer, which reads the CSV file, line by line.
|
Constructor and Description |
---|
CsvDozerBeanReader(ITokenizer tokenizer,
CsvPreference preferences)
Constructs a new CsvDozerBeanReader with the supplied (custom) Tokenizer and CSV preferences and creates
it's own DozerBeanMapper.
|
CsvDozerBeanReader(ITokenizer tokenizer,
CsvPreference preferences,
DozerBeanMapper dozerBeanMapper)
Constructs a new CsvDozerBeanReader with the supplied (custom) Tokenizer, CSV preferences and
DozerBeanMapper.
|
CsvDozerBeanReader(Reader reader,
CsvPreference preferences)
Constructs a new CsvDozerBeanReader with the supplied Reader and CSV preferences and creates it's own
DozerBeanMapper.
|
CsvDozerBeanReader(Reader reader,
CsvPreference preferences,
DozerBeanMapper dozerBeanMapper)
Constructs a new CsvDozerBeanReader with the supplied Reader, CSV preferences and DozerBeanMapper.
|
CsvDozerBeanWriter(Writer writer,
CsvPreference preference)
Constructs a new CsvDozerBeanWriter with the supplied Writer and CSV preferences and and creates it's
own DozerBeanMapper.
|
CsvDozerBeanWriter(Writer writer,
CsvPreference preference,
DozerBeanMapper dozerBeanMapper)
Constructs a new CsvDozerBeanWriter with the supplied Writer, CSV preferences and DozerBeanMapper.
|
Modifier and Type | Field and Description |
---|---|
static CsvPreference |
CsvPreference.EXCEL_NORTH_EUROPE_PREFERENCE
Ready to use configuration for north European excel CSV files (columns are separated by ";" instead of ",")
|
static CsvPreference |
CsvPreference.EXCEL_PREFERENCE
Ready to use configuration for Windows Excel exported CSV files.
|
static CsvPreference |
CsvPreference.STANDARD_PREFERENCE
Ready to use configuration that should cover 99% of all usages.
|
static CsvPreference |
CsvPreference.TAB_PREFERENCE
Ready to use configuration for tab-delimited files.
|
Modifier and Type | Method and Description |
---|---|
CsvPreference |
CsvPreference.Builder.build()
Builds the CsvPreference instance.
|
Constructor and Description |
---|
Builder(CsvPreference preference)
Constructs a Builder with all of the values from an existing CsvPreference instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
QuoteMode.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).
|
boolean |
NormalQuoteMode.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).
|
boolean |
ColumnQuoteMode.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).
|
boolean |
AlwaysQuoteMode.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).
|
Copyright © 2007–2015 Super CSV. All rights reserved.