public interface Resources
| Modifier and Type | Field and Description |
|---|---|
static String |
CUSTOM_ICONS_RESOURCE_NAME
The base name of the XML file that specifies the custom icons.
|
static String |
CUSTOM_TRANSLATIONS_RESOURCE_NAME
The base name of the XML file that specifies the custom langpack.
|
static String |
DEFAULT_INSTALL_LOGGING_CONFIGURATION_RES
The install Java logging configuration.
|
static String |
PACK_TRANSLATIONS_RESOURCE_NAME
The base name of the XML file that specifies the pack langpack.
|
static String |
USER_INPUT_TRANSLATIONS_RESOURCE_NAME
The base name of the XML file that specifies the User Input langpack.
|
| Modifier and Type | Method and Description |
|---|---|
ImageIcon |
getImageIcon(String name,
String... alternatives)
Returns an
ImageIcon resource. |
InputStream |
getInputStream(String name)
Returns the stream to a resource.
|
Object |
getObject(String name)
Returns an object resource.
|
String |
getString(String name)
Returns a UTF-8 encoded resource as a string.
|
String |
getString(String name,
String defaultValue)
Returns a UTF-8 encoded resource as a string.
|
String |
getString(String name,
String encoding,
String defaultValue)
Returns a resource as a string.
|
URL |
getURL(String name)
Returns the URL to a resource.
|
static final String CUSTOM_TRANSLATIONS_RESOURCE_NAME
static final String USER_INPUT_TRANSLATIONS_RESOURCE_NAME
static final String PACK_TRANSLATIONS_RESOURCE_NAME
static final String CUSTOM_ICONS_RESOURCE_NAME
static final String DEFAULT_INSTALL_LOGGING_CONFIGURATION_RES
InputStream getInputStream(String name)
name - the resource nameResourceNotFoundException - if the resource cannot be foundURL getURL(String name)
name - the resource nameResourceNotFoundException - if the resource cannot be foundString getString(String name)
name - the resource nameResourceNotFoundException - if the resource cannot be foundResourceException - if the resource cannot be retrievedString getString(String name, String defaultValue)
name - the resource namedefaultValue - the default value, if the resource cannot be found or retrieveddefaultValue if cannot be found or retrievedString getString(String name, String encoding, String defaultValue)
name - the resource nameencoding - the resource encoding. May be nulldefaultValue - the default value, if the resource cannot be found or retrieveddefaultValue if cannot be found or retrievedObject getObject(String name) throws ResourceException, ResourceNotFoundException
name - the resource nameResourceNotFoundException - if the resource cannot be foundResourceException - if the resource cannot be retrievedImageIcon getImageIcon(String name, String... alternatives)
ImageIcon resource.name - the resource namealternatives - alternative resource names, if name is not foundImageIconResourceNotFoundException - if the resource cannot be foundCopyright © 2001–2025. All rights reserved.