Methods Summary |
---|
public java.lang.String | getBaseName()
return rm.getBaseName();
|
public byte[] | getData(int id)
return rm.getData(id);
|
public java.lang.String | getLocale()
return rm.getLocale();
|
public static final javax.microedition.global.ResourceManager | getManager(java.lang.String baseName)
// JAVADOC COMMENT ELIDED
// get system locale
String locale = System.getProperty("microedition.locale");
if (locale == null) {
throw new ResourceException(
ResourceException.NO_SYSTEM_DEFAULT_LOCALE,
"System default locale is undefined");
}
return getManager(baseName, locale);
|
public static final javax.microedition.global.ResourceManager | getManager(java.lang.String baseName, java.lang.String locale)
if (baseName == null) {
throw new NullPointerException("Base name is null");
}
if (locale == null) {
throw new NullPointerException("Locale is null");
}
if (!LocaleHelpers.isValidLocale(locale) && !("".equals(locale))) {
throw new IllegalArgumentException("Invalid locale format");
}
locale = LocaleHelpers.normalizeLocale(locale);
return new ResourceManager(
com.sun.j2me.global.ResourceManager.getManager(baseName, locale));
|
public static final javax.microedition.global.ResourceManager | getManager(java.lang.String baseName, java.lang.String[] locales)
if (baseName == null) {
throw new NullPointerException("Base name is null");
}
if (locales == null) {
throw new NullPointerException("Locales array is null");
}
if (locales.length == 0) {
throw new IllegalArgumentException("Empty locales array");
}
for (int i = 0; i < locales.length; i++) {
if (locales[i] == null) {
throw new NullPointerException("Locale at position " +
i + " is null");
}
if (!LocaleHelpers.isValidLocale(locales[i]) &&
!("".equals(locales[i]))) {
throw new IllegalArgumentException("Locale at position " +
i + " has invalid format");
}
}
return new ResourceManager(
com.sun.j2me.global.ResourceManager.getManager(baseName, locales));
|
public java.lang.Object | getResource(int id)
return rm.getResource(id);
|
public java.lang.String | getString(int id)
return rm.getString(id);
|
public static java.lang.String[] | getSupportedLocales(java.lang.String baseName)
if (baseName == null) {
throw new NullPointerException("Base name is null");
}
return com.sun.j2me.global.ResourceManager.
getSupportedLocales(baseName);
|
public boolean | isCaching()
return rm.isCaching();
|
public boolean | isValidResourceID(int id)
return rm.isValidResourceID(id);
|