net.sf.extjwnl.dictionary.file
Interface ObjectDictionaryFile

All Superinterfaces:
DictionaryFile, Owned
All Known Implementing Classes:
PrincetonObjectDictionaryFile

public interface ObjectDictionaryFile
extends DictionaryFile

DictionaryFile that reads and writes serialized objects.

Author:
John Didion , Aliaksandr Autayeu

Method Summary
 Object readObject()
          Reads and deserializes an object from the file.
 void writeObject(Object obj)
          Serializes and write an object ot the file.
 
Methods inherited from interface net.sf.extjwnl.dictionary.file.DictionaryFile
close, delete, edit, getFile, getFileType, getPOS, isOpen, open, save
 
Methods inherited from interface net.sf.extjwnl.util.factory.Owned
getDictionary, setDictionary
 

Method Detail

readObject

Object readObject()
                  throws IOException,
                         ClassNotFoundException
Reads and deserializes an object from the file.

Returns:
deserialized an object
Throws:
IOException - IOException
ClassNotFoundException - ClassNotFoundException

writeObject

void writeObject(Object obj)
                 throws IOException
Serializes and write an object ot the file.

Parameters:
obj - object to write
Throws:
IOException - IOException


Copyright © 2011. All Rights Reserved.