Package | Description |
---|---|
org.torproject.descriptor.index |
This package is still in alpha stage.
|
Modifier and Type | Field and Description |
---|---|
java.util.SortedSet<DirectoryNode> |
DirectoryNode.directories
The directory list is exposed in JSON.
|
java.util.SortedSet<DirectoryNode> |
IndexNode.directories
The directory list is exposed in JSON.
|
Modifier and Type | Method and Description |
---|---|
static DirectoryNode |
IndexNode.findPathIn(java.lang.String path,
java.util.SortedSet<DirectoryNode> dirs)
Returns the directory nodes with the given path, but no file nodes.
|
Modifier and Type | Method and Description |
---|---|
int |
DirectoryNode.compareTo(DirectoryNode other)
This compareTo is not compatible with equals or hash!
It simply ensures a path-sorted JSON output.
|
Modifier and Type | Method and Description |
---|---|
static DirectoryNode |
IndexNode.findPathIn(java.lang.String path,
java.util.SortedSet<DirectoryNode> dirs)
Returns the directory nodes with the given path, but no file nodes.
|
Constructor and Description |
---|
DirectoryNode(java.lang.String path,
java.util.SortedSet<FileNode> files,
java.util.SortedSet<DirectoryNode> directories)
A directory for the JSON structure.
|
IndexNode(java.lang.String created,
java.lang.String path,
java.util.SortedSet<FileNode> files,
java.util.SortedSet<DirectoryNode> directories)
An index node is the top-level node in the JSON structure.
|