[Biojava-l] BufferedOutputStream to RichSequence.IOTools.writeXXX() method needs to flush manually

Richard Holland holland at eaglegenomics.com
Wed Oct 1 13:36:59 UTC 2008


The IOTools interfaces accept OutputStream instances, not
BufferedOutputStream instances. flush() is not a requirement on
OutputStream and so BJX does not call it.

cheers,
Richard

2008/10/1 pprun <pzgyuanf at gmail.com>:
> Hi,
> I don't know this is a feature or a bug,
> If a BufferedOutputStream was passed to method
> RichSequence.IOTools.writeGenbank(OutputStream os, Sequence seq,
> Namespace ns),
> at the end, I need to manually flush it - BufferedOutputStream.flush()
>
> Otherwise, the output content will be truncated.
>
> Is this the expected behavior?
>
> Thanks,
> - Pprun
>
>
> _______________________________________________
> Biojava-l mailing list  -  Biojava-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biojava-l
>
>



-- 
Richard Holland, BSc MBCS
Finance Director, Eagle Genomics Ltd
M: +44 7500 438846 | E: holland at eaglegenomics.com
http://www.eaglegenomics.com/



More information about the Biojava-l mailing list