|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.util.CSVObjectAdapter
public class CSVObjectAdapter
An adapter for a CSVObject.
| Constructor Summary | |
|---|---|
CSVObjectAdapter()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CSVObjectAdapter()
| Method Detail |
|---|
public String formatCSVField(int index)
throws ApplicationException
CSVObject
formatCSVField in interface CSVObjectindex - the index of the field in the CSV-Stream (starting at 0)
ApplicationException - if formatting failed
public int getCSVFieldCount()
throws ApplicationException
CSVObject
getCSVFieldCount in interface CSVObjectApplicationException - if calculating the number of fields failed
public void parseCSVField(int index,
String value)
throws ApplicationException
CSVObject
parseCSVField in interface CSVObjectindex - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||