com.mkdoc.io
Class TextFileFilter

java.lang.Object
  |
  +--com.mkdoc.io.TextFileFilter
All Implemented Interfaces:
java.io.FileFilter

public class TextFileFilter
extends java.lang.Object
implements java.io.FileFilter

A basic text file filter.

Version:
0.2 2005-12-08
Author:
Philip Shaw

Constructor Summary
TextFileFilter()
           
 
Method Summary
 boolean accept(java.io.File file)
          Accept files with a .txt extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFileFilter

public TextFileFilter()
Method Detail

accept

public final boolean accept(java.io.File file)
Accept files with a .txt extension.

Specified by:
accept in interface java.io.FileFilter
Parameters:
file - A file reference to check.
Returns:
true if the path ends with .txt.
Since:
Version 0.1 2005-12-05