org.jboss.jsfunit.analysis.util
Class ResourceUtils
java.lang.Object
org.jboss.jsfunit.analysis.util.ResourceUtils
public class ResourceUtils
- extends Object
Collect methods that deal with resources.
- Since:
- 1.0
- Author:
- Dennis Byrne
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceUtils
public ResourceUtils()
getClassPathResourcesAsStreams
public static List<InputStream> getClassPathResourcesAsStreams(String relativeResourceName)
- Search resources within the classpath that match the given name, create input streams
from the found resources and return them as a list.
- Parameters:
relativeResourceName
- resource name relative to the root elements of the classpath
(usually the jar-files root element, or the folder specified in the classpath)
- Returns:
- a List of input streams matching the resource name
getAsString
public String getAsString(InputStream stream,
String resourceName)
Copyright © 2007-2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.