|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CSVObject
CSV conversion interface.
Objects that can decoded and/or encoded to CSV format (comma separated values) must implement this interface.
CSVReader,
CSVWriter| Method Summary | |
|---|---|
String |
formatCSVField(int index)
Returns the string-representation for a csv-value. |
int |
getCSVFieldCount()
Returns the number of csv-fields to format for the current object. |
void |
parseCSVField(int index,
String value)
Parses a field and stores it in this object. |
| Method Detail |
|---|
void parseCSVField(int index,
String value)
throws ApplicationException
index - the index of the field in the CSV-Object (starting at 0)value - the string-value. null if empty non-quoted field.
ApplicationException - if setting the value failes for some reason
String formatCSVField(int index)
throws ApplicationException
index - the index of the field in the CSV-Stream (starting at 0)
ApplicationException - if formatting failed
int getCSVFieldCount()
throws ApplicationException
ApplicationException - if calculating the number of fields failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||