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, toStringcache, encode, finalize, getAlias, getAssociate, getListHTML, newResource, newResource, newSystemResource, setAssociate, writeToprotected transient JarURLConnection _jarConnection
public void release()
URLResourcerelease in class URLResourceprotected boolean checkConnection()
checkConnection in class URLResourceprotected void newConnection()
throws IOException
IOExceptionpublic boolean exists()
exists in class URLResourcepublic File getFile() throws IOException
URLResourcegetFile in class URLResourceIOExceptionpublic InputStream getInputStream() throws IOException
URLResourcegetInputStream in class URLResourceIOExceptionpublic static void extract(Resource resource, File directory, boolean deleteOnExit) throws IOException
IOExceptionpublic void extract(File directory, boolean deleteOnExit) throws IOException
IOExceptionCopyright © 2013. All rights reserved.