Class FileResourceLoader

java.lang.Object
org.ldaptive.io.FileResourceLoader
All Implemented Interfaces:
ResourceLoader

public class FileResourceLoader extends Object implements ResourceLoader
Creates an InputStream from a string that is prefixed with 'file:'. See FileInputStream(File).
  • Field Details

  • Constructor Details

    • FileResourceLoader

      public FileResourceLoader()
  • Method Details

    • supports

      public boolean supports(String path)
      Description copied from interface: ResourceLoader
      Returns whether the supplied path can be loaded by this resource loader.
      Specified by:
      supports in interface ResourceLoader
      Parameters:
      path - to check
      Returns:
      whether the supplied path can be loaded by this resource loader
    • load

      public InputStream load(String path) throws IOException
      Description copied from interface: ResourceLoader
      Reads an input stream from a path.
      Specified by:
      load in interface ResourceLoader
      Parameters:
      path - from which to read resource.
      Returns:
      input stream.
      Throws:
      IOException - On IO errors.