Code example for ZipEntry

0
            MetadataService metadataService) {
        super(metadataService);
        this.zipFile = zipFile;
        ZipEntry entry = zipFile.getEntry(entryName);
        if (entry == null)
            this.entry = new ZipEntry(entryName);
        else { 
            // Checking we don't have a directory 
            ZipEntry entryDir = zipFile.getEntry(entryName + "/");
            if (entryDir != null)
                this.entry = entryDir;
            else 
                this.entry = entry;
        } 
    } 
 
    /** 
     * Constructor. 
     *  
     * @param zipFile