| Modifier and Type | Method and Description |
|---|---|
static java.util.List<Path> |
listContents(VfsFile zipFile)
Lists the contents of a zip archive.
|
static void |
pack(java.io.OutputStream output,
java.lang.Iterable<VfsNode> nodes)
Archives to the given stream in the zip format.
|
static void |
pack(VfsFile zipFile,
java.lang.Iterable<VfsNode> nodes)
Creates a new zip archive.
|
static void |
pack(VfsFile zipFile,
VfsNode... nodes)
Creates a new zip archive.
|
static void |
unpack(VfsFile zipFile)
Unpacks the given zip file to the current installation directory.
|
static void |
unpack(VfsFile zipFile,
VfsDirectory destinationDir)
Unpacks a zip archive to the given root directory.
|
static void |
unpack(VfsFile zipFile,
VfsDirectory destinationDir,
int discardDepth)
Unpacks a zip archive to the given root directory, but discards the given
amount of directory depth from the top.
|
public static void pack(VfsFile zipFile, VfsNode... nodes) throws java.io.IOException
java.io.IOExceptionpublic static void pack(VfsFile zipFile, java.lang.Iterable<VfsNode> nodes) throws java.io.IOException
java.io.IOExceptionpublic static void pack(java.io.OutputStream output,
java.lang.Iterable<VfsNode> nodes)
throws java.io.IOException
java.io.IOExceptionpublic static void unpack(VfsFile zipFile) throws java.io.IOException
zipFile - file to unpackjava.io.IOException - if unpacking failspublic static void unpack(VfsFile zipFile, VfsDirectory destinationDir) throws java.io.IOException
java.io.IOExceptionpublic static void unpack(VfsFile zipFile, VfsDirectory destinationDir, int discardDepth) throws java.io.IOException
java.io.IOException