Package org.ldaptive.io
Class FileResourceLoader
java.lang.Object
org.ldaptive.io.FileResourceLoader
- All Implemented Interfaces:
ResourceLoader
Creates an
InputStream
from a string that is prefixed with 'file:'. See FileInputStream(File)
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReads an input stream from a path.boolean
Returns whether the supplied path can be loaded by this resource loader.
-
Field Details
-
PREFIX
Prefix used to indicate a file resource.- See Also:
-
-
Constructor Details
-
FileResourceLoader
public FileResourceLoader()
-
-
Method Details
-
supports
Description copied from interface:ResourceLoader
Returns whether the supplied path can be loaded by this resource loader.- Specified by:
supports
in interfaceResourceLoader
- Parameters:
path
- to check- Returns:
- whether the supplied path can be loaded by this resource loader
-
load
Description copied from interface:ResourceLoader
Reads an input stream from a path.- Specified by:
load
in interfaceResourceLoader
- Parameters:
path
- from which to read resource.- Returns:
- input stream.
- Throws:
IOException
- On IO errors.
-