List of utility methods to do Directory Compress
void | compressDir(String dirPath, String archiveName) Compresses local directory to the archiveName l.debug("Compressing " + dirPath + " -> " + archiveName); File d = new File(dirPath); if (d.isDirectory()) { File[] files = d.listFiles(); byte data[] = new byte[BUF_SIZE]; ZipOutputStream out = new ZipOutputStream( new BufferedOutputStream(new FileOutputStream( archiveName))); ... |