public class DirectoryTree
extends java.lang.Object
Constructor and Description |
---|
DirectoryTree(java.lang.String name,
java.lang.String path,
int depth) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
clean up the tree and metadata
|
protected void |
finalize() |
java.lang.String |
getName() |
java.lang.String |
getPath() |
java.lang.String |
getTreeMap()
returns JSON representation of the directory tree
|
java.lang.String |
getTreeMap(java.lang.String dirName,
java.util.Map node,
java.lang.String indent,
java.lang.String end)
returns JSON representation of the directory tree on the give node
|
public DirectoryTree(java.lang.String name, java.lang.String path, int depth)
public java.lang.String getName()
public java.lang.String getPath()
public java.lang.String getTreeMap()
public java.lang.String getTreeMap(java.lang.String dirName, java.util.Map node, java.lang.String indent, java.lang.String end)
public void clear()
protected void finalize()
finalize
in class java.lang.Object