[Biojava-l] Genbank/EMBL java.io.IOException fix

Keith James kdj@sanger.ac.uk
28 Mar 2001 15:36:03 +0100


Hi,

Further to a bug report by zhao guijun, I looked at the Format classes
and discovered that the exception is due to trailing whitespace in the
example Genbank file. Adding trailing whitespace to the EMBL version
causes the same problem. I've added a safer check for more sequence in
the stream which fixes this.

Trailing whitespace or whitespace between entries (e.g. where separate
files, each with trailing spaces, have been concatenated) are now
tolerated. Internal whitespace (between entries, not at the end of the
stream) causes a non-fatal warning to be issued.

-- 

-= Keith James - kdj@sanger.ac.uk - http://www.sanger.ac.uk/Users/kdj =-
The Sanger Centre, Wellcome Trust Genome Campus, Hinxton, Cambs CB10 1SA