Package org.ldaptive.io
Class FileResourceLoader
- java.lang.Object
-
- org.ldaptive.io.FileResourceLoader
-
- All Implemented Interfaces:
ResourceLoader
public class FileResourceLoader extends java.lang.Object implements ResourceLoader
Creates anInputStreamfrom a string that is prefixed with 'file:'. SeeFileInputStream(File).- Author:
- Middleware Services
-
-
Constructor Summary
Constructors Constructor Description FileResourceLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamload(java.lang.String path)Reads an input stream from a path.booleansupports(java.lang.String path)Returns whether the supplied path can be loaded by this resource loader.
-
-
-
Method Detail
-
supports
public boolean supports(java.lang.String path)
Description copied from interface:ResourceLoaderReturns whether the supplied path can be loaded by this resource loader.- Specified by:
supportsin interfaceResourceLoader- Parameters:
path- to check- Returns:
- whether the supplied path can be loaded by this resource loader
-
load
public java.io.InputStream load(java.lang.String path) throws java.io.IOExceptionDescription copied from interface:ResourceLoaderReads an input stream from a path.- Specified by:
loadin interfaceResourceLoader- Parameters:
path- from which to read resource.- Returns:
- input stream.
- Throws:
java.io.IOException- On IO errors.
-
-