org.jboss.jsfunit.analysis.util
Class ResourceUtils

java.lang.Object
  extended by org.jboss.jsfunit.analysis.util.ResourceUtils

public class ResourceUtils
extends Object

Collect methods that deal with resources.

Since:
1.0
Author:
Dennis Byrne

Constructor Summary
ResourceUtils()
           
 
Method Summary
 String getAsString(InputStream stream, String resourceName)
           
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceUtils

public ResourceUtils()
Method Detail

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.