public class CSVTableWriter extends AbstractTableWriter
Constructor and Description |
---|
CSVTableWriter()
Create a new CSVTableWriter that writes comma separated values files.
|
CSVTableWriter(boolean printHeader)
Create a new CSVTableWriter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isPrintHeader()
Indicates if this writer will write a header row with the column names.
|
void |
setPrintHeader(boolean printHeader)
Sets if this writer will write a header row with the column names.
|
void |
writeTable(Table table,
java.io.OutputStream os)
Write a table from the given OutputStream.
|
writeTable, writeTable
public CSVTableWriter()
public CSVTableWriter(boolean printHeader)
printHeader
- indicates if a header row should be printedpublic boolean isPrintHeader()
public void setPrintHeader(boolean printHeader)
printHeader
- true to print a header row, false otherwisepublic void writeTable(Table table, java.io.OutputStream os) throws DataIOException
TableWriter
table
- the Table to writeos
- the OutputStream to write the table toDataIOException
TableWriter.writeTable(prefuse.data.Table, java.io.OutputStream)
Copyright ? 2013 Regents of the University of California