public class SpellCheckerManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REVISION |
| Constructor and Description |
|---|
SpellCheckerManager() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
getLanguageList()
Returns a list of available languages for spell-checking.
|
static SpellChecker |
getSpellChecker()
Retrieve the SpellChecker instance (initialized it if needed).
|
static void |
reloadSpellChecker()
Reload the SpellChecker from properties.
|
static void |
setSpellChecker(SpellChecker spellChecker)
Change the SpellChecker already initialized by this manager.
|
static java.util.List<SpellCheckResult> |
spellCheck(java.lang.String text,
java.lang.String lang)
Spell-check the specified text in the specified language
and return a list of SpellCheckResult.
|
public static final java.lang.String REVISION
public static java.util.List<java.lang.String> getLanguageList()
public static java.util.List<SpellCheckResult> spellCheck(java.lang.String text, java.lang.String lang)
text - the text to checklang - the language of the text (ISO-639 code)public static SpellChecker getSpellChecker()
setSpellChecker(SpellChecker).public static void setSpellChecker(SpellChecker spellChecker)
spellChecker - a SpellChecker instance, must not be null.public static void reloadSpellChecker()
Copyright © 2001-2017 Jalios SA. All Rights Reserved.