public abstract class BreakIteratorProvider extends LocaleServiceProvider
BreakIterator class.
| Modifier | Constructor and Description |
|---|---|
protected |
BreakIteratorProvider()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract BreakIterator |
getCharacterInstance(Locale
Returns a new
BreakIterator instance for
character breaks for the given locale.
|
abstract BreakIterator |
getLineInstance(Locale
Returns a new
BreakIterator instance for
line breaks for the given locale.
|
abstract BreakIterator |
getSentenceInstance(Locale
Returns a new
BreakIterator instance for
sentence breaks for the given locale.
|
abstract BreakIterator |
getWordInstance(Locale
Returns a new
BreakIterator instance for
word breaks for the given locale.
|
getAvailableLocales, isSupportedLocaleprotected BreakIteratorProvider()
public abstract BreakIteratorgetWordInstance(Locale locale)
BreakIterator instance for
word breaks for the given locale.
locale - the desired locale
NullPointerException - if
locale is null
IllegalArgumentException - if
locale isn't one of the locales returned from
getAvailableLocales().
BreakIterator.getWordInstance(java.util.Locale)
public abstract BreakIteratorgetLineInstance(Locale locale)
BreakIterator instance for
line breaks for the given locale.
locale - the desired locale
NullPointerException - if
locale is null
IllegalArgumentException - if
locale isn't one of the locales returned from
getAvailableLocales().
BreakIterator.getLineInstance(java.util.Locale)
public abstract BreakIteratorgetCharacterInstance(Locale locale)
BreakIterator instance for
character breaks for the given locale.
locale - the desired locale
NullPointerException - if
locale is null
IllegalArgumentException - if
locale isn't one of the locales returned from
getAvailableLocales().
BreakIterator.getCharacterInstance(java.util.Locale)
public abstract BreakIteratorgetSentenceInstance(Locale locale)
BreakIterator instance for
sentence breaks for the given locale.
locale - the desired locale
NullPointerException - if
locale is null
IllegalArgumentException - if
locale isn't one of the locales returned from
getAvailableLocales().
BreakIterator.getSentenceInstance(java.util.Locale)