public class RawTableReader
extends gov.nasa.pds.objectAccess.TableReader
| Constructor and Description |
|---|
RawTableReader(Object table,
URL dataFile,
URL label,
int tableIndex,
boolean readEntireFile)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
gov.nasa.pds.label.object.TableRecord |
getRecord(int index)
Gets a record in the table.
|
gov.nasa.pds.label.object.TableRecord |
readNext()
Reads the next record in the table.
|
String |
readNextLine()
Previews the next line in the data file.
|
gov.nasa.pds.objectAccess.FixedTableRecord |
toRecord(String line,
int row)
Converts the given line to a record.
|
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
IOExceptionpublic gov.nasa.pds.objectAccess.FixedTableRecord toRecord(String line, int row)
line - The line to convert.row - The row number to set.public gov.nasa.pds.label.object.TableRecord readNext()
throws IOException
readNext in class gov.nasa.pds.objectAccess.TableReaderIOExceptionpublic gov.nasa.pds.label.object.TableRecord getRecord(int index)
throws IllegalArgumentException,
IOException
getRecord in class gov.nasa.pds.objectAccess.TableReaderThe - index of the record.IllegalArgumentExceptionIOExceptionCopyright © 2020 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved.