Android Utililty Methods Directory Compress

List of utility methods to do Directory Compress

Description

The list of methods to do Directory Compress are organized into topic(s).

Method

voidcompressDir(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)));
...