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