public class WadokuJTStructure extends FileBasedDictionaryStructure
Constructor and Description |
---|
WadokuJTStructure() |
Modifier and Type | Method and Description |
---|---|
DictionaryEntryField |
getFieldType(ByteBuffer buf,
int entryStart,
int entryEnd,
int position)
Return the type of the entry field at the given location.
|
boolean |
isFieldEnd(ByteBuffer entry,
int location,
DictionaryEntryField field)
Test if the character at the given location is the last in an entry field.
|
boolean |
isFieldStart(ByteBuffer entry,
int location,
DictionaryEntryField field)
Test if the character at the given location is the first in an entry field.
|
DictionaryEntryField |
moveToNextField(ByteBuffer buf,
int character,
DictionaryEntryField field)
Skip to the next indexable field.
|
isEntrySeparator
public boolean isFieldStart(ByteBuffer entry, int location, DictionaryEntryField field)
FileBasedDictionaryStructure
isFieldStart
in class FileBasedDictionaryStructure
entry
- Buffer which holds the dictionary entry.location
- Location of the first byte of the character.field
- Field which the location is in.public boolean isFieldEnd(ByteBuffer entry, int location, DictionaryEntryField field)
FileBasedDictionaryStructure
isFieldEnd
in class FileBasedDictionaryStructure
entry
- Buffer which holds the dictionary entry.location
- Location of the first byte of the character.field
- Field which the location is in.public DictionaryEntryField moveToNextField(ByteBuffer buf, int character, DictionaryEntryField field)
FileBasedDictionaryStructure
moveToNextField
in class FileBasedDictionaryStructure
buf
- Skip entries in this buffer by moving the current position of
the buffer.character
- The last character read from the buffer, or 0 at the first
invocation. The character format is dependent on
readCharacter
and not neccessaryly unicode.field
- The current field. null
if the end of the buffer
is reached while moving to the next field.public DictionaryEntryField getFieldType(ByteBuffer buf, int entryStart, int entryEnd, int position)
FileBasedDictionaryStructure
getFieldType
in class FileBasedDictionaryStructure
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.