|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.bs.mdi.FileFormat
Represents a file format.
| Constructor Summary | |
FileFormat(String[] extensions,
String description)
Creates a new file format instance with the given extensions and description. |
|
| Method Summary | |
boolean |
accept(String filename)
Returns true if the filename matches this file format. |
String |
getDescription()
Returns the description of this file format. |
String[] |
getExtensions()
Returns the extensions which this file format is associated with. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileFormat(String[] extensions,
String description)
extensions - an array of extensions which this FileFormat should be associated withdescription - a description of the file format, for example "Text files"| Method Detail |
public boolean accept(String filename)
filename - the filename
public String[] getExtensions()
public String getDescription()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||