public class FileSystemLocation extends java.lang.Object implements ResourceLocation
| Constructor and Description |
|---|
FileSystemLocation(java.io.File root)
Create a new resoruce location based on the file system
|
| Modifier and Type | Method and Description |
|---|---|
java.net.URL |
getResource(java.lang.String ref)
Get a resource as a URL
|
java.io.InputStream |
getResourceAsStream(java.lang.String ref)
Get a resource as an input stream
|
public FileSystemLocation(java.io.File root)
root - The root of the file system to searchpublic java.net.URL getResource(java.lang.String ref)
ResourceLocationgetResource in interface ResourceLocationref - The reference to the resource to retrieveResourceLocation.getResource(String)public java.io.InputStream getResourceAsStream(java.lang.String ref)
ResourceLocationgetResourceAsStream in interface ResourceLocationref - The reference to the resource to retrieveResourceLocation.getResourceAsStream(String)