+
+ @Override
+ public AlignmentI readFile(String file, DataSourceType sourceType,
+ FileFormatI fileFormat) throws IOException
+ {
+ AlignmentI al = super.readFile(file, sourceType, fileFormat);
+ return al;
+ }
+
+ @Override
+ public AlignmentI readFromFile(FileParse source, FileFormatI format)
+ throws IOException
+ {
+ AlignmentI al = super.readFromFile(source, format);
+ return al;
+ }
+
+ /**
+ * validate format is valid for IO in Application. This is basically the
+ * AppletFormatAdapter.isValidFormat call with additional checks for
+ * Application only formats like 'Jalview'.
+ *
+ * @param format
+ * a format string to be compared with list of readable or writable
+ * formats (READABLE_FORMATS or WRITABLE_FORMATS)
+ * @param forwriting
+ * when true, format is checked against list of writable formats.
+ * @return true if format is valid
+ */
+ public static final boolean isValidIOFormat(String format,
+ boolean forwriting)
+ {
+ if (format.equalsIgnoreCase("jalview"))
+ {
+ return true;
+ }
+ return AppletFormatAdapter.isValidFormat(format, forwriting);
+ }
+
+ /**
+ * Create a flat file representation of a given view or selected region of a
+ * view
+ *
+ * @param format
+ * @param ap
+ * alignment panel originating the view
+ * @return String containing flat file
+ */
+ public String formatSequences(FileFormatI format, AlignmentViewPanel ap,
+ boolean selectedOnly)
+ {
+ return formatSequences(format, getCacheSuffixDefault(format), ap,
+ selectedOnly);
+ }
+