Create instance of FormatAdapter
[jalview.git] / src / jalview / io / FormatAdapter.java
index 18bf76a..61c2331 100755 (executable)
@@ -45,6 +45,8 @@ public class FormatAdapter
         formats.addElement("PFAM");\r
     }\r
 \r
+    AlignFile afile = null;\r
+\r
     /**\r
      * DOCUMENT ME!\r
      *\r
@@ -54,12 +56,10 @@ public class FormatAdapter
      *\r
      * @return DOCUMENT ME!\r
      */\r
-    public static SequenceI[] readFile(String inFile, String type, String format)\r
+    public SequenceI[] readFile(String inFile, String type, String format)\r
     {\r
         try\r
         {\r
-            AlignFile afile = null;\r
-\r
             if (format.equals("FASTA"))\r
             {\r
                 afile = new FastaFile(inFile, type);\r
@@ -101,6 +101,7 @@ public class FormatAdapter
         return null;\r
     }\r
 \r
+\r
     /**\r
      * DOCUMENT ME!\r
      *\r
@@ -109,7 +110,7 @@ public class FormatAdapter
      *\r
      * @return DOCUMENT ME!\r
      */\r
-    public static String formatSequences(String format, Vector seqs)\r
+    public String formatSequences(String format, Vector seqs)\r
     {\r
         SequenceI[] s = new SequenceI[seqs.size()];\r
 \r