Package org.ldaptive.io
Interface ResourceLoader
-
- All Known Implementing Classes:
ClasspathResourceLoader
,FileResourceLoader
,URLResourceLoader
public interface ResourceLoader
Creates anInputStream
from a string URI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
load(String path)
Reads an input stream from a path.boolean
supports(String path)
Returns whether the supplied path can be loaded by this resource loader.
-
-
-
Method Detail
-
supports
boolean supports(String path)
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
InputStream load(String path) throws IOException
Reads an input stream from a path.- Parameters:
path
- from which to read resource.- Returns:
- input stream.
- Throws:
IOException
- On IO errors.
-
-