|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--ar.com.ktulu.dict.Database
|
+--ar.com.ktulu.dict.FileDatabase
Support for dictionaries stored in flat text files.
| Constructor Summary | |
FileDatabase(java.lang.String name,
java.lang.String fdb,
java.lang.String fidx)
|
|
| Method Summary | |
Matches |
define(java.lang.String word)
Used by the server to process a "DEFINE" command. |
Definition |
getWordDefinition(Key k)
Returns the definition of the word stored in k. |
protected void |
initKeys()
Reads the index into memory. |
int |
keySize()
Returns the number of headwords in the database. |
Matches |
match(java.lang.String word,
Strategy strat)
Used by the server to process a "MATCH" command. |
| Methods inherited from class ar.com.ktulu.dict.Database |
getInfo, getName, getProperty, getProperty, getShortInfo, setInfo, setName, setShortInfo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileDatabase(java.lang.String name,
java.lang.String fdb,
java.lang.String fidx)
throws DatabaseException
| Method Detail |
protected void initKeys()
throws java.io.IOException
KeyList.
java.io.IOExceptionKeyListpublic int keySize()
Database
keySize in class Databasepublic Matches define(java.lang.String word)
Database
define in class Database
public Matches match(java.lang.String word,
Strategy strat)
throws DatabaseException
Database
match in class DatabaseDatabaseException
public Definition getWordDefinition(Key k)
throws DatabaseException
Databasek.
getWordDefinition in class DatabaseDatabaseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||