Code example for JarEntry

Methods: getNameisDirectory

0
        return buffer.toString();
    } 
 
    protected void addJarEntryToIndex(JarEntry entry, StringBuilder buffer) {
        // no need to show empty directories 
        if (!entry.isDirectory()) {
            buffer.append(entry.getName());
            buffer.append("\n");
        } 
    } 
 
 
 
    /** 
     * Returns true if the file path is "/" or empty 
     */ 
    protected boolean isRoot(String filePath) {
        return filePath == null || filePath.length() == 0 || filePath.equals("/");
    }