public class FixedWidthTextTableReader extends AbstractTextTableReader
FixedWidthTextTableSchema class provides
this functionality.| Constructor and Description |
|---|
FixedWidthTextTableReader(FixedWidthTextTableSchema schema)
Creates a new FixedWidthTextTableReader using the given schema.
|
FixedWidthTextTableReader(java.lang.String location)
Creates a new FixedWidthTextTableReader using the schema at
the given location.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.ArrayList |
getColumnNames()
Subclasses can override this to provide column names through
a custom mechanism.
|
FixedWidthTextTableSchema |
getFixedWidthSchema()
Get the schema description describing the data columns' fixed widths
|
protected void |
read(java.io.InputStream is,
TableReadListener trl)
Scans the input stream, making call backs for each encountered entry
on the provided TextReadListener.
|
void |
setFixedWidthSchema(FixedWidthTextTableSchema schema)
Set the schema description describing the data columns' fixed widths
|
getDefaultHeader, readTable, setHasHeaderreadTable, readTable, readTablepublic FixedWidthTextTableReader(FixedWidthTextTableSchema schema)
schema - the schema description of the fixed-width text column lengthspublic FixedWidthTextTableReader(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 descriptionprotected void read(java.io.InputStream is,
TableReadListener trl)
throws java.io.IOException,
DataParseException
AbstractTextTableReaderread in class AbstractTextTableReaderis - the InputStream to readtrl - the TextReadListener that will receive callbacksjava.io.IOExceptionDataParseExceptionAbstractTextTableReader.read(java.io.InputStream, prefuse.data.io.TableReadListener)protected java.util.ArrayList getColumnNames()
AbstractTextTableReadergetColumnNames in class AbstractTextTableReaderAbstractTextTableReader.getColumnNames()