Package com.veeva.vault.sdk.api.csv
Interface CsvService
- All Superinterfaces:
Service
Service for reading and writing CSV data.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a newCsvBuilder
.newCsvBuilder
(CsvWriteParameters parameters) Returns a newCsvBuilder
.Returns a new instance ofCsvReadParameters
that has the default parameter values.Returns a new instance ofCsvWriteParameters
that has the default parameter values.newRowBuilder
(CsvBuilder csvBuilder) Returns a newRowBuilder
that can be used to build rows for the specifiedCsvBuilder
.Parses a CSV string that and returnsCsvData
.readCsv
(String csvString, CsvReadParameters parameters) Parses a CSV string that and returnsCsvData
.
-
Method Details
-
readCsv
Parses a CSV string that and returnsCsvData
.This method will use the default
CsvReadParameters
to control how values are read.- Parameters:
csvString
- a valid CSV string, with headers. Cannot be null or empty.- Returns:
- the
CsvData
-
readCsv
Parses a CSV string that and returnsCsvData
.This method will use the specified
CsvReadParameters
to control how values are read.- Parameters:
csvString
- a valid CSV string, with headers. Cannot be null or empty.parameters
- theCsvReadParameters
to control how values are read. Cannot be null.- Returns:
- the
CsvData
-
newCsvBuilder
CsvBuilder newCsvBuilder()Returns a newCsvBuilder
.This method will use the default
CsvWriteParameters
to control how values are written.- Returns:
- a new
CsvBuilder
-
newCsvBuilder
Returns a newCsvBuilder
.This method will use the specified
CsvWriteParameters
to control how values are written.- Parameters:
parameters
- theCsvWriteParameters
that control how values are written. Cannot be null.- Returns:
- the current builder
-
newRowBuilder
Returns a newRowBuilder
that can be used to build rows for the specifiedCsvBuilder
.- Parameters:
csvBuilder
- the CSV builder for which the row is being built. Cannot be null.- Returns:
- a new
RowBuilder
-
newCsvReadParameters
CsvReadParameters newCsvReadParameters()Returns a new instance ofCsvReadParameters
that has the default parameter values.- Returns:
- a new
CsvReadParameters
-
newCsvWriteParameters
CsvWriteParameters newCsvWriteParameters()Returns a new instance ofCsvWriteParameters
that has the default parameter values.- Returns:
- a new
CsvWriteParameters
-