Code example for ZipFile

Methods: close

0
     * 
     * @throws IOException 
     */ 
    @Override 
    public void close() throws IOException { 
        zip.close();
    } 
 
    @Override 
    public boolean isValid() { 
        for (Enumeration<? extends ZipEntry> e = zip.entries(); e.hasMoreElements(); ) {
 
            ZipEntry testEntry = e.nextElement();
 
            if (testEntry.getName().matches(".*\\.mcr$") || testEntry.getName().matches(".*\\.mca$")) { // TODO: does this need a separate class?
                return true; 
            } 
        } 
 
        return false;