org.dmonix.io.filters
Class AcceptAllFilter

java.lang.Object
  extended byorg.dmonix.io.filters.AcceptAllFilter
All Implemented Interfaces:
java.io.FileFilter, java.io.FilenameFilter

public class AcceptAllFilter
extends java.lang.Object
implements java.io.FileFilter, java.io.FilenameFilter

Simple filter that accepts all files.

Copyright: Copyright (c) 2004

Company: dmonix.org

Version:
1.0
Author:
Peter Nerg

Constructor Summary
AcceptAllFilter()
           
 
Method Summary
 boolean accept(java.io.File pathname)
          Always returns true.
 boolean accept(java.io.File dir, java.lang.String name)
          Always returns true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcceptAllFilter

public AcceptAllFilter()
Method Detail

accept

public boolean accept(java.io.File pathname)
Always returns true.

Specified by:
accept in interface java.io.FileFilter
Parameters:
pathname - The file path
Returns:
Always true

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Always returns true.

Specified by:
accept in interface java.io.FilenameFilter
Parameters:
dir - The file directory
name - The file name
Returns:
Always true


Copyright © 1998-2005 dmonix.org Peter Nerg, All Rights Reserved.