org.paneris.util
Class ExtensionFilter

java.lang.Object
  extended by org.paneris.util.ExtensionFilter
All Implemented Interfaces:
java.io.FilenameFilter

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

filters filename according to their extension


Constructor Summary
ExtensionFilter(java.lang.String ext)
          constructor
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
          check if this file matches what we are after
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionFilter

public ExtensionFilter(java.lang.String ext)
constructor

Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
check if this file matches what we are after

Specified by:
accept in interface java.io.FilenameFilter


Copyright © 2000-2008 PanEris. All Rights Reserved.