|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.nifty.tools.resourceloader.FileSystemLocation
public class FileSystemLocation
A resource loading location that searches somewhere on the classpath
Constructor Summary | |
---|---|
FileSystemLocation(File root)
Create a new resoruce location based on the file system |
Method Summary | |
---|---|
URL |
getResource(String ref)
Get a resource as a URL |
InputStream |
getResourceAsStream(String ref)
Get a resource as an input stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileSystemLocation(File root)
root
- The root of the file system to searchMethod Detail |
---|
public URL getResource(String ref)
ResourceLocation
getResource
in interface ResourceLocation
ref
- The reference to the resource to retrieve
ResourceLocation.getResource(String)
public InputStream getResourceAsStream(String ref)
ResourceLocation
getResourceAsStream
in interface ResourceLocation
ref
- The reference to the resource to retrieve
ResourceLocation.getResourceAsStream(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |