| org.zkoss.util.resource.Locator
All known Subclasses: org.zkoss.util.resource.ClassLocator, org.zkoss.web.util.resource.ServletContextLocator,
Locator | public interface Locator (Code) | | A locator that is able to locate a resource.
author: tomyeh See Also: Locators.getDefault |
getDirectory | public String getDirectory()(Code) | | Returns the directory used to resolve the relative path, or null
if relative path is not allowed.
Note: if the returned directory is not null, it must end with '/'.
|
getResource | public URL getResource(String name)(Code) | | Finds the resource with the given name. A resource is some data
(images, audio, text, etc) that can be accessed by class code in
a way that is independent of the location of the code.
a URL for reading the resource, or null if the resourcecould not be found or the caller doesn't have adequate privilegesto get the resource |
getResourceAsStream | public InputStream getResourceAsStream(String name)(Code) | | Returns an input stream for reading the specified resource.
an input stream for reading the resource, or null if theresource could not be found or the caller doesn't have adequateprivileges to get the resource |
|
|