java.text.spi
public abstract class BreakIteratorProvider extends LocaleServiceProvider
Since: 1.6
Constructor Summary | |
---|---|
protected | BreakIteratorProvider()
Constructs a new {@link BreakIteratorProvider}.
|
Method Summary | |
---|---|
abstract BreakIterator | getCharacterInstance(Locale locale)
Returns a {@link java.text.BreakIterator} instance
for character breaks in the specified
{@link java.util.Locale}.
|
abstract BreakIterator | getLineInstance(Locale locale)
Returns a {@link java.text.BreakIterator} instance
for line breaks in the specified {@link java.util.Locale}.
|
abstract BreakIterator | getSentenceInstance(Locale locale)
Returns a {@link java.text.BreakIterator} instance
for sentence breaks in the specified
{@link java.util.Locale}.
|
abstract BreakIterator | getWordInstance(Locale locale)
Returns a {@link java.text.BreakIterator} instance
for word breaks in the specified
{@link java.util.Locale}.
|
Parameters: locale the desired locale.
Returns: the localized instance for character breaks.
Throws: NullPointerException if the locale is null. IllegalArgumentException if the locale is not one returned by {@link getAvailableLocales()}
See Also: getCharacterInstance
Parameters: locale the desired locale.
Returns: the localized instance for line breaks.
Throws: NullPointerException if the locale is null. IllegalArgumentException if the locale is not one returned by {@link getAvailableLocales()}
See Also: getLineInstance
Parameters: locale the desired locale.
Returns: the localized instance for sentence breaks.
Throws: NullPointerException if the locale is null. IllegalArgumentException if the locale is not one returned by {@link getAvailableLocales()}
See Also: getSentenceInstance
Parameters: locale the desired locale.
Returns: the localized instance for word breaks.
Throws: NullPointerException if the locale is null. IllegalArgumentException if the locale is not one returned by {@link getAvailableLocales()}
See Also: getWordInstance