From f2c8e788b0c86c77ac4e62f6f6e2da13fdf43fc0 Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 9 Dec 2010 16:02:26 +0000 Subject: [PATCH] dataIn.ready() is not a test of data source validity! --- src/jalview/io/FileParse.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/jalview/io/FileParse.java b/src/jalview/io/FileParse.java index 9f87c3a..4714b8f 100755 --- a/src/jalview/io/FileParse.java +++ b/src/jalview/io/FileParse.java @@ -383,9 +383,14 @@ 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; } -- 1.7.10.2