JAL-281 added phyloxml and nexus to jalview fileformats
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Tue, 19 Dec 2017 14:10:26 +0000 (14:10 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Tue, 19 Dec 2017 14:10:26 +0000 (14:10 +0000)
src/jalview/io/FileFormat.java

index 4b33dbf..718370a 100644 (file)
@@ -373,8 +373,57 @@ public enum FileFormat implements FileFormatI
     {
       return false;
     }
-  };
+  },
+  Nexus("Nexus", "nex,nexus,nx,tre", true, true)
+  {
+
+    @Override
+    public AlignmentFileReaderI getReader(FileParse source)
+            throws IOException
+    {
+      // TODO Auto-generated method stub
+      return null;
+    }
 
+    @Override
+    public AlignmentFileWriterI getWriter(AlignmentI al)
+    {
+      // TODO Auto-generated method stub
+      return null;
+    }
+
+    @Override
+    public boolean isTextFormat()
+    {
+      return true;
+    }
+
+  },
+  PhyloXML("PhyloXML", "phyloxml,phylo.xml,pxml", true, true)
+  {
+
+    @Override
+    public AlignmentFileReaderI getReader(FileParse source)
+            throws IOException
+    {
+      // TODO Auto-generated method stub
+      return null;
+    }
+
+    @Override
+    public AlignmentFileWriterI getWriter(AlignmentI al)
+    {
+      // TODO Auto-generated method stub
+      return null;
+    }
+
+    @Override
+    public boolean isTextFormat()
+    {
+      return true;
+    }
+
+  };
   private boolean writable;
 
   private boolean readable;