| Modifier and Type | Method and Description |
|---|---|
ImmutableList<String> |
headers()
Gets the list of headers that are in use.
|
CsvOutput.CsvRowOutputWithHeaders |
writeCell(String header,
double value)
Writes a single cell by header, with the cell only being output when
writeNewLine() is called. |
CsvOutput.CsvRowOutputWithHeaders |
writeCell(String header,
long value)
Writes a single cell by header, with the cell only being output when
writeNewLine() is called. |
CsvOutput.CsvRowOutputWithHeaders |
writeCell(String header,
Object value)
Writes a single cell by header, with the cell only being output when
writeNewLine() is called. |
CsvOutput.CsvRowOutputWithHeaders |
writeCell(String header,
String value)
Writes a single cell by header, with the cell only being output when
writeNewLine() is called. |
CsvOutput.CsvRowOutputWithHeaders |
writeCells(Map<String,String> valueMap)
Writes a map of cells to the output, with the cell only being output when
writeNewLine() is called. |
CsvOutput.CsvRowOutputWithHeaders |
writeLine(Map<String,String> valueMap)
Writes a row to the output, specifying each value by the header.
|
CsvOutput.CsvRowOutputWithHeaders |
writeNewLine()
Writes a new line character.
|
public ImmutableList<String> headers()
This is the same list that was passed into CsvOutput.withHeaders(List, boolean).
public CsvOutput.CsvRowOutputWithHeaders writeLine(Map<String,String> valueMap)
The header must exactly match the header passed into the constructor of this instance. An exception is thrown if the header is not known.
This method is equivalent to multiple calls to writeCell(String, String)
followed by one call to writeNewLine().
valueMap - the map of values to write keyed by headerIllegalArgumentException - if one of the headers does not matchUncheckedIOException - if an IO exception occurspublic CsvOutput.CsvRowOutputWithHeaders writeCells(Map<String,String> valueMap)
writeNewLine() is called.
The header must exactly match the header passed into the constructor of this instance. An exception is thrown if the header is not known.
This method is equivalent to multiple calls to writeCell(String, String).
Note that if writeNewLine() is not called, the cell will never be output.
valueMap - the map of values to write keyed by headerIllegalArgumentException - if one of the headers does not matchUncheckedIOException - if an IO exception occurspublic CsvOutput.CsvRowOutputWithHeaders writeCell(String header, String value)
writeNewLine() is called.
The header must exactly match the header passed into the constructor of this instance. An exception is thrown if the header is not known.
Note that if writeNewLine() is not called, the cell will never be output.
header - the header to writevalue - the value to writeIllegalArgumentException - if one of the headers does not matchUncheckedIOException - if an IO exception occurspublic CsvOutput.CsvRowOutputWithHeaders writeCell(String header, Object value)
writeNewLine() is called.
The header must exactly match the header passed into the constructor of this instance. An exception is thrown if the header is not known.
Note that if writeNewLine() is not called, the cell will never be output.
header - the header to writevalue - the value to writeIllegalArgumentException - if one of the headers does not matchUncheckedIOException - if an IO exception occurspublic CsvOutput.CsvRowOutputWithHeaders writeCell(String header, double value)
writeNewLine() is called.
The header must exactly match the header passed into the constructor of this instance. An exception is thrown if the header is not known.
Note that if writeNewLine() is not called, the cell will never be output.
header - the header to writevalue - the value to writeIllegalArgumentException - if one of the headers does not matchUncheckedIOException - if an IO exception occurspublic CsvOutput.CsvRowOutputWithHeaders writeCell(String header, long value)
writeNewLine() is called.
The header must exactly match the header passed into the constructor of this instance. An exception is thrown if the header is not known.
Note that if writeNewLine() is not called, the cell will never be output.
header - the header to writevalue - the value to writeIllegalArgumentException - if one of the headers does not matchUncheckedIOException - if an IO exception occurspublic CsvOutput.CsvRowOutputWithHeaders writeNewLine()
UncheckedIOException - if an IO exception occursCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.