public final class Zip extends Progress
| Modifier and Type | Method and Description |
|---|---|
protected double |
prog()
Returns a progress value (0 - 1).
|
byte[] |
read(java.lang.String path)
Returns the contents of a zip file entry.
|
void |
unzip(IOFile target)
Unzips the archive to the specified directory.
|
void |
zip(IOFile source,
java.util.regex.Pattern pattern)
Zips the specified directory.
|
public Zip(IO file)
file - archive filepublic byte[] read(java.lang.String path)
throws java.io.IOException
path - file to be readjava.io.IOException - I/O exceptionpublic void unzip(IOFile target) throws java.io.IOException
target - target pathjava.io.IOException - I/O exceptionpublic void zip(IOFile source, java.util.regex.Pattern pattern) throws java.io.IOException
source - directory to be zippedpattern - regular expression patternjava.io.IOException - I/O exception