dguitar.codecs.guitarPro
Class GPFileFilter

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

public class GPFileFilter
extends CodecFileFilter

This class is a Filter for the Guitar Pro file extensions.

Author:
Mauricio Gracia Gutierrez

Constructor Summary
GPFileFilter()
           
 
Method Summary
 boolean accept(java.lang.String s)
          Check if the file filters for GP3 and GP4 accept this filename.
 java.lang.String getDescription()
          Returns the description for this filter.
 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

GPFileFilter

public GPFileFilter()
Method Detail

accept

public boolean accept(java.lang.String s)
Check if the file filters for GP3 and GP4 accept this filename.

Specified by:
accept in class CodecFileFilter
Parameters:
s - the filename
Returns:
true if the filename can be accepted.

getDescription

public java.lang.String getDescription()
Returns the description for this filter.

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