Package com.veeva.vault.sdk.api.csv
Interface CsvData
public interface CsvData
Represents immutable CSV data.
-
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns the CSV as aString
.Returns theCsvHeaders
for the data, if present.int
Returns the total number of rows in the CSV data.getRow
(int index) Returns aRow
of data at a given index.
-
Method Details
-
getHeaders
Optional<CsvHeaders> getHeaders()Returns theCsvHeaders
for the data, if present. If not present, this returns an emptyOptional
.- Returns:
- the
CsvHeaders
for the data if present; else an emptyOptional
.
-
getRow
Returns aRow
of data at a given index.- Parameters:
index
- the index of the row to retrieve. Cannot be negative or greater than/equal to the number of rows.- Returns:
- a
Row
of data at the specified index
-
streamRows
-
getNumRows
int getNumRows()Returns the total number of rows in the CSV data.- Returns:
- the total number of rows
-
asString
String asString()Returns the CSV as aString
.- Returns:
- the CSV as a String
-