|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.layer.vpf.DcwThematicIndex
public class DcwThematicIndex
Read a VPF thematic index file. (VPF *.?ti files)
Nested Class Summary | |
---|---|
static class |
DcwThematicIndex.IndexRecord
A utility class used to record index records. |
Field Summary | |
---|---|
protected boolean |
byteOrder
the byte order of the file |
protected java.lang.String |
filename
the name of the file being read |
Constructor Summary | |
---|---|
DcwThematicIndex(java.lang.String filename,
boolean border)
Construct an index, assumes this is pre-VPF2407 format. |
|
DcwThematicIndex(java.lang.String filename,
boolean border,
boolean vpf2407)
Construct an index, assumes this is pre-VPF2407 format. |
Method Summary | |
---|---|
void |
close()
Closes the associated input file. |
int[] |
get(java.lang.Object valueIndex)
Returns the list of rows listed for this index |
java.lang.String |
getColumnIndexed()
Returns the name of the column being indexed |
char |
getDataTypeSpecifier()
Returns the datatype specifier |
char |
getFieldTypeOfIndex()
Returns the type of the field being indexed |
int |
getNumberOfCodes()
Returns the number of distinct indexed values |
int |
getNumberOfDataElements()
Returns the number of elements in the index field |
int |
getNumberOfRows()
Returns the number of rows indexed |
boolean |
getSorted()
|
java.lang.String |
getTableIndexed()
Returns the name of the table being indexed |
char |
getTypeOfIndex()
Returns the type of index (refer to VPF spec for valid values) |
java.lang.Object[] |
getValueIndexes()
Returns the set of values indexed by this thematic index. |
void |
reopen(int offset)
Reopen the associated input file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String filename
protected boolean byteOrder
Constructor Detail |
---|
public DcwThematicIndex(java.lang.String filename, boolean border) throws FormatException
filename
- the file to opedborder
- the byteorder
FormatException
public DcwThematicIndex(java.lang.String filename, boolean border, boolean vpf2407) throws FormatException
filename
- the file to opedborder
- the byteordervpf2407
- true for MILSTD-2407 format thematic index. false will
properly read a VPF2407 format index, but will ignore one header
field (sorted). true will improperly read old-style data.
FormatException
Method Detail |
---|
public java.lang.Object[] getValueIndexes()
public int[] get(java.lang.Object valueIndex) throws FormatException
valueIndex
- the value to look up
FormatException
public int getNumberOfCodes()
public int getNumberOfRows()
public char getTypeOfIndex()
public char getFieldTypeOfIndex()
public int getNumberOfDataElements()
public char getDataTypeSpecifier()
public java.lang.String getTableIndexed()
public java.lang.String getColumnIndexed()
public boolean getSorted()
public void close() throws FormatException
FormatException
public void reopen(int offset) throws FormatException
offset
- the byte offset to seek to upon reopening the file. If
offset is invalid (less than 1), then the input stream is in an
undefined location.
FormatException
- some error was encountered in reopening file or
seeking to the desired row.close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |