org.jaudiotagger.audio
Class AudioFileFilter

java.lang.Object
  extended by org.jaudiotagger.audio.AudioFileFilter
All Implemented Interfaces:
java.io.FileFilter

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

This is a simple FileFilter that will only allow the file supported by this library.

It will also accept directories. An additionnal condition is that file must be readable (read permission) and are not hidden (dot files, or hidden files)

Since:
v0.01
Version:
$Id: AudioFileFilter.java,v 1.1 2007/08/07 16:05:45 paultaylor Exp $
Author:
Raphael Slinckx

Constructor Summary
AudioFileFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
          Check whether the given file meet the required conditions (supported by the library OR directory).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioFileFilter

public AudioFileFilter()
Method Detail

accept

public boolean accept(java.io.File f)

Check whether the given file meet the required conditions (supported by the library OR directory). The File must also be readable and not hidden.

Specified by:
accept in interface java.io.FileFilter
Parameters:
f - The file to test
Returns:
a boolean indicating if the file is accepted or not