Package net.didion.jwnl.dictionary.file
Interface ObjectDictionaryFile
-
- All Superinterfaces:
DictionaryFile
- All Known Implementing Classes:
PrincetonObjectDictionaryFile
public interface ObjectDictionaryFile extends DictionaryFile
DictioanryFilethat reads and writes serailazed objects.
-
-
Field Summary
-
Fields inherited from interface net.didion.jwnl.dictionary.file.DictionaryFile
COMMENT_HEADER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectreadObject()Read and deserialize an object from the filevoidwriteObject(java.lang.Object obj)Serialize and write an object ot the file.-
Methods inherited from interface net.didion.jwnl.dictionary.file.DictionaryFile
close, getFile, getFileType, getPOS, isOpen, newInstance, open
-
-
-
-
Method Detail
-
readObject
java.lang.Object readObject() throws java.io.IOException, java.lang.ClassNotFoundExceptionRead and deserialize an object from the file- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeObject
void writeObject(java.lang.Object obj) throws java.io.IOExceptionSerialize and write an object ot the file.- Throws:
java.io.IOException
-
-