|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.data.io.AbstractTableWriter
prefuse.data.io.FixedWidthTextTableWriter
public class FixedWidthTextTableWriter
TableWriter for fixed-width text files, that encode one row of table
data per line use a fixed number of characters for each data column.
Writing such tables requires use of a schema description that describes
the fixed-widths for each individual column.
The FixedWidthTextTableSchema class provides
this functionality. A schema description must be written separately into
a different file.
| Constructor Summary | |
|---|---|
FixedWidthTextTableWriter(FixedWidthTextTableSchema schema)
Creates a new FixedWidthTextTableWriter using the given schema. |
|
FixedWidthTextTableWriter(java.lang.String location)
Creates a new FixedWidthTextTableWriter using the schema at the given location. |
|
| Method Summary | |
|---|---|
FixedWidthTextTableSchema |
getFixedWidthSchema()
Get the schema description describing the data columns' fixed widths |
void |
setFixedWidthSchema(FixedWidthTextTableSchema schema)
Set the schema description describing the data columns' fixed widths |
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 FixedWidthTextTableWriter(FixedWidthTextTableSchema schema)
schema - the schema description of the fixed-width text column lengths
public FixedWidthTextTableWriter(java.lang.String location)
throws DataIOException
location - a location string (filename, URL, or resource
locator) for the schema description of the fixed-width text column lengths
DataIOException - if an IO exception occurs while loading the schema| Method Detail |
|---|
public FixedWidthTextTableSchema getFixedWidthSchema()
public void setFixedWidthSchema(FixedWidthTextTableSchema schema)
schema - the fixed-width table schema description
public void writeTable(Table table,
java.io.OutputStream os)
throws DataIOException
TableWriter
table - the Table to writeos - the OutputStream to write the table to
DataIOExceptionTableWriter.writeTable(prefuse.data.Table, java.io.OutputStream)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||