|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.objectAccess.TableReader
public class TableReader
The TableReader
class defines methods for reading table records.
Constructor Summary | |
---|---|
TableReader(Object table,
File dataFile)
Constructs a TableReader instance for reading records from a
data file associated with a table object. |
Method Summary | |
---|---|
FieldDescription[] |
getFields()
Gets the field descriptions for fields in the table. |
TableRecord |
getRecord(int index)
Gets access to the table record given the index. |
TableRecord |
readNext()
Reads the next record from the data file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableReader(Object table, File dataFile) throws Exception
TableReader
instance for reading records from a
data file associated with a table object.
table
- a table objectdataFile
- an input data file
NullPointerException
- if table offset is null
Exception
Method Detail |
---|
public FieldDescription[] getFields()
public TableRecord readNext() throws IOException
IOException
public TableRecord getRecord(int index) throws IllegalArgumentException, IOException
index
- the record index (1-relative)
TableRecord
IllegalArgumentException
- if index is greater than the record number
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |