Backend API

public class Unzipper

This utility extracts files and directories of a standard zip file to a destination directory.

private static final int BUFFER_SIZE = 4096

Size of the buffer to read/write data

public static void unzip(InputStream zipFileIS, String destDirectory) throws IOException

Extracts a zip file specified by the zipFilePath to a directory specified by destDirectory (will be created if does not exists)

private static void extractFile(ZipInputStream zipIn, String filePath) throws IOException

Extracts a zip entry (file entry)