Package org.ldaptive.io
Interface ResourceLoader
- All Known Implementing Classes:
ClasspathResourceLoader
,FileResourceLoader
,URLResourceLoader
public interface ResourceLoader
Creates an
InputStream
from a string URI.-
Method Summary
Modifier and TypeMethodDescriptionReads an input stream from a path.boolean
Returns whether the supplied path can be loaded by this resource loader.
-
Method Details
-
supports
Returns whether the supplied path can be loaded by this resource loader.- Parameters:
path
- to check- Returns:
- whether the supplied path can be loaded by this resource loader
-
load
Reads an input stream from a path.- Parameters:
path
- from which to read resource.- Returns:
- input stream.
- Throws:
IOException
- On IO errors.
-