|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.file.AbstractFileListFilter org.springframework.integration.file.AcceptOnceFileListFilter
public class AcceptOnceFileListFilter
FileListFilter
that passes files only one time. This can
conveniently be used to prevent duplication of files, as is done in
FileReadingMessageSource
.
Constructor Summary | |
---|---|
AcceptOnceFileListFilter()
Creates an AcceptOnceFileFilter based on an unbounded queue. |
|
AcceptOnceFileListFilter(int maxCapacity)
Creates an AcceptOnceFileFilter that is based on a bounded queue. |
Method Summary | |
---|---|
protected boolean |
accept(java.io.File pathname)
Subclasses must implement this method. |
Methods inherited from class org.springframework.integration.file.AbstractFileListFilter |
---|
filterFiles |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AcceptOnceFileListFilter(int maxCapacity)
AbstractFileListFilter.filterFiles(File[])
method.
maxCapacity
- the maximum number of Files to maintain in the 'seen'
queue.public AcceptOnceFileListFilter()
Method Detail |
---|
protected boolean accept(java.io.File pathname)
AbstractFileListFilter
accept
in class AbstractFileListFilter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |