Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.textflex.txtfl
Class EndsWithFileFilter  view EndsWithFileFilter download EndsWithFileFilter.java

java.lang.Object
  extended bycom.textflex.txtfl.EndsWithFileFilter
All Implemented Interfaces:
java.io.FilenameFilter

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

Filters filenames to select only files with particular endings.


Field Summary
private  java.lang.String endsWith
           
 
Constructor Summary
(package private) EndsWithFileFilter()
           
 
Method Summary
 boolean accept(java.io.File file, java.lang.String name)
          Aceepts the file if its name ends withe specified string, endsWith.
 void add(java.lang.String aEndsWith)
          Sets the required ending.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

endsWith

private java.lang.String endsWith
Constructor Detail

EndsWithFileFilter

EndsWithFileFilter()
Method Detail

add

public void add(java.lang.String aEndsWith)
Sets the required ending.


accept

public boolean accept(java.io.File file,
                      java.lang.String name)
Aceepts the file if its name ends withe specified string, endsWith.

Specified by:
accept in interface java.io.FilenameFilter