JAL-1499 initial tests working, can export to / import from textbox ok
[jalview.git] / src / jalview / io / AlignFile.java
index 2c42de0..0d611fb 100755 (executable)
@@ -345,6 +345,17 @@ public abstract class AlignFile extends FileParse
    */
   public abstract String print();
 
+  /**
+   * Print out the given alignment in the file format represented by this class.
+   * Default action is just to print the formatted sequences, but this can be
+   * overridden to use additional properties of the alignment.
+   */
+  public String print(AlignmentI al)
+  {
+    setSeqs(al.getSequencesArray());
+    return print();
+  }
+
   public void addJVSuffix(boolean b)
   {
     jvSuffix = b;