java.lang.Object
com.github.rvesse.airline.parser.resources.ModulePathLocator
All Implemented Interfaces:
ResourceLocator

public class ModulePathLocator extends Object implements ResourceLocator
  • Constructor Details

    • ModulePathLocator

      public ModulePathLocator()
  • Method Details

    • open

      public InputStream open(String searchLocation, String filename) throws IOException
      Description copied from interface: ResourceLocator
      Opens a search location, potentially applying some resolution rules to that location

      If the given resourceName exists in the search location then that resource should be returned. If that is not a valid resource but the search location itself is a valid resource then the locator should return that instead.

      Specified by:
      open in interface ResourceLocator
      Parameters:
      searchLocation - Search location
      filename - Resource name expected in the search location
      Returns:
      Input stream to read the search location or null if not a valid location
      Throws:
      IOException - Thrown if there is a problem accessing the search location