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, writeTable
public 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
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