3 import jalview.datamodel.AlignmentI;
5 import java.io.IOException;
7 public interface FileFormatI
9 AlignmentFileReaderI getReader(FileParse source) throws IOException;
11 AlignmentFileWriterI getWriter(AlignmentI al);
13 boolean isComplexAlignFile();
16 * Answers the display name of the file format (as for example shown in menu
17 * options). This name should not be locale (language) dependent.
22 * Returns a comma-separated list of file extensions associated with the
27 String getExtensions();
30 * Answers true if the format is one that Jalview can read. This implies that
31 * the format provides an implementation for getReader which can parse a data
32 * source for sequence data. Readable formats are included in the options in
33 * the open file dialogue.
40 * Answers true if the format is one that Jalview can write. This implies that
41 * the object returned by getWriter provides an implementation of the print()
42 * method. Writable formats are included in the options in the Save As file
43 * dialogue, and the 'output to Textbox' option (if text format).
50 * Answers true if the format is one that Jalview can output as text, e.g. to
55 boolean isTextFormat();
58 * Answers true if the file format is one that provides 3D structure data
62 boolean isStructureFile();