Interface ResourceLoader
-
- All Known Subinterfaces:
CockpitResourceLoader
- All Known Implementing Classes:
AbstractCockpitResourceReader,DefaultCockpitResourceLoader,DefaultWidgetResourceReader,StaticContentByRegexResourceLoader,WidgetClasspathResourceReader,WidgetJarResourceReader
public interface ResourceLoaderResponsible for returning resources.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStreamgetResourceAsStream(java.lang.String path)Returns resource identified by path asInputStreamornullif resource does not exist.booleanhasResource(java.lang.String path)Checks whether this loader can load resource identified by path.
-
-
-
Method Detail
-
hasResource
boolean hasResource(java.lang.String path)
Checks whether this loader can load resource identified by path.- Parameters:
path- the path identifying resource.- Returns:
truewhether this loader can load resource, otherwisefalse.
-
getResourceAsStream
java.io.InputStream getResourceAsStream(java.lang.String path)
Returns resource identified by path asInputStreamornullif resource does not exist.- Parameters:
path- the path identifying resource.- Returns:
- Resource as
InputStreamornull.
-
-