| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private String | |
| private OutputStreamWriter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| private String | |
| public void | |
| public void |
| nbrRows | back to summary |
|---|---|
| private int nbrRows | |
| newline | back to summary |
|---|---|
| private String newline | |
| writer | back to summary |
|---|---|
| private OutputStreamWriter writer | |
| CSVWriter | back to summary |
|---|---|
| public CSVWriter(File file, String encoding) throws IOException constructor. creates a csv file for writing data to it | |
| close | back to summary |
|---|---|
| public void close() throws IOException closes the csv file. | |
| doWriteData | back to summary |
|---|---|
| private void doWriteData(String[] values) throws IOException | |
| toCsvValue | back to summary |
|---|---|
| private String toCsvValue(String str) | |
| writeData | back to summary |
|---|---|
| public void writeData(String[] data) throws IOException writes a data-record to the file. note that data[] must have same number of elements as the header had.
| |
| writeHeader | back to summary |
|---|---|
| public void writeHeader(String[] header) throws IOException writes the csv header (fieldnames). should be called after construction one time.
| |