FileDocCategorySizeDatePackage
InvertedFileFilter.javaAPI DocApache James 2.3.11995Fri Jan 12 12:56:34 GMT 2007org.apache.james.util.io

InvertedFileFilter

public class InvertedFileFilter extends Object implements FilenameFilter
This takes a FilenameFilter as input and inverts the selection. This is used in retrieving files that are not accepted by a filter.
author
Avalon Development Team
version
CVS $Revision: 494012 $ $Date: 2007-01-08 11:23:58 +0100 (Mo, 08 Jan 2007) $
since
4.0

Fields Summary
private final FilenameFilter
m_originalFilter
Constructors Summary
public InvertedFileFilter(FilenameFilter originalFilter)

        m_originalFilter = originalFilter;
    
Methods Summary
public booleanaccept(java.io.File file, java.lang.String name)

        return !m_originalFilter.accept( file, name );