public interface ResourceHandler
Strings. Responsibility for closing of all resources acquired from this
interface rests with the caller.| Modifier and Type | Method and Description |
|---|---|
InputStream |
getResourceAsInputStream(String path)
Returns the resource input stream for the provided path.
|
OutputStream |
getResourceAsOutputStream(String path)
Returns the resource output stream for the provided path.
|
Reader |
getResourceAsReader(String path)
Returns the reader for the provided path.
|
Writer |
getResourceAsWriter(String path)
Returns the writer for the provided path.
|
String |
getResourcePath(String cssFilePath,
String cssRelativePath)
Builds a resource path relative to a CSS file resource path.
|
InputStream getResourceAsInputStream(String path) throws IOException
path - the resource pathnull if the resource could not be
opened.IOExceptionReader getResourceAsReader(String path) throws IOException
path - the resource pathnull if the resource could not be opened.IOExceptionOutputStream getResourceAsOutputStream(String path) throws IOException
path - the resource pathnull if the resource could not be
opened.IOExceptionWriter getResourceAsWriter(String path) throws IOException
path - the resource pathnull if the resource could not be opened.IOExceptionString getResourcePath(String cssFilePath, String cssRelativePath)
cssFilePath - the CSS file path (base)cssRelativePath - the relative path to be resolved against the cssFilePath. If
the resource path starts with the '/' character, it is an absolute
resource and should be resolved against the
SmartSpritesParameters.getDocumentRootDir() path instead. All
other resource paths should be assumed to be relative to the
cssFilePath.Copyright © 2013 Carrot Search s.c.. All Rights Reserved.