Class wais.WAISDictionary
All Packages Class Hierarchy This Package Previous Next Index
Class wais.WAISDictionary
java.lang.Object
|
+----wais.WAISDictionary
- public class WAISDictionary
- extends Object
A WAIS dictionary file, containing all the terms and information
on those terms in the source. Refer to Section 4.3.6 of the
freeWAIS documentation for a description of the structure of
dictionary files.
-
WAISDictionary(String, String, String)
- Contruct a WAIS dictionary object from a database name and
(possibly null) database field name.
-
Close()
-
-
FindTerm(String)
- Return a WAISDictionary term object representing an entry
in the WAISDictionary.
-
GetNextTerm()
- Return the next dictionary term at the current file position.
WAISDictionary
public WAISDictionary(String indexLocation,
String database,
String field) throws SourceException
- Contruct a WAIS dictionary object from a database name and
(possibly null) database field name.
- Parameters:
- indexLocation - The pathname of the directory in
which index files for the repsecitve source are located.
- database - The source name of the database
- field - The field name of the dictionary (may be
null).
Close
public void Close()
GetNextTerm
public WAISDictionaryTerm GetNextTerm() throws SourceException
- Return the next dictionary term at the current file position.
Note that the client of this method MUST NOT make any other
method calls on a current WAISDictionary object in between
calls to this method (others may change the file pointer)
FindTerm
public WAISDictionaryTerm FindTerm(String termString) throws SourceException
- Return a WAISDictionary term object representing an entry
in the WAISDictionary.
- Parameters:
- termString - The term to locate in the dictionary.
All Packages Class Hierarchy This Package Previous Next Index