|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Hyphenator
A Hyphenator is used to hyphenate words. If a word is to long to fit
at the end of a line of text, it may be hyphenated according to the
locale.
An implementation has to be thread-safe.
| Method Summary | |
|---|---|
char |
getHyphen()
This method gets the character used to separate the hyphenated parts of a word. |
Locale |
getLocale()
This method gets the Locale this Hyphenator works for. |
Hyphenation |
hyphenate(String word)
|
Hyphenation |
hyphenate(String text,
int start)
|
Hyphenation |
hyphenate(String text,
int start,
int end)
This method hyphenates the word from the given text from
start to end. |
| Method Detail |
|---|
Hyphenation hyphenate(String word)
word - is the word to hyphenate.
Hyphenation for the given word.hyphenate(String, int, int)
Hyphenation hyphenate(String text,
int start)
text - is the text ending with the word to hyphenate.start - is the index of the words first
character.
Hyphenation for the word given by
text.substring(start)hyphenate(String, int, int)
Hyphenation hyphenate(String text,
int start,
int end)
text from
start to end.BreakIterator.getWordInstance(Locale) for
word-separation.
text - is the text containing the word to hyphenate.start - is the index of the words first
character.end - is the exclusive end-index. The index of the words last character is end - 1.
Hyphenation for the word given by
text.substring(start, end)Locale getLocale()
Locale this Hyphenator works for. It
may differ from (be more general than) the Locale this
Hyphenator was requested for.
Locale.HyphenatorBuilder.getHyphenator(Locale)char getHyphen()
Locales.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||