Code example for ZipFile

Methods: getEntry

1
     *  
     * @param file 
     * @return 
     */ 
    private ZipEntry getEntry(String file) {
        ZipEntry entry = zip.getEntry(file);
        if (entry != null) {
            return entry;
        } 
        return zip.getEntry(file.replace("/", "\\"));
    } 
 
    /** 
     * Close resources. 
     * 
     * @throws IOException 
     */ 
    @Override 
    public void close() throws IOException { 
        zip.close();
    }