de.lessvoid.nifty.tools.resourceloader
Interface ResourceLocation

All Known Implementing Classes:
ClasspathLocation, FileSystemLocation

public interface ResourceLocation

A location from which resources can be loaded

Author:
kevin

Method Summary
 URL getResource(String ref)
          Get a resource as a URL
 InputStream getResourceAsStream(String ref)
          Get a resource as an input stream
 

Method Detail

getResourceAsStream

InputStream getResourceAsStream(String ref)
Get a resource as an input stream

Parameters:
ref - The reference to the resource to retrieve
Returns:
A stream from which the resource can be read or null if the resource can't be found in this location

getResource

URL getResource(String ref)
Get a resource as a URL

Parameters:
ref - The reference to the resource to retrieve
Returns:
A stream from which the resource can be read


Copyright © 2012. All Rights Reserved.