public static class DirectoryTraverser.FilePrinter extends DirectoryTraverser.CallbackHandler
Constructor and Description |
---|
DirectoryTraverser.FilePrinter(java.io.PrintStream printStream) |
Modifier and Type | Method and Description |
---|---|
void |
handleFile(java.io.File file,
int level)
Called for every file encountered, including the directory at the root of the traversed tree.
|
handleEnd
public DirectoryTraverser.FilePrinter(java.io.PrintStream printStream)
public void handleFile(java.io.File file, int level)
DirectoryTraverser.CallbackHandlerInterface
file
- The file which was encounteredlevel
- From traversal root. Root itself is 0.