/** * Create a {@link ScatterZipOutputStream} with default compression level that is backed by a file * * @param file The file to offload compressed data into. * @return A ScatterZipOutputStream that is ready for use. * @throws FileNotFoundException if the file cannot be found */ public static ScatterZipOutputStream fileBased(final File file) throws FileNotFoundException { return fileBased(file, Deflater.DEFAULT_COMPRESSION); }
/** * Create a {@link ScatterZipOutputStream} with default compression level that is backed by a file * * @param file The file to offload compressed data into. * @return A ScatterZipOutputStream that is ready for use. * @throws FileNotFoundException if the file cannot be found */ public static ScatterZipOutputStream fileBased(final File file) throws FileNotFoundException { return fileBased(file, Deflater.DEFAULT_COMPRESSION); }
dirs = ScatterZipOutputStream.fileBased(tmp);