public class ZipArchive extends Object implements Closeable
Constructor and Description |
---|
ZipArchive(File artifact) |
Modifier and Type | Method and Description |
---|---|
void |
addToArchive(File fileToZip,
String fileName) |
void |
addToArchive(File fileToZip,
String fileName,
FileFilter ff) |
void |
close() |
static File |
unzip(File in,
File out) |
public ZipArchive(File artifact) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void addToArchive(File fileToZip, String fileName) throws IOException
IOException
public void addToArchive(File fileToZip, String fileName, FileFilter ff) throws IOException
IOException
public static File unzip(File in, File out) throws FileNotFoundException, IOException
FileNotFoundException
IOException
Copyright © 2019. All rights reserved.