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() |
void |
copyTo(java.io.File directory) |
boolean |
exists()
Returns true if the respresenetd resource exists.
|
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() |
static Resource |
newJarResource(Resource resource) |
void |
release()
Release any resources held by the resource.
|
addPath, delete, equals, getName, getOutputStream, getURL, getUseCaches, hashCode, isContainedIn, isDirectory, lastModified, length, list, renameTo, toString
encode, finalize, getAlias, getAssociate, getDefaultUseCaches, getListHTML, getResource, getURI, isContainedIn, newClassPathResource, newClassPathResource, newResource, newResource, newResource, newResource, newResource, newSystemResource, setAssociate, setDefaultUseCaches, toURL, writeTo
public void release()
URLResource
release
in class URLResource
protected boolean checkConnection()
checkConnection
in class URLResource
protected 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 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 void copyTo(java.io.File directory) throws java.io.IOException
Copyright © 2013. All Rights Reserved.