|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.CVSReader
Class for reading and parsing the contents of a CVS (comma value seperated) file.
| Field Summary | |
protected Hashtable |
name2pos
Deprecated. The CVS file header, which contains the column names. |
protected Vector |
rows
Deprecated. The content of the CVS file body (the records or rows). |
| Constructor Summary | |
CVSReader(String filename)
Deprecated. Constructor for the CVS Reader. |
|
| Method Summary | |
String |
getElement(int row,
int col)
Deprecated. Returns the element at the given row and column. |
String |
getElement(int row,
String colname)
Deprecated. Returns the element at the given row and with the given column name. |
String |
loadFile(String filename)
Deprecated. Reads the content of a file. |
void |
readCVS(String filename)
Deprecated. Reads the contents of a CVS file and extracts the header and body content. |
int |
size()
Deprecated. Returns the number of rows in the CVS body. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Hashtable name2pos
Hashtable of name-values
where name is a column name and value the index of that column.
protected Vector rows
rows represents a line or record in the CVS body.
Each line is represented by a Vector of values. The position of those
values matches with teh columns from the header.
| Constructor Detail |
public CVSReader(String filename)
filename - The CVS file to read| Method Detail |
public void readCVS(String filename)
name2pos field,
the body content in the rows field.
public String loadFile(String filename)
filename - path and name of the file to read
public String getElement(int row,
int col)
row - the element rowcol - the element column
public String getElement(int row,
String colname)
row - the element rowcolname - the element columnname
public int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||