/** * Returns the depth of this entry based on the number of path delimiters ('/') its path contains. * Top-level entries have a depth of 1. * * @return the depth of this entry */ public int getDepth() { return getDepth(getPath()); }
int entryDepth = ArchiveEntry.getDepth(entryPath); int slashPos = 0; DefaultMutableTreeNode currentNode = this;
int depth = ArchiveEntry.getDepth(entryPath);
int entryDepth = entry.getDepth(); int slashPos = 0; DefaultMutableTreeNode node = this;