Class KabResourceLoader

java.lang.Object
com.kosdev.kos.commons.kab.util.KabResourceLoader
All Implemented Interfaces:
ResourceLoader

public class KabResourceLoader extends Object implements 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 Details

    • KabResourceLoader

      public KabResourceLoader(KabFile kab)
      Create a ResourceLoader that searches the contents of the specified KAB.
      Parameters:
      kab - the kab to search
      Since:
      9
  • Method Details

    • getResource

      public InputStream getResource(String file)
      Description copied from interface: ResourceLoader
      Return an input stream for the specified file.
      Specified by:
      getResource in interface ResourceLoader
      Parameters:
      file - the file to return an input stream for
      Returns:
      the input stream or null