|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectloci.formats.FormatHandler
Abstract superclass of all biological file format readers and writers.
| Field Summary | |
protected JFileChooser |
chooser
File chooser for this file format. |
protected String |
currentId
Name of current file. |
protected FileFilter[] |
filters
File filters for this file format, for use with a JFileChooser. |
protected String |
format
Name of this file format. |
protected String[] |
suffixes
Valid suffixes for this file format. |
| Constructor Summary | |
FormatHandler(String format,
String suffix)
Constructs a format handler with the given name and default suffix. |
|
FormatHandler(String format,
String[] suffixes)
Constructs a format handler with the given name and default suffixes. |
|
| Method Summary | |
protected void |
createFilters()
Creates JFileChooser file filters for this file format. |
JFileChooser |
getFileChooser()
Gets a JFileChooser that recognizes accepted file types. |
FileFilter[] |
getFileFilters()
Gets file filters for this file format, for use with a JFileChooser. |
String |
getFormat()
Gets the name of this file format. |
String[] |
getSuffixes()
Gets the default file suffixes for this file format. |
boolean |
isThisType(String name)
Checks if the given string is a valid filename for this file format. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String format
protected String[] suffixes
protected FileFilter[] filters
protected JFileChooser chooser
protected String currentId
| Constructor Detail |
public FormatHandler(String format,
String suffix)
public FormatHandler(String format,
String[] suffixes)
| Method Detail |
protected void createFilters()
public boolean isThisType(String name)
public String getFormat()
public String[] getSuffixes()
public FileFilter[] getFileFilters()
public JFileChooser getFileChooser()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||