APIdia Launch Partner
Top Description Fields Constructors Methods
sun.util.resources

public abstract Class BreakIteratorResourceBundle

extends ResourceBundle
Class Inheritance
Known Direct Subclasses
sun.text.resources.BreakIteratorResources
Imports
java.io.InputStream, java.util.Collections, .Enumeration, .ResourceBundle, .Set, java.util.function.Supplier

BreakIteratorResourceBundle is an abstract class for loading BreakIterator data (rules or dictionary) from each module. An implementation class must implement getBreakIteratorInfo() that returns an instance of the corresponding BreakIteratorInfo (basename). The data name is taken from the BreakIteratorInfo instance.

For example, if the given key is "WordDictionary" and Locale is "th", the data name is taken from a BreakIteratorInfo_th and the key's value is "thai_dict". Its data thai_dict is loaded from the Module of the implementation class of this class.

Field Summary

Modifier and TypeField and Description
private final LazyConstant<Set<String>>
private static final Set<String>
Inherited from java.util.ResourceBundle:
parent

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract ResourceBundle
getBreakIteratorInfo()

Returns an instance of the corresponding BreakIteratorInfo (basename).

public Enumeration<String>
getKeys()

Implements abstract java.util.ResourceBundle.getKeys.

Returns an enumeration of the keys.

protected Object
handleGetObject(String key)

Implements abstract java.util.ResourceBundle.handleGetObject.

Gets an object for the given key from this resource bundle.

protected Set<String>
handleKeySet()

Overrides java.util.ResourceBundle.handleKeySet.

Returns a Set of the keys contained only in this ResourceBundle.

private Set<String>
Inherited from java.util.ResourceBundle:
clearCacheclearCachecontainsKeygetBaseBundleNamegetBundlegetBundlegetBundlegetBundlegetBundlegetBundlegetBundlegetBundlegetLocalegetObjectgetStringgetStringArraykeySetsetParent

Field Detail

keysback to summary
private final LazyConstant<Set<String>> keys
NON_DATA_KEYSback to summary
private static final Set<String> NON_DATA_KEYS

Constructor Detail

BreakIteratorResourceBundleback to summary
public BreakIteratorResourceBundle()

Method Detail

getBreakIteratorInfoback to summary
protected abstract ResourceBundle getBreakIteratorInfo()

Returns an instance of the corresponding BreakIteratorInfo (basename). The instance shouldn't have its parent.

getKeysback to summary
public Enumeration<String> getKeys()

Implements abstract java.util.ResourceBundle.getKeys.

Doc from java.util.ResourceBundle.getKeys.

Returns an enumeration of the keys.

Annotations
@Override
handleGetObjectback to summary
protected Object handleGetObject(String key)

Implements abstract java.util.ResourceBundle.handleGetObject.

Doc from java.util.ResourceBundle.handleGetObject.

Gets an object for the given key from this resource bundle. Returns null if this resource bundle does not contain an object for the given key.

Annotations
@Override
handleKeySetback to summary
protected Set<String> handleKeySet()

Overrides java.util.ResourceBundle.handleKeySet.

Doc from java.util.ResourceBundle.handleKeySet.

Returns a Set of the keys contained only in this ResourceBundle.

The default implementation returns a Set of the keys returned by the getKeys method except for the ones for which the handleGetObject method returns null. Once the Set has been created, the value is kept in this ResourceBundle in order to avoid producing the same Set in subsequent calls. Subclasses can override this method for faster handling.

Annotations
@Override
keys0back to summary
private Set<String> keys0()