[Biojava-dev] [Bug 2177] Unclosed streams in org.biojava.bio.program.scf.SCF

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Fri Jan 5 11:27:30 UTC 2007


http://bugzilla.open-bio.org/show_bug.cgi?id=2177





------- Comment #7 from keiranmraine at gmail.com  2007-01-05 06:27 -------
(In reply to comment #6)
> Publicly visible methods that accept InputStreams should never ever close them
> - that is the responsibility of the caller. If the DataInputStream wrapping the
> InputStream were closed, it would also close the InputStream, thus breaking
> this contract. The DataInputStream will be implicitly closed when the caller
> closes the original InputStream after calling the method in question.
> 

Ahhh, sorry sbout that, I did not realise that closing the DataInputStream
would close the InputStream.

Thanks


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the biojava-dev mailing list