public final class Zip extends Job
Modifier and Type | Method and Description |
---|---|
double |
progressInfo()
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.
|
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 exceptionpublic double progressInfo()
Job
progressInfo
in class Job
Copyright © 2005–2023 BaseX Team. All rights reserved.