Uses of Class
com.aoapps.lang.i18n.Resources
Package
Description
Internationalization (i18n) utilities shared by many projects.
-
Uses of Resources in com.aoapps.lang
Modifier and TypeFieldDescriptionprotected final Resources
LocalizedIllegalArgumentException.resources
protected final Resources
LocalizedIllegalStateException.resources
protected final Resources
LocalizedUnsupportedOperationException.resources
Modifier and TypeMethodDescriptionfinal Resources
LocalizedIllegalArgumentException.getResources()
final Resources
LocalizedIllegalStateException.getResources()
final Resources
LocalizedUnsupportedOperationException.getResources()
ModifierConstructorDescriptionLocalizedIllegalArgumentException
(Resources resources, String key) LocalizedIllegalArgumentException
(Resources resources, String key, Serializable... args) LocalizedIllegalArgumentException
(Throwable cause, Resources resources, String key) LocalizedIllegalArgumentException
(Throwable cause, Resources resources, String key, Serializable... args) LocalizedIllegalStateException
(Resources resources, String key) LocalizedIllegalStateException
(Resources resources, String key, Serializable... args) LocalizedIllegalStateException
(Throwable cause, Resources resources, String key) LocalizedIllegalStateException
(Throwable cause, Resources resources, String key, Serializable... args) LocalizedUnsupportedOperationException
(Resources resources, String key) LocalizedUnsupportedOperationException
(Resources resources, String key, Serializable... args) LocalizedUnsupportedOperationException
(Throwable cause, Resources resources, String key) LocalizedUnsupportedOperationException
(Throwable cause, Resources resources, String key, Serializable... args) -
Uses of Resources in com.aoapps.lang.concurrent
ModifierConstructorDescriptionLocalizedTimeoutException
(Resources resources, String key) LocalizedTimeoutException
(Resources resources, String key, Serializable... args) -
Uses of Resources in com.aoapps.lang.exception
Modifier and TypeMethodDescriptionLocalizedException.getResources()
Gets the resources used to generate the message ornull
when the message is not localized and uses a default. -
Uses of Resources in com.aoapps.lang.i18n
Modifier and TypeMethodDescriptionstatic Resources
Resources.getResources
(SerializableBiFunction<String, Locale, ResourceBundle> bundleAccessor, Class<?> clazz) Accesses the resources in theDEFAULT_SUBPACKAGE
sub-package of the given class namedDEFAULT_NAME
withclazz.getSimpleName() + '.'
as the prefix.static Resources
Resources.getResources
(SerializableBiFunction<String, Locale, ResourceBundle> bundleAccessor, Package pack) Accesses the resources in theDEFAULT_SUBPACKAGE
sub-package of the given package namedDEFAULT_NAME
.static Resources
Resources.getResources
(SerializableBiFunction<String, Locale, ResourceBundle> bundleAccessor, Package pack, String name) Accesses the resources in the given package (or sub-package) with the given name and no prefix.static Resources
Resources.getResources
(SerializableBiFunction<String, Locale, ResourceBundle> bundleAccessor, Package pack, String name, String prefix) Accesses the resources in the given package (or sub-package) with the given name and prefix.static Resources
Resources.getResources
(SerializableBiFunction<String, Locale, ResourceBundle> bundleAccessor, String baseName) Deprecated.Please use one of the class- or package-relative techniques in locating the resource bundle, as they will correctly locate the resources after packages are renamed by code obfuscation.static Resources
Resources.getResources
(SerializableBiFunction<String, Locale, ResourceBundle> bundleAccessor, String baseName, String prefix) Deprecated.Please use one of the class- or package-relative techniques in locating the resource bundle, as they will correctly locate the resources after packages are renamed by code obfuscation.static Resources
Resources.getResources
(Class<?> clazz) Deprecated.Please usegetResources(com.aoapps.lang.function.SerializableBiFunction, java.lang.Class)
instead.static Resources
Resources.getResources
(Package pack) Deprecated.Please usegetResources(com.aoapps.lang.function.SerializableBiFunction, java.lang.Package)
instead.static Resources
Resources.getResources
(Package pack, String name) Deprecated.static Resources
Resources.getResources
(Package pack, String name, String prefix) Deprecated.static Resources
Resources.getResources
(String baseName) Deprecated.Please usegetResources(com.aoapps.lang.function.SerializableBiFunction, java.lang.String)
instead.static Resources
Resources.getResources
(String baseName, String prefix) Deprecated.Modifier and TypeMethodDescriptiondefault void
void
LocalizedConsumerE.accept
(Resources resources, String key, Serializable... args) default T
LocalizedSupplierE.get
(Resources resources, String key, Serializable... args) void
Resources.Listener.onGetMessage
(Resources resources, Locale locale, String key, Object[] args, String resource, String result) Called duringgetMessage(java.util.Locale, java.lang.String, java.lang.Object...)
when a lookup is performed and the key found. -
Uses of Resources in com.aoapps.lang.io
Modifier and TypeFieldDescriptionprotected final Resources
LocalizedIOException.resources
protected final Resources
LocalizedUnsupportedEncodingException.resources
Modifier and TypeMethodDescriptionfinal Resources
LocalizedIOException.getResources()
final Resources
LocalizedUnsupportedEncodingException.getResources()
ModifierConstructorDescriptionLocalizedIOException
(Resources resources, String key) LocalizedIOException
(Resources resources, String key, Serializable... args) LocalizedIOException
(Throwable cause, Resources resources, String key) LocalizedIOException
(Throwable cause, Resources resources, String key, Serializable... args) LocalizedUnsupportedEncodingException
(Resources resources, String key) LocalizedUnsupportedEncodingException
(Resources resources, String key, Serializable... args) LocalizedUnsupportedEncodingException
(Throwable cause, Resources resources, String key) LocalizedUnsupportedEncodingException
(Throwable cause, Resources resources, String key, Serializable... args) -
Uses of Resources in com.aoapps.lang.sql
ModifierConstructorDescriptionLocalizedSQLException
(String sqlState, int vendorCode, Resources resources, String key) LocalizedSQLException
(String sqlState, int vendorCode, Resources resources, String key, Serializable... args) LocalizedSQLException
(String sqlState, int vendorCode, Throwable cause, Resources resources, String key) LocalizedSQLException
(String sqlState, int vendorCode, Throwable cause, Resources resources, String key, Serializable... args) LocalizedSQLException
(String sqlState, Resources resources, String key) LocalizedSQLException
(String sqlState, Resources resources, String key, Serializable... args) LocalizedSQLException
(String sqlState, Throwable cause, Resources resources, String key) LocalizedSQLException
(String sqlState, Throwable cause, Resources resources, String key, Serializable... args) -
Uses of Resources in com.aoapps.lang.text
ModifierConstructorDescriptionLocalizedParseException
(int errorOffset, Resources resources, String key) LocalizedParseException
(int errorOffset, Resources resources, String key, Serializable... args) -
Uses of Resources in com.aoapps.lang.util
-
Uses of Resources in com.aoapps.lang.validation
ModifierConstructorDescriptionInvalidResult
(Resources resources, String key) InvalidResult
(Resources resources, String key, Serializable... args)