public final class Zip extends Proc
Modifier and Type | Method and Description |
---|---|
protected double |
prog()
Returns a progress value (0 - 1).
|
byte[] |
read(String path)
Returns the contents of a zip file entry.
|
void |
unzip(IOFile target)
Unzips the archive to the specified directory.
|
void |
zip(IOFile root,
StringList files)
Zips the specified files.
|
abort, checkStop, databases, det, detail, listen, proc, progress, registered, registered, startTimeout, stop, stopTimeout, tit, title
public Zip(IO file)
file
- archive filepublic byte[] read(String path) throws IOException
path
- file to be readIOException
- I/O exceptionpublic void unzip(IOFile target) throws IOException
target
- target pathIOException
- I/O exceptionpublic void zip(IOFile root, StringList files) throws IOException
root
- root directoryfiles
- files to addIOException
- I/O exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.