Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## helliker.id3
Class MP3FileFilter

    java.lang.Object
      |
      +--helliker.id3.MP3FileFilter

All Implemented Interfaces:
  java.io.FileFilter

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

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`

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD