org.riotfamily.common.util
Class ResourceUtils
java.lang.Object
org.riotfamily.common.util.ResourceUtils
public final class ResourceUtils
- extends Object
Provides utility method to work with classpath resources.
- Author:
- Felix Gnass [fgnass at neteye dot de]
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getPath
public static String getPath(Object object,
String name)
getPath
public static String getPath(Class<?> clazz,
String name)
readResource
public static String readResource(Resource resource,
String encoding)
throws UnsupportedEncodingException,
IOException
- Throws:
UnsupportedEncodingException
IOException