Package org.ldaptive.io
Interface ResourceLoader
-
- All Known Implementing Classes:
ClasspathResourceLoader,FileResourceLoader,URLResourceLoader
public interface ResourceLoaderCreates anInputStreamfrom a string URI.- Author:
- Middleware Services
-
-
Method Summary
All Methods Instance Methods Abstract 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
boolean supports(java.lang.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
java.io.InputStream load(java.lang.String path) throws java.io.IOExceptionReads an input stream from a path.- Parameters:
path- from which to read resource.- Returns:
- input stream.
- Throws:
java.io.IOException- On IO errors.
-
-