org.springframework.integration.file
Interface DirectoryScanner
- All Known Implementing Classes:
- RecursiveLeafOnlyDirectoryScanner
public interface DirectoryScanner
Strategy for scanning directories. Implementations may select all children and grandchildren of the scanned directory
in any order. This interface is intended to enable the selection and ordering of files in a directory like
RecursiveDirectoryScanner. If the only requirement is to ignore certain files a FileListFilter implementation should
suffice.
- Author:
- Iwein Fuld
Method Summary |
java.io.File[] |
listFiles(java.io.File directory)
Scans the directory according to the strategy particular to this implementation and returns the selected files
as a File array. |
listFiles
java.io.File[] listFiles(java.io.File directory)
throws java.lang.IllegalArgumentException
- Scans the directory according to the strategy particular to this implementation and returns the selected files
as a File array.
- Parameters:
directory
- the directory to scan for files
- Returns:
- a list of files representing the content of the directory
- Throws:
java.lang.IllegalArgumentException