net.sourceforge.jaulp.file.filter
Class TxtFileFilter

java.lang.Object
  extended by net.sourceforge.jaulp.file.filter.TxtFileFilter
All Implemented Interfaces:
java.io.FileFilter

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

The Class TxtFileFilter accepts File-objects that are directories or end with the suffix '.txt'. Accepts directories to allow search files recursive in directories.

Version:
1.0
Author:
Asterios Raptis

Field Summary
static java.lang.String TXT_EXTENSION
          The Constant TXT_EXTENSION.
 
Constructor Summary
TxtFileFilter()
           
 
Method Summary
 boolean accept(java.io.File pathname)
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TXT_EXTENSION

public static final java.lang.String TXT_EXTENSION
The Constant TXT_EXTENSION.

See Also:
Constant Field Values
Constructor Detail

TxtFileFilter

public TxtFileFilter()
Method Detail

accept

public boolean accept(java.io.File pathname)

Specified by:
accept in interface java.io.FileFilter
See Also:
FileFilter.accept(java.io.File)

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2010. All Rights Reserved.