Top Inners Fields Constructors Methods
com.ibm.icu.text

pack-priv final Class BreakIteratorFactory

extends BreakIteratorServiceShim
Class Inheritance
Imports
java.io.IOException, java.nio.ByteBuffer, java.util.Locale, .MissingResourceException, com.ibm.icu.impl.Assert, .ICUBinary, .ICUData, .ICULocaleService, .ICUResourceBundle, .ICUService, .ICUService.Factory, com.ibm.icu.util.ULocale

Author
Ram To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates. To enable and disable the creation of type comments go to Window>Preferences>Java>Code Generation.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final String[]
KIND_NAMES

KIND_NAMES are the resource key to be used to fetch the name of the pre-compiled break rules.

pack-priv static final ICULocaleService

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static BreakIterator
createBreakInstance(ULocale locale, int kind)

public BreakIterator
public Locale[]
public ULocale[]
public Object
public boolean

Field Detail

KIND_NAMESback to summary
private static final String[] KIND_NAMES

KIND_NAMES are the resource key to be used to fetch the name of the pre-compiled break rules. The resource bundle name is "boundaries". The value for each key will be the rules to be used for the specified locale - "word" -> "word_th" for Thai, for example.

serviceback to summary
pack-priv static final ICULocaleService service

Constructor Detail

BreakIteratorFactoryback to summary
pack-priv BreakIteratorFactory()

Method Detail

createBreakInstanceback to summary
private static BreakIterator createBreakInstance(ULocale locale, int kind)
createBreakIteratorback to summary
public BreakIterator createBreakIterator(ULocale locale, int kind)

Implements abstract com.ibm.icu.text.BreakIterator.BreakIteratorServiceShim.createBreakIterator.

Annotations
@Override
getAvailableLocalesback to summary
public Locale[] getAvailableLocales()

Implements abstract com.ibm.icu.text.BreakIterator.BreakIteratorServiceShim.getAvailableLocales.

Annotations
@Override
getAvailableULocalesback to summary
public ULocale[] getAvailableULocales()

Implements abstract com.ibm.icu.text.BreakIterator.BreakIteratorServiceShim.getAvailableULocales.

Annotations
@Override
registerInstanceback to summary
public Object registerInstance(BreakIterator iter, ULocale locale, int kind)

Implements abstract com.ibm.icu.text.BreakIterator.BreakIteratorServiceShim.registerInstance.

Annotations
@Override
unregisterback to summary
public boolean unregister(Object key)

Implements abstract com.ibm.icu.text.BreakIterator.BreakIteratorServiceShim.unregister.

Annotations
@Override
com.ibm.icu.text back to summary

private Class BreakIteratorFactory.BFService

extends ICULocaleService
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String
validateFallbackLocale()

Overrides com.ibm.icu.impl.ICULocaleService.validateFallbackLocale.

createBreakInstance() returns an appropriate BreakIterator for any locale.
Inherited from com.ibm.icu.impl.ICULocaleService:
createKeycreateKeycreateKeygetgetgetgetgetAvailableLocalesgetAvailableULocalesregisterObjectregisterObjectregisterObjectregisterObject

Constructor Detail

BFServiceback to summary
pack-priv BFService()

Method Detail

validateFallbackLocaleback to summary
public String validateFallbackLocale()

Overrides com.ibm.icu.impl.ICULocaleService.validateFallbackLocale.

createBreakInstance() returns an appropriate BreakIterator for any locale. It falls back to root if there is no specific data.

Without this override, the service code would fall back to the default locale which is not desirable for an algorithm with a good Unicode default, like break iteration.

Annotations
@Override