File Visitor Flashcards Preview

OCP > File Visitor > Flashcards

Flashcards in File Visitor Deck (10):
1

Invoked just before the elements of the directory are accessed

preVisitDirectory

2

Invoked when a file is visited.

visitFile

3

Invoked when all the elements of a directory are accessed.

postVisitDirectory

4

Invoked when the file cannot be accessed

visitFileFailed

5

Paramater to FileVisitor that indicates the depth to travel.

MAX_VALUE

6

Class that must be extended if you do not want to implement all methods of the FileVisitor interface.

SimpleFileVisitor

7

Return value that indicates that the walk through the file tree should continue.

CONTINUE

8

Return value that indicates that the walk through the tree should be terminated immediately.

TERMINATE

9

Return value that indicates that the rest of the subtree should be skipped.

SKIP_SUBTREE

10

Return value that indicates that the walk should be stopped for the current directory and its sibling directory.

SKIP_SIBLINGS