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)
ResourceLocation
getResource
in interface ResourceLocation
ref
- The reference to the resource to retrieveResourceLocation.getResource(String)
public InputStream getResourceAsStream(String ref)
ResourceLocation
getResourceAsStream
in interface ResourceLocation
ref
- The reference to the resource to retrieveResourceLocation.getResourceAsStream(String)
Copyright © 2013. All Rights Reserved.