public class CSValueRecord
extends java.lang.Object
FieldValue objects.| Constructor and Description |
|---|
CSValueRecord(char[] types,
java.lang.String[] fields)
Construct a record.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCSVline()
Return a record as a line in a
.csv file. |
FieldValue[] |
getFieldValues()
Get the field values of the record.
|
java.lang.String |
getRecordString(int recordIndex,
int indexFieldWidth,
int[] fieldWidths)
Get the record as a nicely fomatted
String. |
public CSValueRecord(char[] types,
java.lang.String[] fields)
types - The types of each field value.
Type i is int,
type d is double, and
type s is String.fields - The field values of the record.public FieldValue[] getFieldValues()
public java.lang.String getRecordString(int recordIndex,
int indexFieldWidth,
int[] fieldWidths)
String. Called by toString()
in class CSValueDB.recordIndex - The index of the record in the database.indexFieldWidth - The field width of the record number.fieldWidths - The field widths of each field.public java.lang.String getCSVline()
.csv file. Called by
dumpCSV(String csvFile) in class CSValueDB.