public interface ResourceManagementService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_LOCALE_CONFIG
Default Locale config string.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<java.util.Locale> |
getAvailableLocales()
All the locales in the language pack.
|
int |
getColor(java.lang.String key)
Returns the int representation of the color corresponding to the
given key.
|
java.lang.String |
getColorString(java.lang.String key)
Returns the string representation of the color corresponding to the
given key.
|
char |
getI18nMnemonic(java.lang.String key)
Returns an internationalized string corresponding to the given key.
|
char |
getI18nMnemonic(java.lang.String key,
java.util.Locale l)
Returns an internationalized string corresponding to the given key.
|
java.lang.String |
getI18NString(java.lang.String key)
Returns an internationalized string corresponding to the given key.
|
java.lang.String |
getI18NString(java.lang.String key,
java.util.Locale locale)
Returns an internationalized string corresponding to the given key.
|
java.lang.String |
getI18NString(java.lang.String key,
java.lang.String[] params)
Returns an internationalized string corresponding to the given key.
|
java.lang.String |
getI18NString(java.lang.String key,
java.lang.String[] params,
java.util.Locale locale)
Returns an internationalized string corresponding to the given key.
|
javax.swing.ImageIcon |
getImage(java.lang.String imageID)
Constructs an ImageIcon from the specified image ID and returns
it.
|
byte[] |
getImageInBytes(java.lang.String imageID)
Loads the image with the specified ID and returns a byte array
containing it.
|
java.io.InputStream |
getImageInputStream(java.lang.String streamKey)
Returns the InputStream of the image corresponding to the given
key.
|
java.io.InputStream |
getImageInputStreamForPath(java.lang.String path)
Returns the InputStream of the image corresponding to the given
path.
|
java.lang.String |
getImagePath(java.lang.String key)
Returns the image path corresponding to the given key.
|
java.net.URL |
getImageURL(java.lang.String urlKey)
Returns the URL of the image corresponding to the given key.
|
java.net.URL |
getImageURLForPath(java.lang.String path)
Returns the URL of the image corresponding to the given path.
|
java.io.InputStream |
getSettingsInputStream(java.lang.String streamKey)
Returns an InputStream for the setting corresponding to the given key.
|
java.io.InputStream |
getSettingsInputStream(java.lang.String streamKey,
java.lang.Class<?> resourceClass)
Returns a stream from a given identifier, obtained through the class
loader of the given resourceClass.
|
int |
getSettingsInt(java.lang.String key)
Returns the int value of the corresponding configuration key.
|
java.lang.String |
getSettingsString(java.lang.String key)
Returns the int value of the corresponding configuration key.
|
java.net.URL |
getSettingsURL(java.lang.String urlKey)
Returns an url for the setting corresponding to the given key.
|
java.lang.String |
getSoundPath(java.lang.String soundKey)
Returns the path of the sound corresponding to the given
property key.
|
java.net.URL |
getSoundURL(java.lang.String urlKey)
Returns an url for the sound resource corresponding to the given key.
|
java.net.URL |
getSoundURLForPath(java.lang.String path)
Returns an url for the sound resource corresponding to the given path.
|
java.io.File |
prepareSkinBundleFromZip(java.io.File zipFile)
Builds a new skin bundle from the zip file content.
|
static final java.lang.String DEFAULT_LOCALE_CONFIG
int getColor(java.lang.String key)
key
- The key of the color in the colors properties file.java.lang.String getColorString(java.lang.String key)
key
- The key of the color in the colors properties file.java.io.InputStream getImageInputStreamForPath(java.lang.String path)
path
- The path to the image file.java.io.InputStream getImageInputStream(java.lang.String streamKey)
streamKey
- The identifier of the image in the resource properties
file.java.net.URL getImageURL(java.lang.String urlKey)
urlKey
- The identifier of the image in the resource properties file.java.net.URL getImageURLForPath(java.lang.String path)
path
- The path to the given image file.java.lang.String getImagePath(java.lang.String key)
key
- The identifier of the image in the resource properties file.java.util.Iterator<java.util.Locale> getAvailableLocales()
java.lang.String getI18NString(java.lang.String key)
key
- The identifier of the string in the resources properties file.java.lang.String getI18NString(java.lang.String key, java.util.Locale locale)
key
- The identifier of the string in the resources properties file.locale
- The locale.java.lang.String getI18NString(java.lang.String key, java.lang.String[] params)
key
- The identifier of the string in the resources properties file.params
- An array of parameters to be replaced in the returned
string.java.lang.String getI18NString(java.lang.String key, java.lang.String[] params, java.util.Locale locale)
key
- The identifier of the string in the resources properties file.params
- An array of parameters to be replaced in the returned
string.locale
- The locale.char getI18nMnemonic(java.lang.String key)
key
- The identifier of the string in the resources properties file.char getI18nMnemonic(java.lang.String key, java.util.Locale l)
key
- The key of the string.l
- The locale.java.net.URL getSettingsURL(java.lang.String urlKey)
urlKey
- The key of the setting.java.io.InputStream getSettingsInputStream(java.lang.String streamKey)
streamKey
- The key of the setting.java.io.InputStream getSettingsInputStream(java.lang.String streamKey, java.lang.Class<?> resourceClass)
streamKey
- The identifier of the stream.resourceClass
- the resource class through which the resource would
be obtainedjava.lang.String getSettingsString(java.lang.String key)
key
- The identifier of the string in the resources properties file.int getSettingsInt(java.lang.String key)
key
- The identifier of the string in the resources properties file.java.net.URL getSoundURL(java.lang.String urlKey)
urlKey
- The key of the setting.java.net.URL getSoundURLForPath(java.lang.String path)
path
- The path to the sound resource.java.lang.String getSoundPath(java.lang.String soundKey)
soundKey
- The key of the sound.javax.swing.ImageIcon getImage(java.lang.String imageID)
imageID
- The identifier of the image.byte[] getImageInBytes(java.lang.String imageID)
imageID
- The identifier of the image.java.io.File prepareSkinBundleFromZip(java.io.File zipFile) throws java.lang.Exception
zipFile
- Zip file with skin information.java.lang.Exception
- When something goes wrong.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.