Class ResourceLoaderList
java.lang.Object
com.tccc.kos.commons.util.resource.ResourceLoaderList
- All Implemented Interfaces:
ResourceLoader
List of resource loaders that act as a list of search paths for finding a
specified resource.
- Since:
- 1.0
- Version:
- 2018-08-19
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToEnd
(ResourceLoader loader) Add a loader to the end of the search list.void
addToFront
(ResourceLoader loader) Add a loader to the front of the search list.getResource
(String file) Return an input stream for the specified file.
-
Constructor Details
-
ResourceLoaderList
public ResourceLoaderList()
-
-
Method Details
-
addToEnd
Add a loader to the end of the search list.- Parameters:
loader
- the loader to add to the end of the search list
-
addToFront
Add a loader to the front of the search list.- Parameters:
loader
- the loader to add to the front of the search list
-
getResource
Description copied from interface:ResourceLoader
Return an input stream for the specified file.- Specified by:
getResource
in interfaceResourceLoader
- Parameters:
file
- the file to return an input stream for- Returns:
- the input stream or null
-