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,
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(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, com.opencsv.exceptions.CsvValidationException
IOException - if there is an error reading from the data filecom.opencsv.exceptions.CsvValidationExceptionpublic TableRecord getRecord(int index, boolean keepQuotationsFlag) throws IllegalArgumentException, IOException, com.opencsv.exceptions.CsvValidationException
index - the record index (1-relative)TableRecordIllegalArgumentException - if index is greater than the record numberIOException - if there is an error reading from the data filecom.opencsv.exceptions.CsvValidationExceptionCopyright © 2021. All rights reserved.