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 ofCsvReadParametersthat has the default parameter values.Returns a new instance ofCsvWriteParametersthat has the default parameter values.newRowBuilder(CsvBuilder csvBuilder) Returns a newRowBuilderthat 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
CsvReadParametersto 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
CsvReadParametersto control how values are read.- Parameters:
csvString- a valid CSV string, with headers. Cannot be null or empty.parameters- theCsvReadParametersto control how values are read. Cannot be null.- Returns:
- the
CsvData
-
newCsvBuilder
CsvBuilder newCsvBuilder()Returns a newCsvBuilder.This method will use the default
CsvWriteParametersto control how values are written.- Returns:
- a new
CsvBuilder
-
newCsvBuilder
Returns a newCsvBuilder.This method will use the specified
CsvWriteParametersto control how values are written.- Parameters:
parameters- theCsvWriteParametersthat control how values are written. Cannot be null.- Returns:
- the current builder
-
newRowBuilder
Returns a newRowBuilderthat 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 ofCsvReadParametersthat has the default parameter values.- Returns:
- a new
CsvReadParameters
-
newCsvWriteParameters
CsvWriteParameters newCsvWriteParameters()Returns a new instance ofCsvWriteParametersthat has the default parameter values.- Returns:
- a new
CsvWriteParameters
-