Code example for ZipEntry

Methods: isDirectory

0
     * @param dest 
     * @return 
     * @throws Exception 
     */ 
    private static File extract(InputStream is, ZipEntry zipEntry, File dest) throws Exception {
        if (zipEntry.isDirectory()) {
            LOGGER.debug("Creating directory {}", dest.getName());
            dest.mkdirs();
        } else { 
            dest.getParentFile().mkdirs();
            FileOutputStream out = new FileOutputStream(dest);
            StreamUtils.copy(is, out);
            out.close();
        } 
        return dest;
    } 
 
    private static void closeStream(InputStream is) {
        if (is != null) {
            try {