public class Resources extends Object
Modifier and Type | Field and Description |
---|---|
private static ResourceBundle |
IMAGEPATHS_BUNDLE |
private static ClassLoader |
loader |
private static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
Resources() |
Modifier and Type | Method and Description |
---|---|
private static URL |
fetchURLfor(String resName)
Fetches the relative URL from a specified resource.
|
static URL |
getImageURL(String key)
This method fetches a String Object from a given String
key in a specific resource file
addressed by ResourceBundle IMAGEPATHS_BUNDLE . |
private static String |
getString(String key,
ResourceBundle rb)
This method fetches a String Object from a given String
key in a specific resource file
addressed by ResourceBundle rb . |
private static final org.apache.log4j.Logger logger
private static final ClassLoader loader
private static final ResourceBundle IMAGEPATHS_BUNDLE
private static URL fetchURLfor(String resName)
resName
- Exception
private static String getString(String key, ResourceBundle rb)
key
in a specific resource file
addressed by ResourceBundle rb
. It returns '!key!' if the required value is not found
for the key.key
- rb
- key
+'!'.public static URL getImageURL(String key)
key
in a specific resource file
addressed by ResourceBundle IMAGEPATHS_BUNDLE
. It returns '!key!' if the required value is not found
for the key.key
- Copyright © 2009–2016 Helmut Ahammer, Philipp Kainz. All rights reserved.