public class IlvVMAPVariableLengthIndexTable extends Object
IlvVMAPVariableLengthIndexTable
encapsulates a variable length
index file.Constructor and Description |
---|
IlvVMAPVariableLengthIndexTable(IlvVMAPTable associatedTable)
Constructs a variable length index table from a corresponding VMAP table.
|
Modifier and Type | Method and Description |
---|---|
int |
getRecordCount()
Returns the number of records indexed by this table.
|
int |
getRecordLength(int recordIndex)
Returns the length (in bytes) of specified record in the associated
IlvVMAPTable . |
int |
getRecordOffset(int recordIndex)
Returns the offset (in bytes) of specified record in the associated
IlvVMAPTable . |
public IlvVMAPVariableLengthIndexTable(IlvVMAPTable associatedTable) throws IOException, IlvVMAPFormatException
associatedTable
- The VMAP table.IOException
- if there is a problem reading from the VMAP table.IlvVMAPFormatException
- if associatedTable
is not
correctly formatted.public int getRecordOffset(int recordIndex)
IlvVMAPTable
. If recordIndex
is out of bounds,
-1
is returned.recordIndex
- The index.public int getRecordLength(int recordIndex)
IlvVMAPTable
. If recordIndex
is out of bounds,
-1
is returned.recordIndex
- The index.public int getRecordCount()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.