net.sf.pipet.api
Interface ResourceLoader

All Known Subinterfaces:
ModuleData

public interface ResourceLoader


Method Summary
 InputStream getResource(String spec)
          Returns an input stream for a given resource location.
 URL getResourceURL(String spec)
          Returns a URL for a given resource location.
 

Method Detail

getResource

InputStream getResource(String spec)
                        throws IOException
Returns an input stream for a given resource location.

Parameters:
spec - specification of a resource location.
Returns:
an input stream object, or null if the specified resource was not found.
Throws:
IOException - if an error occurs.

getResourceURL

URL getResourceURL(String spec)
                   throws IOException
Returns a URL for a given resource location.

Parameters:
spec - specification of a resource location.
Returns:
a URL object, or null if the specified resource could not be mapped to a URL.
Throws:
IOException - if an error occurs.


Copyright © 2012 VU University Amsterdam. All Rights Reserved.