Package com.jk.core.resources
Interface JKResourceLoader
- All Known Implementing Classes:
JKDefaultResourceLoader,JKServletResourceLoader
public interface JKResourceLoader
This interface provides methods for loading resources and obtaining their
InputStream or URL.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Method Summary
Modifier and TypeMethodDescriptiongetResourceAsStream(String resourceName) This method retrieve an InputStream for reading the specified resource.getResourceUrl(String fileName) This method retrieve a URL pointing to the location of the specified file resource.
-
Method Details
-
getResourceAsStream
This method retrieve an InputStream for reading the specified resource.- Parameters:
resourceName- Specifies the name of the resource to be retrieved.- Returns:
- an
InputStreamfor reading the resource, or null if the resource is not found.
-
getResourceUrl
This method retrieve a URL pointing to the location of the specified file resource.- Parameters:
fileName- Specifies the name of the file resource to be located.- Returns:
- a URL representing the location of the resource, or null if the resource is not found.
-