public abstract class FileBasedDictionaryStructure extends Object
FileBasedDictionary
type.Constructor and Description |
---|
FileBasedDictionaryStructure() |
Modifier and Type | Method and Description |
---|---|
abstract DictionaryEntryField |
getFieldType(ByteBuffer buf,
int entryStart,
int entryEnd,
int location)
Return the type of the entry field at the given location.
|
boolean |
isEntrySeparator(byte c)
Test if the byte is the separator mark for two entries.
|
abstract boolean |
isFieldEnd(ByteBuffer entry,
int location,
DictionaryEntryField field)
Test if the character at the given location is the last in an entry field.
|
abstract boolean |
isFieldStart(ByteBuffer entry,
int location,
DictionaryEntryField field)
Test if the character at the given location is the first in an entry field.
|
abstract DictionaryEntryField |
moveToNextField(ByteBuffer buf,
int character,
DictionaryEntryField field)
Skip to the next indexable field.
|
public boolean isEntrySeparator(byte c)
true
- if the byte separates two entries.public abstract DictionaryEntryField moveToNextField(ByteBuffer buf, int character, DictionaryEntryField field)
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 abstract DictionaryEntryField getFieldType(ByteBuffer buf, int entryStart, int entryEnd, int location)
public abstract boolean isFieldStart(ByteBuffer entry, int location, DictionaryEntryField field)
entry
- Buffer which holds the dictionary entry.location
- Location of the first byte of the character.field
- Field which the location is in.public abstract boolean isFieldEnd(ByteBuffer entry, int location, DictionaryEntryField field)
entry
- Buffer which holds the dictionary entry.location
- Location of the first byte of the character.field
- Field which the location is in.Copyright © 2001-2013 the JGloss developers. All Rights Reserved.