[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:10:07 UTC 2007


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


keiranmraine at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Comment #5 from keiranmraine at gmail.com  2007-01-05 06:10 -------
I don't mean the input stream in the second method.  It's the DataInputStream
that should be closed here, see below.

public static void parse(InputStream in, SCF out, long initOffset)
        throws IOException, UnsupportedChromatogramFormatException {
  DataInputStream din;
  try {
    din = new DataInputStream(in);
    SCF.Parser parser = createParser(din, out, initOffset);
    parser.parse();
  }
  finally {
    din.close();
  }
}


-- 
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