org.springframework.integration.file
Class HeadDirectoryScanner
java.lang.Object
org.springframework.integration.file.DefaultDirectoryScanner
org.springframework.integration.file.HeadDirectoryScanner
- All Implemented Interfaces:
- DirectoryScanner
public class HeadDirectoryScanner
- extends DefaultDirectoryScanner
A custom scanner that only returns the first maxNumberOfFiles
elements from a directory listing. This is
useful to limit the number of File objects in memory and therefore mutually exclusive with AcceptOnceFileListFilter.
- Since:
- 2.0.0
- Author:
- Iwein Fuld
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HeadDirectoryScanner
public HeadDirectoryScanner(int maxNumberOfFiles)
Copyright © 2010. All Rights Reserved.