|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.data.io.AbstractTableWriter prefuse.data.io.DelimitedTextTableWriter
public class DelimitedTextTableWriter
TableWriter that writes out a delimited text table, using a designated character string to demarcate data columns. By default, a header row containing the column names is included in the output.
Constructor Summary | |
---|---|
DelimitedTextTableWriter()
Create a new DelimitedTextTableWriter that writes tab-delimited text files. |
|
DelimitedTextTableWriter(java.lang.String delimiter)
Create a new DelimitedTextTableWriter. |
|
DelimitedTextTableWriter(java.lang.String delimiter,
boolean printHeader)
Create a new DelimitedTextTableWriter. |
Method Summary | |
---|---|
java.lang.String |
getDelimiter()
Get the delimiter used to separate data fields. |
boolean |
isPrintHeader()
Indicates if this writer will write a header row with the column names. |
void |
setDelimeter(java.lang.String delimiter)
Set the delimiter used to separate data fields. |
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. |
Methods inherited from class prefuse.data.io.AbstractTableWriter |
---|
writeTable, writeTable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelimitedTextTableWriter()
public DelimitedTextTableWriter(java.lang.String delimiter)
delimiter
- the delimiter string to use between columnspublic DelimitedTextTableWriter(java.lang.String delimiter, boolean printHeader)
delimiter
- the delimiter string to use between columnsprintHeader
- indicates if a header row should be printedMethod Detail |
---|
public java.lang.String getDelimiter()
public void setDelimeter(java.lang.String delimiter)
delimiter
- the delimiter stringpublic 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 to
DataIOException
TableWriter.writeTable(prefuse.data.Table, java.io.OutputStream)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |