public class JarResource extends URLResource
__defaultUseCaches| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release any resources held by the resource.
|
void |
copyTo(File directory)
Copy the Resource to the new destination file.
|
boolean |
exists()
Returns true if the represented resource exists.
|
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.
|
static Resource |
newJarResource(Resource resource) |
addPath, delete, equals, getName, getReadableByteChannel, getURL, getUseCaches, hashCode, isContainedIn, isDirectory, lastModified, length, list, 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 URLResourcepublic boolean exists()
exists in class URLResourcepublic File getFile() throws IOException
URLResourcegetFile in class URLResourceIOException - if unable to get the resource due to permissionspublic InputStream getInputStream() throws IOException
URLResourcegetInputStream in class URLResourceIOException - if unable to open the input streampublic void copyTo(File directory) throws IOException
ResourceWill not replace existing destination file.
copyTo in class Resourcedirectory - the destination file to createIOException - if unable to copy the resourcepublic static Resource newJarResource(Resource resource) throws IOException
IOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved