public abstract class BreakIteratorProvider extends LocaleServiceProvider
BreakIteratorProvider provides localized
instances of BreakIterator.| Modifier | Constructor and Description |
|---|---|
protected |
BreakIteratorProvider()
Constructs a new
BreakIteratorProvider. |
| Modifier and Type | Method and Description |
|---|---|
abstract BreakIterator |
getCharacterInstance(Locale locale)
Returns a
BreakIterator instance
for character breaks in the specified
Locale. |
abstract BreakIterator |
getLineInstance(Locale locale)
Returns a
BreakIterator instance
for line breaks in the specified Locale. |
abstract BreakIterator |
getSentenceInstance(Locale locale)
Returns a
BreakIterator instance
for sentence breaks in the specified
Locale. |
abstract BreakIterator |
getWordInstance(Locale locale)
Returns a
BreakIterator instance
for word breaks in the specified
Locale. |
getAvailableLocalesprotected BreakIteratorProvider()
BreakIteratorProvider.
Provided for implicit invocation by subclasses.public abstract BreakIterator getCharacterInstance(Locale locale)
BreakIterator instance
for character breaks in the specified
Locale.locale - the desired locale.NullPointerException - if the locale is null.IllegalArgumentException - if the locale is not one
returned by
LocaleServiceProvider.getAvailableLocales()BreakIterator.getCharacterInstance(java.util.Locale)public abstract BreakIterator getLineInstance(Locale locale)
BreakIterator instance
for line breaks in the specified Locale.locale - the desired locale.NullPointerException - if the locale is null.IllegalArgumentException - if the locale is not one
returned by
LocaleServiceProvider.getAvailableLocales()BreakIterator.getLineInstance(java.util.Locale)public abstract BreakIterator getSentenceInstance(Locale locale)
BreakIterator instance
for sentence breaks in the specified
Locale.locale - the desired locale.NullPointerException - if the locale is null.IllegalArgumentException - if the locale is not one
returned by
LocaleServiceProvider.getAvailableLocales()BreakIterator.getSentenceInstance(java.util.Locale)public abstract BreakIterator getWordInstance(Locale locale)
BreakIterator instance
for word breaks in the specified
Locale.locale - the desired locale.NullPointerException - if the locale is null.IllegalArgumentException - if the locale is not one
returned by
LocaleServiceProvider.getAvailableLocales()BreakIterator.getWordInstance(java.util.Locale)