public class RawTableReader
extends gov.nasa.pds.objectAccess.TableReader
Constructor and Description |
---|
RawTableReader(java.lang.Object table,
java.net.URL dataFile,
java.net.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.
|
java.lang.String |
readNextLine()
Previews the next line in the data file.
|
gov.nasa.pds.objectAccess.FixedTableRecord |
toRecord(java.lang.String line,
int row)
Converts the given line to a record.
|
public RawTableReader(java.lang.Object table, java.net.URL dataFile, java.net.URL label, int tableIndex, boolean readEntireFile) throws java.lang.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.java.lang.Exception
- If table offset is null.public java.lang.String readNextLine() throws java.io.IOException
java.io.IOException
public gov.nasa.pds.objectAccess.FixedTableRecord toRecord(java.lang.String line, int row)
line
- The line to convert.row
- The row number to set.public gov.nasa.pds.label.object.TableRecord readNext() throws java.io.IOException
readNext
in class gov.nasa.pds.objectAccess.TableReader
java.io.IOException
public gov.nasa.pds.label.object.TableRecord getRecord(int index) throws java.lang.IllegalArgumentException, java.io.IOException
getRecord
in class gov.nasa.pds.objectAccess.TableReader
The
- index of the record.java.lang.IllegalArgumentException
java.io.IOException
Copyright © 2010-2019 Planetary Data System. All Rights Reserved.