Package org.apache.sis.internal.geotiff
Class Resources
java.lang.Object
java.util.ResourceBundle
org.apache.sis.util.resources.IndexedResourceBundle
org.apache.sis.internal.geotiff.Resources
- All Implemented Interfaces:
Localized
Warning and error messages that are specific to the
sis-geotiff module.
Resources in this file should not be used by any other module. For resources shared by
all modules in the Apache SIS project, see org.apache.sis.util.resources package.- Since:
- 0.8
- Version:
- 0.8
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classThe international string to be returned byformatInternational(short).static final classResource keys.Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control -
Field Summary
Fields inherited from class org.apache.sis.util.resources.IndexedResourceBundle
LOCALE_KEYFields inherited from class java.util.ResourceBundle
parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourcesReturns resources in the given locale.static org.opengis.util.InternationalStringformatInternational(short key) Gets an international string for the given key.static org.opengis.util.InternationalStringformatInternational(short key, Object... args) Gets an international string for the given key.protected KeyConstantsReturns the handle for theKeysconstants.Methods inherited from class org.apache.sis.util.resources.IndexedResourceBundle
appendLabel, getBundle, getKeys, getLabel, getLocale, getLogRecord, getLogRecord, getLogRecord, getLogRecord, getLogRecord, getString, getString, getString, getString, getString, getString, handleGetObject, list, toLabel, toStringMethods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
-
Constructor Details
-
Resources
Constructs a new resource bundle loading data from the given UTF file.- Parameters:
resources- the path of the binary file containing resources, ornullif there are no resources. The resources may be a file or an entry in a JAR file.
-
-
Method Details
-
getKeyConstants
Returns the handle for theKeysconstants.- Overrides:
getKeyConstantsin classIndexedResourceBundle- Returns:
- a handler for the constants declared in the inner
Keysclass.
-
forLocale
Returns resources in the given locale.- Parameters:
locale- the locale, ornullfor the default locale.- Returns:
- resources in the given locale.
- Throws:
MissingResourceException- if resources cannot be found.
-
formatInternational
public static org.opengis.util.InternationalString formatInternational(short key) Gets an international string for the given key. This method does not check for the key validity. If the key is invalid, then aMissingResourceExceptionmay be thrown when aInternationalString.toString(Locale)method is invoked.- Parameters:
key- the key for the desired string.- Returns:
- an international string for the given key.
-
formatInternational
Gets an international string for the given key. This method does not check for the key validity. If the key is invalid, then aMissingResourceExceptionmay be thrown when aInternationalString.toString(Locale)method is invoked.- Parameters:
key- the key for the desired string.args- values to substitute to "{0}", "{1}", etc.- Returns:
- an international string for the given key.
-