public interface Hyphenator
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. | Modifier and Type | Method and Description |
|---|---|
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. |
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.Copyright © 2001–2016 mmm-Team. All rights reserved.