public class FixedWidthTextTableWriter extends AbstractTableWriter
FixedWidthTextTableSchema class provides
this functionality. A schema description must be written separately into
a different file.| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
writeTable, writeTablepublic FixedWidthTextTableWriter(FixedWidthTextTableSchema schema)
schema - the schema description of the fixed-width text column lengthspublic 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 lengthsDataIOException - if an IO exception occurs while loading the schemapublic FixedWidthTextTableSchema getFixedWidthSchema()
public void setFixedWidthSchema(FixedWidthTextTableSchema schema)
schema - the fixed-width table schema descriptionpublic 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)