public class AllInMemoryWordMap extends WordMapWithCharMap
| Constructor and Description |
|---|
AllInMemoryWordMap()
Creates a new instance of AllInMemoryWordMap
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(HEntry entry)
Add a new entry to WordMap.
|
void |
addCustomWord(String word) |
void |
beginAddEntries(int nEntries)
Called to notice the begin of a add series of calls
|
void |
endAddEntries(int nEntries)
Called when all no custom word wre added.
|
HEntry |
get(String word) |
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.
|
Iterator<HEntry> |
iterator() |
boolean |
needEntries()
The word map need the entries of the file.
|
convertFromBytes, convertFromString, getEncodingpublic AllInMemoryWordMap()
public void init(long lastModificationTime,
String wordMapName,
String encoding)
throws IOException
WordMapinit in class WordMapWithCharMapIOExceptionpublic boolean needEntries()
WordMapneedEntries in class WordMappublic void beginAddEntries(int nEntries)
throws IOException
WordMapbeginAddEntries in class WordMapIOExceptionpublic void endAddEntries(int nEntries)
throws IOException
WordMapendAddEntries in class WordMapIOExceptionpublic void add(HEntry entry)
WordMapinit must be called firstpublic void addCustomWord(String word)
addCustomWord in class WordMapCopyright © 2020. All rights reserved.