public class ResourceUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.net.URL |
getResource(java.lang.Class<?> loaderClass,
java.lang.String basePath,
java.lang.String fileName) |
static java.net.URL |
getResource(java.lang.ClassLoader loader,
java.lang.String basePath,
java.lang.String fileName) |
static java.io.InputStream |
getResourceAsStream(java.lang.Class<?> loaderClass,
java.lang.String basePath,
java.lang.String fileName) |
static java.io.InputStream |
getResourceAsStream(java.lang.ClassLoader loader,
java.lang.String basePath,
java.lang.String fileName) |
static java.lang.String |
loadText(java.io.InputStream in) |
static java.lang.String |
loadText(java.net.URL url) |
public static java.net.URL getResource(java.lang.Class<?> loaderClass, java.lang.String basePath, java.lang.String fileName)
public static java.io.InputStream getResourceAsStream(java.lang.Class<?> loaderClass, java.lang.String basePath, java.lang.String fileName)
public static java.io.InputStream getResourceAsStream(java.lang.ClassLoader loader, java.lang.String basePath, java.lang.String fileName)
public static java.net.URL getResource(java.lang.ClassLoader loader, java.lang.String basePath, java.lang.String fileName)
public static java.lang.String loadText(java.net.URL url) throws java.io.IOException
java.io.IOException
public static java.lang.String loadText(java.io.InputStream in) throws java.io.IOException
java.io.IOException