Package com.kosdev.kos.commons.kab.util
Class KabResourceLoader
java.lang.Object
com.kosdev.kos.commons.kab.util.KabResourceLoader
- All Implemented Interfaces:
ResourceLoader
Implementation of
ResourceLoader that operates on a KabFile.
This allows the contents of a KAB to be accessed via the ResourceLoader
interface.- Since:
- 9
- Version:
- 9
-
Constructor Summary
ConstructorsConstructorDescriptionKabResourceLoader(KabFile kab) Create aResourceLoaderthat searches the contents of the specified KAB. -
Method Summary
Modifier and TypeMethodDescriptiongetResource(String file) Return an input stream for the specified file.
-
Constructor Details
-
KabResourceLoader
Create aResourceLoaderthat searches the contents of the specified KAB.- Parameters:
kab- the kab to search- Since:
- 9
-
-
Method Details
-
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
-