Code example for ZipEntry

Methods: getNameisDirectory

0
 
 
 
    private void unzipEntry(ZipFile zipfile, ZipEntry entry, File outputDir) throws IOException
    { 
        if (entry.isDirectory()) {
            createDirectory(new File(outputDir, entry.getName()));
            return; 
        } 
 
        File outputFile = new File(outputDir, entry.getName());
        if (!outputFile.getParentFile().exists()){
            createDirectory(outputFile.getParentFile());
        } 
 
        Log.d("control","ZipHelper.unzipEntry() - Extracting: " + entry);
        BufferedInputStream inputStream = new BufferedInputStream(zipfile.getInputStream(entry));
        BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(outputFile));
 
        try { 
Contextual code suggestions in your IDE  Get Codota for Java