public class RawTableReader extends TableReader
accessor
Constructor and Description |
---|
RawTableReader(Object table,
URL dataFile,
URL label,
int tableIndex,
boolean readEntireFile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TableRecord |
getRecord(int index)
Gets a record in the table.
|
TableRecord |
readNext()
Reads the next record in the table.
|
String |
readNextLine()
Previews the next line in the data file.
|
FixedTableRecord |
toRecord(String line,
int row)
Converts the given line to a record.
|
getAccessor, getAdapter, getCurrentRow, getFieldMap, getFields, setCurrentRow
public RawTableReader(Object table, URL dataFile, URL label, int tableIndex, boolean readEntireFile) throws Exception
table
- The table object.dataFile
- The data file.label
- The label.tableIndex
- The index of the table.readEntireFile
- Set to 'true' to read in entire data file.Exception
- If table offset is null.public String readNextLine() throws IOException
IOException
public FixedTableRecord toRecord(String line, int row)
line
- The line to convert.row
- The row number to set.public TableRecord readNext() throws IOException
readNext
in class TableReader
IOException
public TableRecord getRecord(int index) throws IllegalArgumentException, IOException
getRecord
in class TableReader
The
- index of the record.IllegalArgumentException
IOException
Copyright © 2010–2017 Planetary Data System. All rights reserved.