public abstract class CsvRecord extends Object
CsvParser
and written by a
CsvPrinter
.Modifier | Constructor and Description |
---|---|
protected |
CsvRecord()
Create an empty record.
|
Modifier and Type | Method and Description |
---|---|
protected String |
get(int pos)
Returns the value of the record at a certain index position.
|
protected String |
get(int pos,
String defaultValue)
Returns the value of the record at a certain index position.
|
protected abstract int |
getRecordLenth()
Returns the number of values, that are hold by this record.
|
protected void |
parse(org.apache.commons.csv.CSVRecord record)
Loads data from
CsvParser into the record. |
protected String |
parse(String value)
Converts a single value before it is assigned to this record.
|
protected Iterable<String> |
print()
Returns a list of values for this record as they are written into CSV.
|
protected void |
set(int pos,
String value)
Sets the value of this record at a certain index position.
|
protected final String get(int pos)
pos
- index positionprotected final String get(int pos, String defaultValue)
pos
- index positiondefaultValue
- returned default value, if no value is available at the index positionprotected abstract int getRecordLenth()
protected void parse(org.apache.commons.csv.CSVRecord record)
CsvParser
into the record.record
- the CSV record from
commons-csvprotected String parse(String value)
value
- value to convertprotected Iterable<String> print()
protected final void set(int pos, String value)
pos
- index positionvalue
- the value to setCopyright © 2015 OpenEstate. All rights reserved.