public class PrintVisitor extends java.lang.Object implements FileSystemVisitor
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.
|
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