public class TableObject extends DataObject
channel, dataObjectLocation, fileObject, localIdentifier, name, offset, parentDir
Constructor and Description |
---|
TableObject(java.io.File parentDir,
File fileObject,
java.lang.Object tableObject,
long offset,
long size)
Deprecated.
|
TableObject(java.io.File parentDir,
File fileObject,
java.lang.Object tableObject,
long offset,
long size,
DataObjectLocation location)
Creates a new instance of the table object.
|
TableObject(java.net.URL parentDir,
File fileObject,
java.lang.Object tableObject,
long offset,
long size)
Deprecated.
|
TableObject(java.net.URL parentDir,
File fileObject,
java.lang.Object tableObject,
long offset,
long size,
DataObjectLocation location)
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.
|
RawTableReader |
getRawTableReader()
Returns a raw table reader for this table.
|
TableRecord |
getRecord(int index,
boolean keepQuotationsFlag)
Gets access to the table record given the index.
|
java.lang.Object |
getTableObject() |
TableReader |
getTableReader()
Returns a table reader for this table.
|
TableRecord |
readNext()
Reads the next record from the data file.
|
void |
setTableObject(java.lang.Object tableObject) |
closeChannel, getChannel, getDataFile, getDataObjectLocation, getInputStream, getLocalIdentifier, getName, getOffset, getSize, setDataObjectLocation, setLocalIdentifier, setName, setSize
public TableObject(java.io.File parentDir, File fileObject, java.lang.Object tableObject, long offset, long size, DataObjectLocation location) 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, DataObjectLocation location) 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 table@Deprecated public TableObject(java.io.File parentDir, File fileObject, java.lang.Object tableObject, long offset, long size) throws java.lang.Exception
java.lang.Exception
@Deprecated public TableObject(java.net.URL parentDir, File fileObject, java.lang.Object tableObject, long offset, long size) throws java.lang.Exception
java.lang.Exception
public TableReader getTableReader() throws java.lang.Exception
java.lang.Exception
- if there is an error creating the table readerpublic RawTableReader getRawTableReader() throws java.lang.Exception
java.lang.Exception
- if there is an error creating the table readerpublic FieldDescription[] getFields() throws java.lang.Exception
java.lang.Exception
public TableRecord readNext() throws java.io.IOException, com.opencsv.exceptions.CsvValidationException, java.lang.Exception
java.io.IOException
- if there is an error reading from the data filecom.opencsv.exceptions.CsvValidationException
java.lang.Exception
public TableRecord getRecord(int index, boolean keepQuotationsFlag) throws java.lang.Exception
index
- the record index (1-relative)TableRecord
java.lang.Exception
public java.lang.Object getTableObject()
public void setTableObject(java.lang.Object tableObject)
Copyright © 2023 Planetary Data System. All rights reserved.