From: jprocter Date: Tue, 29 Jan 2008 10:15:36 +0000 (+0000) Subject: ensure mark is set before identification is started. X-Git-Tag: Release_2_4~138 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9aaced1752a66f905b97c762f0a97b4b47a8f9ec;p=jalview.git ensure mark is set before identification is started. --- diff --git a/src/jalview/io/IdentifyFile.java b/src/jalview/io/IdentifyFile.java index 86b04a8..46899da 100755 --- a/src/jalview/io/IdentifyFile.java +++ b/src/jalview/io/IdentifyFile.java @@ -72,6 +72,10 @@ public class IdentifyFile boolean lineswereskipped=false; boolean isBinary = false; // true if length is non-zero and non-printable characters are encountered try { + if (!closeSource) + { + source.mark(); + } while ( (data = source.nextLine()) != null) { length+=data.length();