public abstract class WordMap extends Object
| Constructor and Description |
|---|
WordMap() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
add(HEntry entry)
Add a new entry to WordMap.
|
abstract void |
addCustomWord(String word) |
abstract void |
beginAddEntries(int nEntries)
Called to notice the begin of a add series of calls
|
static WordMap |
create() |
abstract void |
endAddEntries(int nEntries)
Called when all no custom word wre added.
|
abstract HEntry |
get(String word) |
abstract void |
init(long lastModificationTime,
String wordMapName,
String encoding)
initialize the word map for example from a cache file, it can compare the dates to know if needEntries.
|
abstract Iterator<HEntry> |
iterator() |
abstract boolean |
needEntries()
The word map need the entries of the file.
|
public static WordMap create() throws IOException
IOExceptionpublic abstract void init(long lastModificationTime,
String wordMapName,
String encoding)
throws IOException
lastModificationTime - IOExceptionpublic abstract boolean needEntries()
public abstract void beginAddEntries(int nEntries)
throws IOException
IOExceptionpublic abstract void endAddEntries(int nEntries)
throws IOException
IOExceptionpublic abstract void add(HEntry entry) throws IOException
init must be called firstIOExceptionpublic abstract void addCustomWord(String word) throws IOException
IOExceptionCopyright © 2020. All rights reserved.