|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.didion.jwnl.dictionary.file.AbstractDictionaryFile
net.didion.jwnl.princeton.file.AbstractPrincetonDictionaryFile
net.didion.jwnl.princeton.file.PrincetonObjectDictionaryFile
public class PrincetonObjectDictionaryFile
ObjectDictionaryFile
that accesses files names with the Princeton dictionary file naming convention.
Field Summary |
---|
Fields inherited from interface net.didion.jwnl.dictionary.file.DictionaryFile |
---|
COMMENT_HEADER |
Constructor Summary | |
---|---|
PrincetonObjectDictionaryFile()
|
|
PrincetonObjectDictionaryFile(java.lang.String path,
POS pos,
DictionaryFileType fileType)
|
Method Summary | |
---|---|
boolean |
canRead()
|
boolean |
canWrite()
|
void |
close()
Close the file |
java.io.ObjectInputStream |
getInputStream()
|
java.io.ObjectOutputStream |
getOutputStream()
|
boolean |
isOpen()
Return true if the file is open |
DictionaryFile |
newInstance(java.lang.String path,
POS pos,
DictionaryFileType fileType)
Create a new instance of the dictionary file |
void |
openStreams()
Open the input and output streams. |
java.lang.Object |
readObject()
Read and deserialize an object from the file |
void |
writeObject(java.lang.Object obj)
Serialize and write an object ot the file. |
Methods inherited from class net.didion.jwnl.dictionary.file.AbstractDictionaryFile |
---|
getFile, getFileType, getPOS, open |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.didion.jwnl.dictionary.file.DictionaryFile |
---|
getFile, getFileType, getPOS, open |
Constructor Detail |
---|
public PrincetonObjectDictionaryFile()
public PrincetonObjectDictionaryFile(java.lang.String path, POS pos, DictionaryFileType fileType)
Method Detail |
---|
public DictionaryFile newInstance(java.lang.String path, POS pos, DictionaryFileType fileType)
DictionaryFile
newInstance
in interface DictionaryFile
public boolean isOpen()
DictionaryFile
isOpen
in interface DictionaryFile
public void close()
DictionaryFile
close
in interface DictionaryFile
public void openStreams() throws java.io.IOException
java.io.IOException
public java.io.ObjectInputStream getInputStream() throws java.io.IOException
java.io.IOException
public java.io.ObjectOutputStream getOutputStream() throws java.io.IOException
java.io.IOException
public boolean canRead()
public boolean canWrite()
public java.lang.Object readObject() throws java.io.IOException, java.lang.ClassNotFoundException
ObjectDictionaryFile
readObject
in interface ObjectDictionaryFile
java.io.IOException
java.lang.ClassNotFoundException
public void writeObject(java.lang.Object obj) throws java.io.IOException
ObjectDictionaryFile
writeObject
in interface ObjectDictionaryFile
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |