org.mortbay.util
public class CachedResource extends Resource
Version: $Id: CachedResource.java,v 1.6 2004/05/09 20:32:49 gregwilkins Exp $
| Method Summary | |
|---|---|
| Resource | addPath(String path)
Returns the resource contained inside the current resource with the
given name |
| void | clear() |
| boolean | delete()
Deletes the given resource |
| boolean | equals(Object o) |
| boolean | exists()
Returns true if the respresened resource exists. |
| byte[] | getCachedData() |
| File | getFile() |
| InputStream | getInputStream()
Returns an input stream to the resource |
| String | getName()
Returns the name of the resource |
| OutputStream | getOutputStream()
Returns an output stream to the resource |
| URL | getURL() |
| int | hashCode() |
| boolean | isDirectory() |
| boolean | isUptoDate() |
| long | lastModified() |
| long | length() |
| String[] | list()
Returns a list of resource names contained in the given resource |
| void | release() Release any resources held by the resource. |
| boolean | renameTo(Resource dest)
Rename the given resource |
| void | setCachedData(byte[] buf) |
| String | toString() |
| boolean | update() |
| void | writeTo(OutputStream os, long startByte, long count) |