public class JarFileResource extends JarResource
__defaultUseCaches| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release any resources held by the resource.
|
boolean |
exists()
Returns true if the represented resource exists.
|
File |
getJarFile() |
static Resource |
getNonCachingResource(Resource resource)
Take a Resource that possibly might use URLConnection caching
and turn it into one that doesn't.
|
boolean |
isContainedIn(Resource resource)
Check if this jar:file: resource is contained in the
named resource.
|
boolean |
isDirectory()
Returns true if the represented resource is a container/directory.
|
long |
lastModified()
Returns the last modified time
|
long |
length()
Return the length of the resource
|
String[] |
list()
Returns a list of resource names contained in the given resource
|
copyTo, getFile, getInputStream, newJarResourceaddPath, delete, equals, getName, getReadableByteChannel, getURL, getUseCaches, hashCode, renameTo, toStringencode, getAlias, getAllResources, getAssociate, getDefaultUseCaches, getListHTML, getListHTML, getResource, getURI, getWeakETag, getWeakETag, isAlias, isContainedIn, newClassPathResource, newClassPathResource, newResource, newResource, newResource, newResource, newResource, newResource, newSystemResource, release, setAssociate, setDefaultUseCaches, toURL, writeTopublic void close()
URLResourceclose in interface Closeableclose in interface AutoCloseableclose in class JarResourcepublic boolean exists()
exists in class JarResourcepublic boolean isDirectory()
isDirectory in class URLResourcepublic long lastModified()
lastModified in class URLResourcepublic String[] list()
URLResourcelist in class URLResourcepublic long length()
length in class URLResourcepublic static Resource getNonCachingResource(Resource resource)
resource - the JarFileResource to obtain without URLConnection caching.public boolean isContainedIn(Resource resource) throws MalformedURLException
jar:file:///a/b/c/foo.jar!/x.html isContainedIn file:///a/b/c/foo.jarisContainedIn in class URLResourceresource - the resource to test forMalformedURLException - if unable to process is contained due to invalid URL formatpublic File getJarFile()
Copyright © 2010 - 2020 Adobe. All Rights Reserved