public class TableObject extends DataObject
| Constructor and Description | 
|---|
TableObject(File parentDir,
           File fileObject,
           Object tableObject,
           long offset,
           long size)
Creates a new instance of the table object. 
 | 
TableObject(URL parentDir,
           File fileObject,
           Object tableObject,
           long offset,
           long size)
Creates a new instance of the table object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
getBuffer, getDataFile, getInputStream, getOffset, getSize, setSizepublic TableObject(File parentDir, File fileObject, Object tableObject, long offset, long size) throws Exception
parentDir - the parent directory for the table objectfileObject - the file object describing the data filetableObject - the table object describing the tableoffset - the offset of the table object within the data filesize - the size of the table object, in bytesException - if there is any error accessing the tablepublic TableObject(URL parentDir, File fileObject, Object tableObject, long offset, long size) throws Exception
parentDir - the parent directory for the table objectfileObject - the file object describing the data filetableObject - the table object describing the tableoffset - the offset of the table object within the data filesize - the size of the table object, in bytesException - if there is any error accessing the tablepublic FieldDescription[] getFields()
public TableRecord readNext() throws IOException
IOException - if there is an error reading from the data filepublic TableRecord getRecord(int index) throws IllegalArgumentException, IOException
index - the record index (1-relative)TableRecordIllegalArgumentException - if index is greater than the record numberIOException - if there is an error reading from the data fileCopyright © 2010–2018 Planetary Data System. All rights reserved.