public class Hyphenator extends Object
| Constructor and Description |
|---|
Hyphenator(String lang,
String country,
int leftMin,
int rightMin) |
| Modifier and Type | Method and Description |
|---|---|
static HyphenationTree |
getFileHyphenationTree(String key) |
static HyphenationTree |
getHyphenationTree(String lang,
String country) |
static String |
getHyphenDir()
Getter for property hyphenDir.
|
static HyphenationTree |
getResourceHyphenationTree(String key) |
Hyphenation |
hyphenate(char[] word,
int offset,
int len) |
Hyphenation |
hyphenate(String word) |
static Hyphenation |
hyphenate(String lang,
String country,
char[] word,
int offset,
int len,
int leftMin,
int rightMin) |
static Hyphenation |
hyphenate(String lang,
String country,
String word,
int leftMin,
int rightMin) |
static void |
setHyphenDir(String _hyphenDir)
Setter for property hyphenDir.
|
void |
setLanguage(String lang,
String country) |
void |
setMinPushCharCount(int min) |
void |
setMinRemainCharCount(int min) |
public static HyphenationTree getHyphenationTree(String lang, String country)
lang - The languagecountry - The countrypublic static HyphenationTree getResourceHyphenationTree(String key)
key - A String of the key of the hyphenation treepublic static HyphenationTree getFileHyphenationTree(String key)
key - The language to get the tree frompublic static Hyphenation hyphenate(String lang, String country, String word, int leftMin, int rightMin)
lang - The languagecountry - The countryword - char array containing the wordleftMin - Minimum number of characters allowed before the hyphenation pointrightMin - Minimum number of characters allowed after the hyphenation pointpublic static Hyphenation hyphenate(String lang, String country, char[] word, int offset, int len, int leftMin, int rightMin)
lang - The languagecountry - The countryword - char array that contains the word to hyphenateoffset - Offset to the first character in wordlen - The length of the wordleftMin - Minimum number of characters allowed before the hyphenation pointrightMin - Minimum number of characters allowed after the hyphenation pointpublic static String getHyphenDir()
public static void setHyphenDir(String _hyphenDir)
_hyphenDir - New value of property hyphenDir.public void setMinRemainCharCount(int min)
min - Minimum number of characters allowed before the hyphenation pointpublic void setMinPushCharCount(int min)
min - Minimum number of characters allowed after the hyphenation pointpublic void setLanguage(String lang, String country)
lang - The languagecountry - The countrypublic Hyphenation hyphenate(char[] word, int offset, int len)
word - Char array that contains the wordoffset - Offset to the first character in wordlen - Length of the wordpublic Hyphenation hyphenate(String word)
word - The word to hyphenateCopyright © 2024. All rights reserved.