at.ofai.music.beatroot
public class FileFilters extends FileFilter
Field Summary | |
---|---|
static FileFilters | csvFileFilter |
protected String | description A text description of this file type |
static FileFilters | matchFileFilter |
static FileFilters | midiFileFilter |
static FileFilters | sndFileFilter |
protected String | suffix The extension corresponding to this file type |
static FileFilters | textFileFilter |
static FileFilters | tmfFileFilter |
static FileFilters | waveFileFilter |
Constructor Summary | |
---|---|
FileFilters(String suff, String desc) Constructor |
Method Summary | |
---|---|
boolean | accept(File f) Checks file names for a given extension. |
String | getDescription() The description of the file type used in the file dialog's choice box. |
Parameters: suff The extension (suffix) of the file name desc A text description of the file type
Parameters: f The File object whose name is to be checked
Returns: True for directories and files with the given extension.
Returns: A String describing the file type.