Class ResourceLoaderList

java.lang.Object
com.tccc.kos.commons.util.resource.ResourceLoaderList
All Implemented Interfaces:
ResourceLoader

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

    • ResourceLoaderList

      public ResourceLoaderList()
  • Method Details

    • addToEnd

      public void addToEnd(ResourceLoader loader)
      Add a loader to the end of the search list.
      Parameters:
      loader - the loader to add to the end of the search list
    • addToFront

      public void addToFront(ResourceLoader loader)
      Add a loader to the front of the search list.
      Parameters:
      loader - the loader to add to the front of the search list
    • 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