27282930313233
private final String entryName; public ZipCommand(File zipFile, File fileOrDirectory, String entryName) { this(new ZipFileStore(zipFile), fileOrDirectory, entryName); }
25262728293031
private final ZipSource source; private final File directory; public UnzipCommand(File zipFile, File directory) { this(new ZipFileStore(zipFile), directory); }
35363738394041
public static void zip(File zipFile, File fileOrDirectory, String entryName) throws IOException { zip(new ZipFileStore(zipFile), fileOrDirectory, entryName); }
91929394959697
ZipSinks.execute(new ZipTask()).on(sink); } public static void unzip(File zipFile, File directory) throws IOException { unzip(new ZipFileStore(zipFile), directory); }