org.jaudiotagger.audio
Class AudioFileFilter
java.lang.Object
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 additional 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.6 2009/11/12 15:43:00 paultaylor Exp $
- Author:
- Raphael Slinckx
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
allowDirectories
private final boolean allowDirectories
- allows Directories
AudioFileFilter
public AudioFileFilter(boolean allowDirectories)
AudioFileFilter
public AudioFileFilter()
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