public class JarResource extends URLResource
Modifier and Type | Field and Description |
---|---|
protected JarURLConnection |
_jarConnection |
_connection, _in, _url, _urlString
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkConnection() |
boolean |
exists()
Returns true if the respresenetd resource exists.
|
void |
extract(File directory,
boolean deleteOnExit) |
static void |
extract(Resource resource,
File directory,
boolean deleteOnExit) |
File |
getFile()
Returns an File representing the given resource or NULL if this
is not possible.
|
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, hashCode, isDirectory, lastModified, length, list, renameTo, toString
cache, encode, finalize, getAlias, getAssociate, getListHTML, newResource, newResource, newSystemResource, setAssociate, writeTo
protected transient JarURLConnection _jarConnection
public void release()
URLResource
release
in class URLResource
protected boolean checkConnection()
checkConnection
in class URLResource
protected void newConnection() throws IOException
IOException
public boolean exists()
exists
in class URLResource
public File getFile() throws IOException
URLResource
getFile
in class URLResource
IOException
public InputStream getInputStream() throws IOException
URLResource
getInputStream
in class URLResource
IOException
public static void extract(Resource resource, File directory, boolean deleteOnExit) throws IOException
IOException
public void extract(File directory, boolean deleteOnExit) throws IOException
IOException
Copyright © 2013. All rights reserved.