Code example for ZipEntry

Methods: getName, isDirectory

0
     * @throws IOException 
     */ 
    private static void unzipEntry(ZipFile zipFile, ZipEntry zipEntry, File folder)
            throws IOException 
    { 
        if (zipEntry.isDirectory())
        { 
            com.motorola.studio.android.common.utilities.FileUtil.mkdir(new File(folder, zipEntry
                    .getName()).getPath());
        } 
        else 
        { 
            File outputFile = new File(folder, zipEntry.getName());
            if (!outputFile.getParentFile().exists())
            { 
                com.motorola.studio.android.common.utilities.FileUtil.mkdir(outputFile
                        .getParentFile().getPath());
            } 
            BufferedInputStream is = new BufferedInputStream(zipFile.getInputStream(zipEntry));
            BufferedOutputStream os = new BufferedOutputStream(new FileOutputStream(outputFile));
            try