}
}
- private static void copy(File file, ZipOutputStream zout) throws IOException {
+ public static void copy(File file, OutputStream out) throws IOException {
try (InputStream in = new FileInputStream(file)) {
- copy(in, zout);
+ copy(in, out);
}
}