|
||||||||||
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.AbstractPrincetonRandomAccessDictionaryFile
net.didion.jwnl.princeton.file.PrincetonRandomAccessDictionaryFile
public class PrincetonRandomAccessDictionaryFile
A RandomAccessDictionaryFile
that accesses files
named with Princeton's dictionary file naming convention.
Field Summary | |
---|---|
static java.lang.String |
READ_ONLY
Read-only file permission. |
static java.lang.String |
READ_WRITE
Read-write file permission. |
Fields inherited from interface net.didion.jwnl.dictionary.file.DictionaryFile |
---|
COMMENT_HEADER |
Constructor Summary | |
---|---|
PrincetonRandomAccessDictionaryFile()
|
|
PrincetonRandomAccessDictionaryFile(java.lang.String path,
POS pos,
DictionaryFileType fileType)
|
|
PrincetonRandomAccessDictionaryFile(java.lang.String path,
POS pos,
DictionaryFileType fileType,
java.lang.String permissions)
|
Method Summary | |
---|---|
void |
close()
Close the file |
long |
getFilePointer()
Get the current position of the file pointer. |
boolean |
isOpen()
Return true if the file is open |
long |
length()
Get the length, in bytes, of the file |
DictionaryFile |
newInstance(java.lang.String path,
POS pos,
DictionaryFileType fileType)
Create a new instance of the dictionary file |
int |
read()
Read a byte from the file |
java.lang.String |
readLine()
Read a line from the file |
void |
seek(long pos)
Go to postion pos in the file. |
Methods inherited from class net.didion.jwnl.princeton.file.AbstractPrincetonRandomAccessDictionaryFile |
---|
getNextLineOffset, isPreviousLineOffset, setNextLineOffset |
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 |
Field Detail |
---|
public static final java.lang.String READ_ONLY
public static final java.lang.String READ_WRITE
Constructor Detail |
---|
public PrincetonRandomAccessDictionaryFile()
public PrincetonRandomAccessDictionaryFile(java.lang.String path, POS pos, DictionaryFileType fileType)
public PrincetonRandomAccessDictionaryFile(java.lang.String path, POS pos, DictionaryFileType fileType, java.lang.String permissions)
Method Detail |
---|
public DictionaryFile newInstance(java.lang.String path, POS pos, DictionaryFileType fileType)
DictionaryFile
public java.lang.String readLine() throws java.io.IOException
RandomAccessDictionaryFile
java.io.IOException
public void seek(long pos) throws java.io.IOException
RandomAccessDictionaryFile
java.io.IOException
public long getFilePointer() throws java.io.IOException
RandomAccessDictionaryFile
java.io.IOException
public boolean isOpen()
DictionaryFile
public void close()
DictionaryFile
public long length() throws java.io.IOException
RandomAccessDictionaryFile
java.io.IOException
public int read() throws java.io.IOException
RandomAccessDictionaryFile
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |