Code example for ZipEntry

Methods: getNameisDirectory

0
    /** 
     * Normalize the name of an entry read from the Zip. 
     */ 
    protected String normalize(ZipEntry entry) {
 
        String result = "/" + entry.getName();
        if (entry.isDirectory()) {
            result = result.substring(0, result.length() - 1);
        } 
        return result;
 
    } 
 
 
    /** 
     * Constructs a tree of the entries contained in a WAR file. 
     */ 
    protected void loadEntries() { 
 
        try { 
Connect your IDE to all the code out there  Get Codota for Java