public class DcwVariableLengthIndexFile
extends java.lang.Object
Constructor and Description |
---|
DcwVariableLengthIndexFile(BinaryFile inputstream,
boolean msbfirst)
Construct a new index file.
|
DcwVariableLengthIndexFile(java.lang.String filename,
boolean msbfirst)
Construct a new index file.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.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()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details