FileDocCategorySizeDatePackage
BreakIteratorProvider.javaAPI DocJava SE 6 API3596Tue Jun 10 00:25:52 BST 2008java.text.spi

BreakIteratorProvider

public abstract class BreakIteratorProvider extends LocaleServiceProvider
An abstract class for service providers that provide concrete implementations of the {@link java.text.BreakIterator BreakIterator} class.
since
1.6
version
@(#)BreakIteratorProvider.java 1.2 05/11/17

Fields Summary
Constructors Summary
protected BreakIteratorProvider()
Sole constructor. (For invocation by subclass constructors, typically implicit.)

    
Methods Summary
public abstract java.text.BreakIteratorgetCharacterInstance(java.util.Locale locale)
Returns a new BreakIterator instance for character breaks for the given locale.

param
locale the desired locale
return
A break iterator for character breaks
exception
NullPointerException if locale is null
exception
IllegalArgumentException if locale isn't one of the locales returned from {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() getAvailableLocales()}.
see
java.text.BreakIterator#getCharacterInstance(java.util.Locale)

public abstract java.text.BreakIteratorgetLineInstance(java.util.Locale locale)
Returns a new BreakIterator instance for line breaks for the given locale.

param
locale the desired locale
return
A break iterator for line breaks
exception
NullPointerException if locale is null
exception
IllegalArgumentException if locale isn't one of the locales returned from {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() getAvailableLocales()}.
see
java.text.BreakIterator#getLineInstance(java.util.Locale)

public abstract java.text.BreakIteratorgetSentenceInstance(java.util.Locale locale)
Returns a new BreakIterator instance for sentence breaks for the given locale.

param
locale the desired locale
return
A break iterator for sentence breaks
exception
NullPointerException if locale is null
exception
IllegalArgumentException if locale isn't one of the locales returned from {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() getAvailableLocales()}.
see
java.text.BreakIterator#getSentenceInstance(java.util.Locale)

public abstract java.text.BreakIteratorgetWordInstance(java.util.Locale locale)
Returns a new BreakIterator instance for word breaks for the given locale.

param
locale the desired locale
return
A break iterator for word breaks
exception
NullPointerException if locale is null
exception
IllegalArgumentException if locale isn't one of the locales returned from {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() getAvailableLocales()}.
see
java.text.BreakIterator#getWordInstance(java.util.Locale)