JAL-3032 DND enabled; additional io changes for File vs. String
[jalview.git] / src / jalview / io / IdentifyFile.java
index e2786ae..8fa76ec 100755 (executable)
@@ -31,9 +31,18 @@ import java.io.IOException;
  */
 public class IdentifyFile
 {
+  
+  public FileFormatI identify(Object file, DataSourceType protocol) throws FileFormatException
+  {
+    // BH 2018
+    return (file instanceof File ? identify((File) file, protocol) : identify((String) file, protocol));
+    
+  }
+
   public FileFormatI identify(File file, DataSourceType sourceType)
           throws FileFormatException
   {
+    // BH 2018
     String emessage = "UNIDENTIFIED FILE PARSING ERROR";
     FileParse parser = null;
     try
@@ -466,4 +475,5 @@ public class IdentifyFile
     }
   }
 
 }