/** * Compresses a file into zlib archive. */ public static File zlib(String file) throws IOException { return zlib(new File(file)); }
/** * Compresses a file into zlib archive. */ public static File zlib(final String file) throws IOException { return zlib(new File(file)); }
@Test void testZlib() throws IOException { ZipUtil.zlib(new File(dataRoot, "sb.data")); File zlibFile = new File(dataRoot, "sb.data.zlib"); assertTrue(zlibFile.exists()); // cleanup FileUtil.delete(zlibFile); }
/** * Compresses a file into zlib archive. */ public static File zlib(final String file) throws IOException { return zlib(new File(file)); }