public class ResourceUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getBytes(Class<?> contextClass,
String resourceName) |
static byte[] |
getBytes(String resourceName) |
static File |
getFile(Class<?> contextClass,
String resourceName) |
static File |
getFile(String resourceName) |
static String |
getString(Class<?> contextClass,
String resourceName) |
static String |
getString(Class<?> contextClass,
String resourceName,
Charset charset) |
static String |
getString(String resourceName) |
public static String getString(String resourceName) throws IOException
IOExceptionpublic static String getString(Class<?> contextClass, String resourceName) throws IOException
IOExceptionpublic static String getString(Class<?> contextClass, String resourceName, Charset charset) throws IOException
IOExceptionpublic static byte[] getBytes(String resourceName) throws IOException
IOExceptionpublic static byte[] getBytes(Class<?> contextClass, String resourceName) throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.