|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lowagie.text.pdf.hyphenation.Hyphenator
This class is the main entry point to the hyphenation package. You can use only the static methods or create an instance.
Field Summary | |
private static boolean |
errorDump
|
private static String |
hyphenDir
Holds value of property hyphenDir. |
private HyphenationTree |
hyphenTree
|
(package private) static Hashtable |
hyphenTrees
|
private int |
pushCharCount
|
private int |
remainCharCount
|
Constructor Summary | |
Hyphenator(String lang,
String country,
int leftMin,
int rightMin)
|
Method Summary | |
static HyphenationTree |
getFopHyphenationTree(String key)
|
static HyphenationTree |
getHyphenationTree(String lang,
String country)
|
static String |
getHyphenDir()
Getter for property hyphenDir. |
private static InputStream |
getResourceStream(String key)
|
static HyphenationTree |
getUserHyphenationTree(String key,
String hyphenDir)
load tree from serialized file or xml file using configuration settings |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static Hashtable hyphenTrees
private HyphenationTree hyphenTree
private int remainCharCount
private int pushCharCount
private static boolean errorDump
private static String hyphenDir
Constructor Detail |
public Hyphenator(String lang, String country, int leftMin, int rightMin)
Method Detail |
public static HyphenationTree getHyphenationTree(String lang, String country)
private static InputStream getResourceStream(String key)
public static HyphenationTree getFopHyphenationTree(String key)
public static HyphenationTree getUserHyphenationTree(String key, String hyphenDir)
public static Hyphenation hyphenate(String lang, String country, String word, int leftMin, int rightMin)
public static Hyphenation hyphenate(String lang, String country, char[] word, int offset, int len, int leftMin, int rightMin)
public void setMinRemainCharCount(int min)
public void setMinPushCharCount(int min)
public void setLanguage(String lang, String country)
public Hyphenation hyphenate(char[] word, int offset, int len)
public Hyphenation hyphenate(String word)
public static String getHyphenDir()
public static void setHyphenDir(String _hyphenDir)
_hyphenDir
- New value of property hyphenDir.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |