public abstract class ResourceManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_LOCALE |
static String |
RESOURCE_CLASS_ROOT |
static String |
RESOURCE_ROOT |
static StreamIO.InputStreamProvider |
STREAM_PROVIDER |
Constructor and Description |
---|
ResourceManager() |
Modifier and Type | Method and Description |
---|---|
static ResourceBundle |
getBundle(String name,
Locale locale) |
static ImageIcon |
getImageIcon(String name) |
static URL |
getResource(String name) |
static ExtendedByteArrayInputStream |
getResourceAsByteArray(String name) |
static InputStream |
getResourceAsStream(String name) |
static byte[] |
getResourceBytes(String name) |
static String |
getResourceText(String name,
boolean useCRLF) |
public static final String RESOURCE_ROOT
public static final String RESOURCE_CLASS_ROOT
public static final StreamIO.InputStreamProvider STREAM_PROVIDER
public static final String DEFAULT_LOCALE
public static InputStream getResourceAsStream(String name) throws Exception
Exception
public static byte[] getResourceBytes(String name) throws Exception
Exception
public static ExtendedByteArrayInputStream getResourceAsByteArray(String name) throws Exception
Exception
public static String getResourceText(String name, boolean useCRLF) throws Exception
Exception
public static ResourceBundle getBundle(String name, Locale locale) throws Exception
Exception
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.