dataIn.ready() is not a test of data source validity!
[jalview.git] / src / jalview / io / FileParse.java
index e972679..4714b8f 100755 (executable)
@@ -383,23 +383,17 @@ public class FileParse
   }
   
 
-  public Reader getReader() throws IOException
+  /**
+   * get the underlying bufferedReader for this data source.
+   * @return null if no reader available
+   * @throws IOException
+   */
+  public Reader getReader()
   {
-    if (dataIn != null && dataIn.ready())
+    if (dataIn != null) // Probably don't need to test for readiness && dataIn.ready())
     {
       return dataIn;
     }
     return null;
   }
-
-  public static String checkProtocol(String file)
-  {
-    String protocol = jalview.io.FormatAdapter.FILE;
-  
-    if (file.indexOf("http:") > -1 || file.indexOf("file:") > -1)
-    {
-      protocol = jalview.io.FormatAdapter.URL;
-    }
-    return protocol;
-  }
 }