org.bibalex.daf.handlers.filehandler
Class OnlyExt

java.lang.Object
  extended by org.bibalex.daf.handlers.filehandler.OnlyExt
All Implemented Interfaces:
java.io.FilenameFilter

 class OnlyExt
extends java.lang.Object
implements java.io.FilenameFilter

Used to filter on file extension.

Author:
bibalex

Field Summary
(package private)  java.lang.String ext
           
 
Constructor Summary
OnlyExt(java.lang.String ext)
          Creates a new instance of OnlyExt class.
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ext

java.lang.String ext
Constructor Detail

OnlyExt

public OnlyExt(java.lang.String ext)
Creates a new instance of OnlyExt class.

Parameters:
ext - The extension of the files.
Method Detail

accept

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