|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jmatchparser.util.csv.AbstractCSVWriter
net.sf.jmatchparser.util.csv.CSVWriter
public class CSVWriter
Class to create CSV files.
Constructor Summary | |
---|---|
CSVWriter(OutputStream out,
String charsetName,
char separator)
Create a new CSV writer that writes tot he given stream in the given charset. |
|
CSVWriter(Writer w,
char separator)
Create a new CSV writer that writes to the given Writer . |
Method Summary | |
---|---|
void |
close()
Close this CSV writer. |
void |
flush()
Flush this CSV writer. |
char |
getSeparator()
Get the separator character used by this CSV writer. |
void |
write(String... record)
Write a record (line) into this CSV file, properly separating/quoting the fields as CSV requires. |
Methods inherited from class net.sf.jmatchparser.util.csv.AbstractCSVWriter |
---|
write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CSVWriter(Writer w, char separator)
Writer
.
w
- the writer to write to.public CSVWriter(OutputStream out, String charsetName, char separator) throws UnsupportedEncodingException
out
- Output streamcharsetName
- charset
UnsupportedEncodingException
Method Detail |
---|
public void flush() throws IOException
AbstractCSVWriter
flush
in class AbstractCSVWriter
IOException
public void close() throws IOException
AbstractCSVWriter
close
in class AbstractCSVWriter
IOException
public char getSeparator()
public void write(String... record) throws IOException
write
in class AbstractCSVWriter
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |