public abstract class BreakIteratorProvider extends LocaleServiceProvider
BreakIterator
class.Modifier | Constructor | Description |
---|---|---|
protected |
Sole constructor. |
Modifier and Type | Method | Description |
---|---|---|
abstract BreakIterator |
getCharacterInstance |
Returns a new BreakIterator instance for character breaks for the given locale. |
abstract BreakIterator |
getLineInstance |
Returns a new BreakIterator instance for line breaks for the given locale. |
abstract BreakIterator |
getSentenceInstance |
Returns a new BreakIterator instance for sentence breaks for the given locale. |
abstract BreakIterator |
getWordInstance |
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()
.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()
.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()
.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()
.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/text/spi/BreakIteratorProvider.html