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)
FileSystemVisitorvisitFileNode in interface FileSystemVisitornode - the file nodepublic void visitDirectoryNode(DirectoryNode node)
FileSystemVisitorvisitDirectoryNode in interface FileSystemVisitornode - the directory node