dguitar.codecs.midi
Class MIDFileFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended bydguitar.codecs.CodecFileFilter
          extended bydguitar.codecs.midi.MIDFileFilter
All Implemented Interfaces:
java.io.FileFilter, java.io.FilenameFilter

public class MIDFileFilter
extends CodecFileFilter

This is a Filter for the *.MID (midi) file extension

Author:
Mauricio Gracia Gutierrez

Constructor Summary
MIDFileFilter()
           
 
Method Summary
 boolean accept(java.lang.String s)
          Override this method actually accept the Name of the file or not
 java.lang.String getDescription()
          Returns a description of this CodeFilter
 java.util.Vector getExtensions()
          This method returns the extension the codec handles Example: {".GP3",".GP4",".GTP"} if it is a Guitar Pro codec)
 
Methods inherited from class dguitar.codecs.CodecFileFilter
accept, accept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MIDFileFilter

public MIDFileFilter()
Method Detail

getDescription

public java.lang.String getDescription()
Description copied from class: CodecFileFilter
Returns a description of this CodeFilter

Specified by:
getDescription in class CodecFileFilter
See Also:
FileFilter.getDescription()

getExtensions

public java.util.Vector getExtensions()
Description copied from class: CodecFileFilter
This method returns the extension the codec handles Example: {".GP3",".GP4",".GTP"} if it is a Guitar Pro codec)

Specified by:
getExtensions in class CodecFileFilter
Returns:
and Vector of String with the extensions the codec supports

accept

public boolean accept(java.lang.String s)
Description copied from class: CodecFileFilter
Override this method actually accept the Name of the file or not

Specified by:
accept in class CodecFileFilter