Klasse InputStreamLocator

java.lang.Object
org.apache.fulcrum.yaafi.framework.util.InputStreamLocator

public class InputStreamLocator extends Object
Helper for locating a file name and returning an input stream.
Autor:
Siegfried Goeschl
  • Konstruktordetails

    • InputStreamLocator

      public InputStreamLocator()
      Constructor
    • InputStreamLocator

      public InputStreamLocator(File rootDir)
      Constructor
      Parameter:
      rootDir - the root directory to start the search
    • InputStreamLocator

      public InputStreamLocator(File rootDir, org.apache.avalon.framework.logger.Logger logger)
      Constructor
      Parameter:
      rootDir - the root directory to start the search
      logger - the logger to be used
  • Methodendetails

    • locate

      public InputStream locate(String location) throws IOException
      Locate the file with the given position using the following steps
      Parameter:
      location - the location of the source to be loaded
      Gibt zurück:
      input stream of the source
      Löst aus:
      IOException - if source is not found
    • getRootDir

      protected File getRootDir()
      Gibt zurück:
      Returns the rootDir.