|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mortbay.util.Resource | +--org.mortbay.util.URLResource | +--org.mortbay.util.JarResource
Method Summary | |
boolean |
exists()
Returns true if the respresenetd resource exists. |
void |
extract(java.io.File directory,
boolean deleteOnExit)
|
static void |
extract(Resource resource,
java.io.File directory,
boolean deleteOnExit)
|
java.io.File |
getFile()
Returns an File representing the given resource or NULL if this is not possible. |
java.io.InputStream |
getInputStream()
Returns an input stream to the resource |
void |
release()
Release any resources held by the resource. |
Methods inherited from class org.mortbay.util.URLResource |
addPath, delete, equals, getName, getOutputStream, getURL, hashCode, isDirectory, lastModified, length, list, renameTo, toString |
Methods inherited from class org.mortbay.util.Resource |
cache, encode, getAlias, getAssociate, getListHTML, newResource, newResource, newSystemResource, setAssociate, writeTo |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public void release()
URLResource
release
in class URLResource
public boolean exists()
exists
in class URLResource
public java.io.File getFile() throws java.io.IOException
URLResource
getFile
in class URLResource
java.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
URLResource
getInputStream
in class URLResource
java.io.IOException
public static void extract(Resource resource, java.io.File directory, boolean deleteOnExit) throws java.io.IOException
java.io.IOException
public void extract(java.io.File directory, boolean deleteOnExit) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |