org.mortbay.resource
Class JarResource
java.lang.Object
org.mortbay.resource.Resource
org.mortbay.resource.URLResource
org.mortbay.resource.JarResource
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- JarFileResource
public class JarResource
- extends URLResource
- See Also:
- Serialized Form
Methods inherited from class org.mortbay.resource.URLResource |
addPath, delete, equals, getName, getOutputStream, getURL, hashCode, isDirectory, lastModified, length, list, renameTo, toString |
_jarConnection
protected transient JarURLConnection _jarConnection
JarResource
JarResource(URL url)
release
public void release()
- Description copied from class:
URLResource
- Release any resources held by the resource.
- Overrides:
release
in class URLResource
checkConnection
protected boolean checkConnection()
- Overrides:
checkConnection
in class URLResource
newConnection
protected void newConnection()
throws IOException
- Throws:
IOException
exists
public boolean exists()
- Returns true if the respresenetd resource exists.
- Overrides:
exists
in class URLResource
getFile
public File getFile()
throws IOException
- Description copied from class:
URLResource
- Returns an File representing the given resource or NULL if this
is not possible.
- Overrides:
getFile
in class URLResource
- Throws:
IOException
getInputStream
public InputStream getInputStream()
throws IOException
- Description copied from class:
URLResource
- Returns an input stream to the resource
- Overrides:
getInputStream
in class URLResource
- Throws:
IOException
extract
public static void extract(Resource resource,
File directory,
boolean deleteOnExit)
throws IOException
- Throws:
IOException
extract
public void extract(File directory,
boolean deleteOnExit)
throws IOException
- Throws:
IOException