public interface ZipFileResource extends FileResource<ZipFileResource>
| Modifier and Type | Method and Description |
|---|---|
ZipFileResource |
add(FileResource<?>... resources)
Add the specified resources to this Zip file
|
ZipFileResource |
add(String name,
Resource<?> resource)
Add the specified
Resource to this Zip file with the given name |
void |
extractTo(DirectoryResource directoryResource)
Unzip all files to the specified
DirectoryResource. |
boolean |
isEncrypted() |
ZipFileResource |
setPassword(char[] password)
Sets the password for this
ZipFileResource |
createNewFile, createTempResource, deleteOnExit, getLastModified, getParent, getSize, isDirectory, isExecutable, isReadable, isStale, isWritable, mkdir, mkdirs, monitor, monitor, moveTo, refresh, renameTo, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setWritable, setWritablegetResourceOutputStream, getResourceOutputStream, setContents, setContents, setContents, setContents, setContentscreateFrom, delete, delete, exists, getChild, getContents, getContents, getFullyQualifiedName, getName, getResourceFactory, getResourceInputStream, getUnderlyingResourceObject, listResources, listResources, reify, resolveChildrengetFacet, getFacetAsOptional, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet, supportsvoid extractTo(DirectoryResource directoryResource)
DirectoryResource.directoryResource - the target directoryZipFileResource add(FileResource<?>... resources)
resources - the FileResource instances to be addedZipFileResource instance, for method chainingZipFileResource add(String name, Resource<?> resource)
Resource to this Zip file with the given namename - the file name inside the Zipresource - the Resource instance to be addedZipFileResource instance, for method chainingZipFileResource setPassword(char[] password)
ZipFileResourcepassword - the password to be used when reading this fileZipFileResource instance, for method chainingboolean isEncrypted()
Copyright © 2016 JBoss by Red Hat. All rights reserved.