|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.nlpir.irf.util.StringTable
This class implements a table of unique strings read from a file
in the format described below.
removal.
Field Summary | |
private static int |
EOF
Working copy of end of file marker value |
private java.util.Hashtable |
table
Table of strings - key is the string, value is always 0 |
Constructor Summary | |
StringTable(java.lang.String fileName)
Creates the StringTable from a file. |
Method Summary | |
boolean |
containsString(java.lang.String stringToLookUp)
Tests whether the given string is in the table or not. |
void |
present()
Presents the contents of the string table. |
int |
size()
Gets number of strings in string table. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.Hashtable table
private static int EOF
Constructor Detail |
public StringTable(java.lang.String fileName) throws java.io.IOException
filename
- the name of the file used.Method Detail |
public int size()
public void present()
public boolean containsString(java.lang.String stringToLookUp)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |