public class CsvWriter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.io.PrintWriter |
writer
The writer.
|
| Constructor and Description |
|---|
CsvWriter(java.lang.String filePath)
Instantiates a new csv writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeFile()
Close file.
|
void |
openFile()
Open file.
|
void |
openFile(boolean appendMode)
Open file.
|
void |
write(java.lang.String[] data)
Write.
|
public CsvWriter(java.lang.String filePath)
filePath - the file pathpublic void openFile()
throws java.io.IOException
java.io.IOException - Signals that an I/O exception has occurred.public void openFile(boolean appendMode)
throws java.io.IOException
appendMode - the append modejava.io.IOException - Signals that an I/O exception has occurred.public void closeFile()
public void write(java.lang.String[] data)
throws java.io.IOException
data - the datajava.io.IOException - Signals that an I/O exception has occurred.