org.apache.avalon.excalibur.io
Class OrFileFilter

java.lang.Object
  |
  +--org.apache.avalon.excalibur.io.OrFileFilter
All Implemented Interfaces:
java.io.FilenameFilter

public class OrFileFilter
extends java.lang.Object
implements java.io.FilenameFilter

This takes two file fiters as input. Accepts a selection if it is accpetable to either input filter

Author:
Harmeet Bedi

Constructor Summary
OrFileFilter(java.io.FilenameFilter filter1, java.io.FilenameFilter filter2)
           
 
Method Summary
 boolean accept(java.io.File file, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrFileFilter

public OrFileFilter(java.io.FilenameFilter filter1,
                    java.io.FilenameFilter filter2)
Method Detail

accept

public boolean accept(java.io.File file,
                      java.lang.String name)
Specified by:
accept in interface java.io.FilenameFilter


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.