org.riotfamily.common.util
Class ResourceUtils

java.lang.Object
  extended by 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]

Method Summary
static String getPath(Class<?> clazz, String name)
           
static String getPath(Object object, String name)
           
static String readResource(Resource resource, String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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