public class MySpell extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ALLCAP |
static int |
HUHCAP |
static int |
INITCAP |
static int |
NOCAP |
| Constructor and Description |
|---|
MySpell(InputStream affStream,
InputStream dStream,
ProgressListener listener) |
MySpell(InputStream zipStream,
ProgressListener listener) |
MySpell(String zipFile,
ProgressListener listener) |
MySpell(String affpath,
String dpath,
ProgressListener listener) |
MySpell(ZipFile zipFile,
ProgressListener listener) |
MySpell(ZipInputStream zipStream,
ProgressListener listener)
Read the dictionary from a ZipInputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomWord(String word)
This function add a new word to the current WordManager, but this word is not
add permanet, that is, is not save in file.
|
String |
get_dic_encoding() |
boolean |
spell(String word) |
List<String> |
suggest(String word) |
List<String> |
suggest(String word,
int nMax) |
public static final int NOCAP
public static final int INITCAP
public static final int ALLCAP
public static final int HUHCAP
public MySpell(String zipFile, ProgressListener listener) throws IOException
IOExceptionpublic MySpell(ZipFile zipFile, ProgressListener listener) throws IOException
IOExceptionpublic MySpell(InputStream zipStream, ProgressListener listener) throws IOException
IOExceptionpublic MySpell(ZipInputStream zipStream, ProgressListener listener) throws IOException
zipStream - IOExceptionpublic MySpell(InputStream affStream, InputStream dStream, ProgressListener listener) throws IOException
IOExceptionpublic MySpell(String affpath, String dpath, ProgressListener listener) throws IOException
IOExceptionpublic boolean spell(String word)
public String get_dic_encoding()
public void addCustomWord(String word) throws IOException
word - The word to add.IOExceptionCopyright © 2020. All rights reserved.