/** * Refresh the jar entries. */ public synchronized boolean refresh() { boolean changed = false; // Only the root node needs to be refreshed. if(isRefresh() && new File(jarpath).lastModified()>lastmodified) { changed = true; this.lastmodified = new File(jarpath).lastModified(); // Read entries into multi-collection (path->entries). MultiCollection<String, ZipEntry> entries = createEntries(); // Recursively create files for entries. this.entryfiles = new HashMap<String, JarAsDirectory>(); this.entries = createFiles("/", entries); } // System.out.println("refresh: "+entry+", "+changed); return changed; }