|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.layer.vpf.DcwVariableLengthIndexFile
public class DcwVariableLengthIndexFile
Read in a VPF variable length index file, and allows access to individual records.
Constructor Summary | |
---|---|
DcwVariableLengthIndexFile(BinaryFile inputstream,
boolean msbfirst)
Construct a new index file. |
|
DcwVariableLengthIndexFile(java.lang.String filename,
boolean msbfirst)
Construct a new index file. |
Method Summary | |
---|---|
void |
close()
close the associated input file |
int |
getRecordCount()
get the number of records in the index file |
int |
recordOffset(int recordNumber)
get the offset byte offset of the record in the associated table file. |
int |
recordSize(int recordNumber)
get the size of the record in the associated table file If recordNumber is greater than the number of records, this returns a record size of 0. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DcwVariableLengthIndexFile(java.lang.String filename, boolean msbfirst) throws FormatException, java.io.IOException
filename
- the name of the file to read in.msbfirst
- the byte order of the file to be read.
FormatException
- some error was encountered in trying
to read the file.
java.io.IOException
public DcwVariableLengthIndexFile(BinaryFile inputstream, boolean msbfirst) throws FormatException
inputstream
- BinaryBufferedFile handle.msbfirst
- the byte order of the file to be read.
FormatException
- some error was encountered in trying
to read the file.Method Detail |
---|
public int recordOffset(int recordNumber)
recordNumber
- the record to retrieve the offset forpublic int recordSize(int recordNumber)
recordNumber
- the record to retrieve the offset forpublic int getRecordCount()
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |