|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.talvi.puffinplot.data.CsvWriter
public class CsvWriter
This class provides a wrapper around a supplied Writer to
allow easy writing of lines of data delimited by a particular string.
Despite the name of the class, any string may be used as the delimiter.
| Constructor Summary | |
|---|---|
CsvWriter(java.io.Writer writer)
Creates a new CSV writer which will write to the specified writer using a comma as the field delimiter. |
|
CsvWriter(java.io.Writer writer,
java.lang.String separator)
Creates a new CSV writer which will write to the specified writer and delimit fields with the specified string. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying writer supplied to this CSV writer's constructor. |
void |
writeCsv(java.lang.Object... objects)
Writes a line to the writer provided to the constructor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CsvWriter(java.io.Writer writer,
java.lang.String separator)
writer - the writer to which to writeseparator - the separator which will be placed between the fieldspublic CsvWriter(java.io.Writer writer)
writer - writer the writer to which to write| Method Detail |
|---|
public void writeCsv(java.lang.Object... objects)
throws java.io.IOException
objects - the objects to write
java.io.IOException - if an I/O error occurs during writing
public void close()
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 | |||||||||