public class TableObject extends DataObject
Constructor and Description |
---|
TableObject(java.io.File parentDir,
File fileObject,
java.lang.Object tableObject,
long offset,
long size)
Creates a new instance of the table object.
|
TableObject(java.net.URL parentDir,
File fileObject,
java.lang.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.
|
closeChannel, getChannel, getDataFile, getInputStream, getOffset, getSize, setSize
public TableObject(java.io.File parentDir, File fileObject, java.lang.Object tableObject, long offset, long size) throws java.lang.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 bytesjava.lang.Exception
- if there is any error accessing the tablepublic TableObject(java.net.URL parentDir, File fileObject, java.lang.Object tableObject, long offset, long size) throws java.lang.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 bytesjava.lang.Exception
- if there is any error accessing the tablepublic FieldDescription[] getFields()
public TableRecord readNext() throws java.io.IOException
java.io.IOException
- if there is an error reading from the data filepublic TableRecord getRecord(int index) throws java.lang.IllegalArgumentException, java.io.IOException
index
- the record index (1-relative)TableRecord
java.lang.IllegalArgumentException
- if index is greater than the record numberjava.io.IOException
- if there is an error reading from the data fileCopyright © 2010-2018 Planetary Data System. All Rights Reserved.