helliker.id3
Class MP3FileFilter

java.lang.Object
  extended byhelliker.id3.MP3FileFilter
All Implemented Interfaces:
java.io.FileFilter

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


Field Summary
private  boolean allowDirectories
           
 
Constructor Summary
MP3FileFilter()
          Create a default MP3FileFilter.
MP3FileFilter(boolean allowDirectories)
          Create an MP3FileFilter.
 
Method Summary
 boolean accept(java.io.File pathname)
          Determines whether or not the file is an mp3 file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allowDirectories

private boolean allowDirectories
Constructor Detail

MP3FileFilter

public MP3FileFilter()
Create a default MP3FileFilter. The allowDirectories field will default to false.


MP3FileFilter

public MP3FileFilter(boolean allowDirectories)
Create an MP3FileFilter. If allowDirectories is true, then this filter will accept directories as well as mp3 files. If it is false then only mp3 files will be accepted.

Parameters:
allowDirectories - whether or not to accept directories
Method Detail

accept

public boolean accept(java.io.File pathname)
Determines whether or not the file is an mp3 file. If the file is a directory, whether or not is accepted depends upon the allowDirectories flag passed to the constructor.

Specified by:
accept in interface java.io.FileFilter
Parameters:
pathname - the file to test
Returns:
true if this file or directory should be accepted


Copyright © 2004 NeurosDBM Dev Team All Rights Reserved.