public class ResourceFinder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
environmentPathVariable |
static String |
relativePath |
| Constructor and Description |
|---|
ResourceFinder() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
getContainerHome() |
protected static String |
getEnvironmentPath() |
static File |
getFile(String path) |
static File[] |
getFiles(List<String> paths) |
static InputStream |
getInputStream(String path) |
static InputStream[] |
getInputStreams(List<String> paths) |
protected static String |
getRelativePath() |
static org.springframework.core.io.Resource |
getResource(String path)
Resolve a path into a resource relative to environmental defaults or relative paths or the classloader
|
static org.springframework.core.io.Resource[] |
getResources(List<String> paths)
Resolves a list of paths into resources relative to environmental defaults or relative paths or the classloader
|
public static String relativePath
public static String environmentPathVariable
public static org.springframework.core.io.Resource[] getResources(List<String> paths)
paths - a list of paths to resources (org/sakaiproject/mystuff/Thing.xml)public static InputStream[] getInputStreams(List<String> paths)
public static org.springframework.core.io.Resource getResource(String path)
path - a path to a resource (org/sakaiproject/mystuff/Thing.xml)public static InputStream getInputStream(String path)
protected static String getRelativePath()
protected static String getEnvironmentPath()
protected static String getContainerHome()
Copyright © 2007–2018 CARET, University of Cambridge. All rights reserved.