public class AudioFileFilter extends Object implements 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)
Constructor and Description |
---|
AudioFileFilter() |
AudioFileFilter(boolean allowDirectories) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(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(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 FileFilter
f
- The file to testCopyright © 2005–2020 jthink.net. All rights reserved.