|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceManagementService
The Resource Management Service gives easy access to common resources for the application including texts, images, sounds and some configurations.
| Field Summary | |
|---|---|
static String |
DEFAULT_LOCALE_CONFIG
Default Locale config string. |
| Method Summary | |
|---|---|
Iterator<Locale> |
getAvailableLocales()
All the locales in the language pack. |
int |
getColor(String key)
Returns the int representation of the color corresponding to the given key. |
String |
getColorString(String key)
Returns the string representation of the color corresponding to the given key. |
char |
getI18nMnemonic(String key)
Returns an internationalized string corresponding to the given key. |
char |
getI18nMnemonic(String key,
Locale l)
Returns an internationalized string corresponding to the given key. |
String |
getI18NString(String key)
Returns an internationalized string corresponding to the given key. |
String |
getI18NString(String key,
Locale locale)
Returns an internationalized string corresponding to the given key. |
String |
getI18NString(String key,
String[] params)
Returns an internationalized string corresponding to the given key. |
String |
getI18NString(String key,
String[] params,
Locale locale)
Returns an internationalized string corresponding to the given key. |
ImageIcon |
getImage(String imageID)
Constructs an ImageIcon from the specified image ID and returns it. |
byte[] |
getImageInBytes(String imageID)
Loads the image with the specified ID and returns a byte array containing it. |
InputStream |
getImageInputStream(String streamKey)
Returns the InputStream of the image corresponding to the given key. |
InputStream |
getImageInputStreamForPath(String path)
Returns the InputStream of the image corresponding to the given path. |
String |
getImagePath(String key)
Returns the image path corresponding to the given key. |
URL |
getImageURL(String urlKey)
Returns the URL of the image corresponding to the given key. |
URL |
getImageURLForPath(String path)
Returns the URL of the image corresponding to the given path. |
InputStream |
getSettingsInputStream(String streamKey)
Returns an InputStream for the setting corresponding to the given key. |
InputStream |
getSettingsInputStream(String streamKey,
Class<?> resourceClass)
Returns a stream from a given identifier, obtained through the class loader of the given resourceClass. |
int |
getSettingsInt(String key)
Returns the int value of the corresponding configuration key. |
String |
getSettingsString(String key)
Returns the int value of the corresponding configuration key. |
URL |
getSettingsURL(String urlKey)
Returns an url for the setting corresponding to the given key. |
String |
getSoundPath(String soundKey)
Returns the path of the sound corresponding to the given property key. |
URL |
getSoundURL(String urlKey)
Returns an url for the sound resource corresponding to the given key. |
URL |
getSoundURLForPath(String path)
Returns an url for the sound resource corresponding to the given path. |
File |
prepareSkinBundleFromZip(File zipFile)
Builds a new skin bundle from the zip file content. |
| Field Detail |
|---|
static final String DEFAULT_LOCALE_CONFIG
| Method Detail |
|---|
int getColor(String key)
key - The key of the color in the colors properties file.
String getColorString(String key)
key - The key of the color in the colors properties file.
InputStream getImageInputStreamForPath(String path)
path - The path to the image file.
InputStream getImageInputStream(String streamKey)
streamKey - The identifier of the image in the resource properties
file.
URL getImageURL(String urlKey)
urlKey - The identifier of the image in the resource properties file.
URL getImageURLForPath(String path)
path - The path to the given image file.
String getImagePath(String key)
key - The identifier of the image in the resource properties file.
Iterator<Locale> getAvailableLocales()
String getI18NString(String key)
key - The identifier of the string in the resources properties file.
String getI18NString(String key,
Locale locale)
key - The identifier of the string in the resources properties file.locale - The locale.
String getI18NString(String key,
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.
String getI18NString(String key,
String[] params,
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(String key)
key - The identifier of the string in the resources properties file.
char getI18nMnemonic(String key,
Locale l)
key - The key of the string.l - The locale.
URL getSettingsURL(String urlKey)
urlKey - The key of the setting.
InputStream getSettingsInputStream(String streamKey)
streamKey - The key of the setting.
InputStream getSettingsInputStream(String streamKey,
Class<?> resourceClass)
streamKey - The identifier of the stream.resourceClass - the resource class through which the resource would
be obtained
String getSettingsString(String key)
key - The identifier of the string in the resources properties file.
int getSettingsInt(String key)
key - The identifier of the string in the resources properties file.
URL getSoundURL(String urlKey)
urlKey - The key of the setting.
URL getSoundURLForPath(String path)
path - The path to the sound resource.
String getSoundPath(String soundKey)
soundKey - The key of the sound.
ImageIcon getImage(String imageID)
imageID - The identifier of the image.
byte[] getImageInBytes(String imageID)
imageID - The identifier of the image.
File prepareSkinBundleFromZip(File zipFile)
throws Exception
zipFile - Zip file with skin information.
Exception - When something goes wrong.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||