JAL-3026 FileParser for JFileChooser results as ByteArrayInputStream;
authorhansonr <hansonr@stolaf.edu>
Wed, 27 Jun 2018 12:02:24 +0000 (13:02 +0100)
committerhansonr <hansonr@stolaf.edu>
Wed, 27 Jun 2018 12:02:24 +0000 (13:02 +0100)
does not imply text.

src/jalview/io/FileParse.java

index 7e1940f..bb03b35 100755 (executable)
@@ -27,6 +27,7 @@ import jalview.api.FeatureSettingsModelI;
 import jalview.util.MessageManager;
 
 import java.io.BufferedReader;
+import java.io.ByteArrayInputStream;
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.FileReader;
@@ -348,7 +349,7 @@ public class FileParse
       {
         // this will be from JavaScript
         inFile = file;
-        dataIn = new BufferedReader(new StringReader(new String(bytes)));
+        dataIn = new BufferedReader(new java.io.InputStreamReader(new ByteArrayInputStream(bytes)));
         dataName = fileStr;
       }
       else if (checkFileSource(fileStr))
@@ -384,8 +385,8 @@ public class FileParse
        * 
        */
 
-      System.out.println(data);
       dataIn = Rdr.getBR(data);
+      
       dataName = fileStr;
 
     }