|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdict.common.DictEntryRef
public class DictEntryRef
Reference to a dictionary entry in the dictionary file. Contains a start position and the length of the whole dictionary entry in a file. For example for a file obtained from dict.cc it is the position of the begin of the line in the file and the length of the line in bytes.
| Field Summary | |
|---|---|
private int |
m_beg
The position of the begin of the entry. |
private short |
m_fileno
Index number of the dictionary file for which this entry reference is designated. |
private short |
m_len
The length of the entry in bytes. |
| Constructor Summary | |
|---|---|
DictEntryRef(long from,
long to,
int fileno)
Initializes the entry for the given positions. |
|
| Method Summary | |
|---|---|
int |
getBeg()
The position of the begin of the entry. |
short |
getFileNo()
Returns the index number of the dictionary file. |
int |
getLen()
The length of the entry in bytes. |
java.lang.String |
readRelative(java.io.InputStream aStream,
int aType,
DictEntryRef aPrev)
Reads entry from the given stream at the position relative to the previous dict entry ref. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int m_beg
private short m_len
private short m_fileno
| Constructor Detail |
|---|
public DictEntryRef(long from,
long to,
int fileno)
from - position of the begin of the entry in the dictionary file.to - position of the end of the entry in the dictionary file.fileno - index of the dictionary file| Method Detail |
|---|
public final int getBeg()
public final int getLen()
public final short getFileNo()
public final java.lang.String readRelative(java.io.InputStream aStream,
int aType,
DictEntryRef aPrev)
aStream - the stream to read entries fromaType - the type of the entry, needed in order to use the
correct character encoding for the dictionary file.aPrev - the previous dictionary entry, may be also null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||