org.mortbay.resource
public class JarResource extends URLResource
| Modifier and Type | Field and Description |
|---|---|
protected java.net.JarURLConnection |
_jarConnection |
_connection, _in, _url, _urlString__defaultUseCaches| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkConnection() |
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
|
protected void |
newConnection() |
void |
release()
Release any resources held by the resource.
|
addPath, delete, equals, getName, getOutputStream, getURL, getUseCaches, hashCode, isDirectory, lastModified, length, list, renameTo, toStringencode, finalize, getAlias, getAssociate, getDefaultUseCaches, getListHTML, newClassPathResource, newClassPathResource, newResource, newResource, newResource, newResource, newSystemResource, setAssociate, setDefaultUseCaches, writeTopublic void release()
URLResourcerelease in class URLResourceprotected boolean checkConnection()
checkConnection in class URLResourceprotected void newConnection()
throws java.io.IOException
java.io.IOException - Sub-classes of JarResource may throw an IOException (or subclass)public boolean exists()
exists in class URLResourcepublic java.io.File getFile()
throws java.io.IOException
URLResourcegetFile in class URLResourcejava.io.IOExceptionpublic java.io.InputStream getInputStream()
throws java.io.IOException
URLResourcegetInputStream in class URLResourcejava.io.IOExceptionpublic static void extract(Resource resource, java.io.File directory, boolean deleteOnExit) throws java.io.IOException
java.io.IOExceptionpublic void extract(java.io.File directory,
boolean deleteOnExit)
throws java.io.IOException
java.io.IOExceptionCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.