|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
FileManager defines the interface between the FileBackedDictionary and the file system.
Methods in this interface operate on and return offsets, which are indices into a dictionary file.
| Method Summary | |
void |
close()
Shut down the file manager. |
long |
getIndexedLinePointer(POS pos,
DictionaryFileType fileType,
java.lang.String index)
Search for the line whose first word is index (that is, that begins with * index followed by a space or tab). |
long |
getMatchingLinePointer(POS pos,
DictionaryFileType fileType,
long offset,
java.lang.String substring)
Search for a line whose index word contains substring. |
long |
getNextLinePointer(POS pos,
DictionaryFileType fileType,
long offset)
Search for the line following the line that begins at offset. |
java.lang.String |
readLineAt(POS pos,
DictionaryFileType fileType,
long offset)
Read the line that begins at file offset offset. |
| Methods inherited from interface net.didion.jwnl.util.Creatable |
create |
| Method Detail |
public long getIndexedLinePointer(POS pos,
DictionaryFileType fileType,
java.lang.String index)
throws java.io.IOException,
java.rmi.RemoteException
-1 if no such line exists.
public java.lang.String readLineAt(POS pos,
DictionaryFileType fileType,
long offset)
throws java.io.IOException,
java.rmi.RemoteException
public long getNextLinePointer(POS pos,
DictionaryFileType fileType,
long offset)
throws java.io.IOException,
java.rmi.RemoteException
-1 if offset
* is the last line in the file.
public long getMatchingLinePointer(POS pos,
DictionaryFileType fileType,
long offset,
java.lang.String substring)
throws java.io.IOException,
java.rmi.RemoteException
-1 if
* no such line exists.
public void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||