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 theCsvHeadersfor the data, if present.intReturns the total number of rows in the CSV data.getRow(int index) Returns aRowof data at a given index.
-
Method Details
-
getHeaders
Optional<CsvHeaders> getHeaders()Returns theCsvHeadersfor the data, if present. If not present, this returns an emptyOptional.- Returns:
- the
CsvHeadersfor the data if present; else an emptyOptional.
-
getRow
Returns aRowof 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
Rowof 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
-