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,
boolean keepQuotationsFlag)
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, setSizepublic 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, com.opencsv.exceptions.CsvValidationException
java.io.IOException - if there is an error reading from the data filecom.opencsv.exceptions.CsvValidationExceptionpublic TableRecord getRecord(int index, boolean keepQuotationsFlag) throws java.lang.IllegalArgumentException, java.io.IOException, com.opencsv.exceptions.CsvValidationException
index - the record index (1-relative)TableRecordjava.lang.IllegalArgumentException - if index is greater than the record numberjava.io.IOException - if there is an error reading from the data filecom.opencsv.exceptions.CsvValidationExceptionCopyright © 2022 Planetary Data System. All rights reserved.