kiwi.io
Interface FileAcceptor


public abstract interface FileAcceptor

An interface for receiving File objects from a FilesystemTraverser.

Version:
1.0 (05/98)
Author:
Mark Lindner, PING Software Group
See Also:
FilesystemTraverser, File

Method Summary
 boolean accept(File file)
          Accept a file from a depth-first traversal.
 boolean accessError(File file)
          Handle a file access error from a depth-first traversal.
 

Method Detail

accept

public boolean accept(File file)
Accept a file from a depth-first traversal.
Parameters:
file - The file.
Returns:
true if the traversal should continue, and false if it should be aborted.

accessError

public boolean accessError(File file)
Handle a file access error from a depth-first traversal.
Parameters:
file - The file that caused the access error.
Returns:
true if the traversal should continue, and false if it should be aborted.