|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsmithers.files.CSVWriter
public class CSVWriter
Writes data to a CSV file.
| Constructor Summary | |
|---|---|
CSVWriter(java.lang.String fileName)
Creates a CSVWriter which writes to the specified file. |
|
| Method Summary | |
|---|---|
void |
addCell(java.lang.String contents)
Adds a cell to the current row. |
void |
flush()
Flushes the output stream. |
void |
writeRow()
Outputs the current row. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CSVWriter(java.lang.String fileName)
throws java.io.IOException
CSVWriter which writes to the specified file.
fileName - the name of the file to write to
java.io.IOException - if the file cannot be opened for any reason| Method Detail |
|---|
public void addCell(java.lang.String contents)
contents - the contents of the cell
public void writeRow()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
public void flush()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||