public class EDict extends FileBasedDictionary
FileBasedDictionary
. For a documentation of the format see
http://www.csse.monash.edu.au/~jwb/edict_doc.html.Indexable.CharData
Modifier and Type | Field and Description |
---|---|
static DictionaryImplementation<EDict> |
IMPLEMENTATION_EUC
Object describing this implementation of the
Dictionary interface. |
static DictionaryImplementation<EDict> |
IMPLEMENTATION_UTF8 |
characterHandler, NAMES, supportedAttributes, supportedSearchModes
Modifier and Type | Method and Description |
---|---|
protected boolean |
escapeChar(char c)
Escape LF/CR, '/' and all characters not supported by the encoding.
|
protected void |
initSupportedAttributes()
Initialize the set of supported attributes.
|
String |
toString() |
buildIndex, compare, compare, createEntryFromMarker, dispose, getAttributeValues, getChar, getEncodedCharacterHandler, getName, getSupportedAttributes, getSupportedFields, initSearchModes, loadIndex, search, supports, unescape
public static final DictionaryImplementation<EDict> IMPLEMENTATION_EUC
Dictionary
interface. The
Object can be used to register this class with the DictionaryFactory
, or
test if a descriptor matches this class.DictionaryFactory
public static final DictionaryImplementation<EDict> IMPLEMENTATION_UTF8
public EDict(File dicfile, String encoding) throws IOException
IOException
protected void initSupportedAttributes()
FileBasedDictionary
initSupportedAttributes
in class FileBasedDictionary
protected boolean escapeChar(char c)
escapeChar
in class FileBasedDictionary
c
- The character to test.true
, if the character must be escaped.Copyright © 2001-2013 the JGloss developers. All Rights Reserved.