org.springframework.integration.file.filters
Class PatternMatchingFileListFilter

java.lang.Object
  extended by org.springframework.integration.file.entries.AbstractEntryListFilter<T>
      extended by org.springframework.integration.file.entries.PatternMatchingEntryListFilter<java.io.File>
          extended by org.springframework.integration.file.filters.PatternMatchingFileListFilter
All Implemented Interfaces:
InitializingBean, EntryListFilter<java.io.File>, FileListFilter

public class PatternMatchingFileListFilter
extends PatternMatchingEntryListFilter<java.io.File>
implements FileListFilter

An EntryListFilter implementation that matches a File against a Pattern.

Since:
1.0.0

Constructor Summary
PatternMatchingFileListFilter(java.util.regex.Pattern pattern)
          Create a file filter for the given pattern.
PatternMatchingFileListFilter(java.lang.String pattern)
           
 
Method Summary
 java.util.List<java.io.File> filterFiles(java.io.File[] files)
          Filter out the files of which the name doesn't match the pattern of this filter
 
Methods inherited from class org.springframework.integration.file.entries.PatternMatchingEntryListFilter
accept, afterPropertiesSet, setEntryNamer, setPattern, setPatternExpression
 
Methods inherited from class org.springframework.integration.file.entries.AbstractEntryListFilter
filterEntries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternMatchingFileListFilter

public PatternMatchingFileListFilter(java.util.regex.Pattern pattern)
Create a file filter for the given pattern.


PatternMatchingFileListFilter

public PatternMatchingFileListFilter(java.lang.String pattern)
Method Detail

filterFiles

public java.util.List<java.io.File> filterFiles(java.io.File[] files)
Filter out the files of which the name doesn't match the pattern of this filter

Specified by:
filterFiles in interface FileListFilter