public class PrintVisitor extends java.lang.Object implements FileSystemVisitor
Modifier and Type | Field and Description |
---|---|
private int |
level |
Constructor and Description |
---|
PrintVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
visitDirectoryNode(DirectoryNode node)
Visits a directory node.
|
void |
visitFileNode(FileNode node)
Visits a file node.
|
private int level
public PrintVisitor()
public void visitFileNode(FileNode node)
FileSystemVisitor
visitFileNode
in interface FileSystemVisitor
node
- the file nodepublic void visitDirectoryNode(DirectoryNode node)
FileSystemVisitor
visitDirectoryNode
in interface FileSystemVisitor
node
- the directory node