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 locale)
Returns a new
BreakIterator instance
for character breaks
for the given locale. |
abstract BreakIterator |
getLineInstance(Locale locale)
Returns a new
BreakIterator instance
for line breaks
for the given locale. |
abstract BreakIterator |
getSentenceInstance(Locale locale)
Returns a new
BreakIterator instance
for sentence breaks
for the given locale. |
abstract BreakIterator |
getWordInstance(Locale locale)
Returns a new
BreakIterator instance
for word breaks
for the given locale. |
getAvailableLocales, isSupportedLocale
protected BreakIteratorProvider()
public abstract BreakIterator getWordInstance(Locale locale)
BreakIterator
instance
for word breaks
for the given locale.locale
- the desired localeNullPointerException
- if locale
is nullIllegalArgumentException
- if locale
isn't
one of the locales returned from
getAvailableLocales()
.BreakIterator.getWordInstance(java.util.Locale)
public abstract BreakIterator getLineInstance(Locale locale)
BreakIterator
instance
for line breaks
for the given locale.locale
- the desired localeNullPointerException
- if locale
is nullIllegalArgumentException
- if locale
isn't
one of the locales returned from
getAvailableLocales()
.BreakIterator.getLineInstance(java.util.Locale)
public abstract BreakIterator getCharacterInstance(Locale locale)
BreakIterator
instance
for character breaks
for the given locale.locale
- the desired localeNullPointerException
- if locale
is nullIllegalArgumentException
- if locale
isn't
one of the locales returned from
getAvailableLocales()
.BreakIterator.getCharacterInstance(java.util.Locale)
public abstract BreakIterator getSentenceInstance(Locale locale)
BreakIterator
instance
for sentence breaks
for the given locale.locale
- the desired localeNullPointerException
- if locale
is nullIllegalArgumentException
- if locale
isn't
one of the locales returned from
getAvailableLocales()
.BreakIterator.getSentenceInstance(java.util.Locale)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.