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, writeTablepublic 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
TableWritertable - the Table to writeos - the OutputStream to write the table toDataIOExceptionTableWriter.writeTable(prefuse.data.Table, java.io.OutputStream)