Class Information
Package: com.onepg.util
Class Name: CsvWriter
Description
CSV writer class.
- Wraps TxtWriter and provides features specialized for CSV output.
- Simplifies output in CSV format.
- Allows specification of character set, line separator, and CSV format.
Method List
close
public void close()
Closes the file.
println
public void println(String[] values)
Outputs a CSV row (string array).
Parameters
| Name | Type | Description |
|---|---|---|
values |
String[] |
value array |
println
public void println(IoItems row)
Outputs a CSV row (IoItems).
Parameters
| Name | Type | Description |
|---|---|---|
row |
IoItems |
row data |
flush
public void flush()
Flushes the output.
getFilePath
public String getFilePath()
Returns the file path.
Return Value
String - the file path
getLineCount
public long getLineCount()
Returns the number of output lines.
Return Value
long - the number of output lines