| Package | Description |
|---|---|
| com.opengamma.strata.collect.io |
Provides utilities for the management of input and output.
|
| Modifier and Type | Method and Description |
|---|---|
CsvRow |
CsvIterator.next()
Returns the next row from the CSV file.
|
CsvRow |
CsvIterator.peek()
Peeks the next row from the CSV file without changing the iteration position.
|
CsvRow |
CsvFile.row(int index)
Gets a single row.
|
CsvRow |
CsvRow.subRow(int startInclusive)
Obtains a sub-row, containing a selection of fields by index.
|
CsvRow |
CsvRow.subRow(int startInclusive,
int endExclusive)
Obtains a sub-row, containing a selection of fields by index.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<CsvRow> |
CsvIterator.asIterable()
Returns an
Iterable that wraps this iterator. |
Stream<CsvRow> |
CsvIterator.asStream()
Returns a stream that wraps this iterator.
|
List<CsvRow> |
CsvIterator.nextBatch(int count)
Returns the next batch of rows from the CSV file.
|
List<CsvRow> |
CsvIterator.nextBatch(Predicate<CsvRow> selector)
Returns the next batch of rows from the CSV file using a predicate to determine the rows.
|
ImmutableList<CsvRow> |
CsvFile.rows()
Gets all data rows in the file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CsvOutput.writeRow(CsvRow row)
Writes a single
CsvRow to the underlying, only quoting if needed. |
void |
CsvOutput.writeRow(CsvRow row,
boolean alwaysQuote)
Writes a single
CsvRow to the underlying. |
| Modifier and Type | Method and Description |
|---|---|
List<CsvRow> |
CsvIterator.nextBatch(Predicate<CsvRow> selector)
Returns the next batch of rows from the CSV file using a predicate to determine the rows.
|
void |
CsvOutput.writeRows(Iterable<CsvRow> rows,
boolean alwaysQuote)
Writes multiple
CsvRows to the underlying. |
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.