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

## com.neoworks.mpeg
Class MP3FileFilter

    java.lang.Object
      |
      +--com.neoworks.mpeg.MP3FileFilter

All Implemented Interfaces:
  java.io.FilenameFilter

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

This class is a simple checker to make sure we're not trying to access anything but MP3 files (eg ones that end in ".mp3").

Author:
  Nick Vincent nick@neoworks.com

Constructor Summary
`MP3FileFilter()` Creates a new instance of MP3FileFilter

Method Summary
`boolean` | `accept(java.io.File file, java.lang.String str)` Check the filename for the correct extension.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MP3FileFilter

    public MP3FileFilter()

  Creates a new instance of MP3FileFilter

Method Detail

### accept

    public boolean accept(java.io.File file,
                          java.lang.String str)

  Check the filename for the correct extension.

  Specified by:
    `accept` in interface `java.io.FilenameFilter`
  Parameters:
    `file` - The file object to check
    `str` - The filename to check
  Returns:
    Success

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