Package biz.onixs.util.url
Interface ResourceLoader
-
- All Known Implementing Classes:
AbsolutePathResourceLoader,AbstractResourceLoader,ChainedResourceLoader,ClassPathResourceLoader,DirResourceLoader,NullResourceLoader
public interface ResourceLoaderResource loader.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamgetResource(String name)Returns input stream for the resource specified by the name.booleanisAvailable(String name)Returns whether the resource specified by the name is available.
-
-
-
Method Detail
-
getResource
InputStream getResource(String name)
Returns input stream for the resource specified by the name. The user is responsible for closing the returned stream.- Parameters:
name- resource name- Returns:
- resource input stream
-
isAvailable
boolean isAvailable(String name)
Returns whether the resource specified by the name is available.- Parameters:
name- resource name- Returns:
- resource availability
-
-