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)
Modifier and Type | Field and Description |
---|---|
private boolean |
allowDirectories
allows Directories
|
Constructor and Description |
---|
AudioFileFilter() |
AudioFileFilter(boolean allowDirectories) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File f)
Check whether the given file meet the required conditions (supported by the library OR directory).
|
public AudioFileFilter(boolean allowDirectories)
public AudioFileFilter()
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.
accept
in interface java.io.FileFilter
f
- The file to testCopyright © 2005-2013 java.net. All Rights Reserved.