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 TypeMethodDescriptionvoidaddToEnd(ResourceLoader loader) Add a loader to the end of the search list.voidaddToFront(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:ResourceLoaderReturn an input stream for the specified file.- Specified by:
getResourcein interfaceResourceLoader- Parameters:
file- the file to return an input stream for- Returns:
- the input stream or null
-