Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #9721
| Date | 2011-11-06 21:16 -0500 |
|---|---|
| From | Arne Vajhøj <arne@vajhoej.dk> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Buffered reading seems to corrupt data stream |
| References | (3 earlier) <bpGdnWtFWejMshbTnZ2dnUVZ_tOdnZ2d@posted.palinacquisition> <4eb716f1$0$283$14726298@news.sunsite.dk> <hoidnTzMrYOovSrTnZ2dnUVZ_hCdnZ2d@posted.palinacquisition> <4eb72a48$0$285$14726298@news.sunsite.dk> <WdedncesRr1iqCrTnZ2dnUVZ_rSdnZ2d@posted.palinacquisition> |
| Message-ID | <4eb73f8e$0$281$14726298@news.sunsite.dk> (permalink) |
| Organization | SunSITE.dk - Supporting Open source |
On 11/6/2011 8:35 PM, Peter Duniho wrote: > On 11/6/11 4:46 PM, Arne Vajhøj wrote: >> On 11/6/2011 7:03 PM, Peter Duniho wrote: >>> On 11/6/11 3:23 PM, Arne Vajhøj wrote: >>>> [...] >>>> It seems rather obvious to me that a new BufferedInputStream >>>> would be created every time this code is called. >>> >>> Really? You resurrected a thread that's over a month old, just to tell >>> us what's obvious to you? >> >> It seemed relevant to point out that the guy that provided >> that solution was not guessing [...] > > Sure he was. It was a good guess. But still a guess. > > Since the code that was posted was useless on its own, it's obvious that > code was not the code the OP actually was using. > > Once we know the code posted isn't the code actually being used, it's > impossible to say for sure what the code actually being used really > looks like. > > Maybe it was, as the posted code did, creating a new object each time. > Maybe it wasn't. > > You can ASSume it was if you like, but some of us prefer to stick with > what we actually _know_. The posted code was incorrect and could give the described symptoms. Assuming under those circumstances that the incorrectness indeed cause the symptoms is more than guessing/assuming. Not pointing that out but wanting a complete program just in case there were a second incorrectness that coincidentally would cause the same symptoms is absurd. Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Re: Buffered reading seems to corrupt data stream Arne Vajhøj <arne@vajhoej.dk> - 2011-11-06 18:23 -0500
Re: Buffered reading seems to corrupt data stream Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-11-06 16:03 -0800
Re: Buffered reading seems to corrupt data stream Arne Vajhøj <arne@vajhoej.dk> - 2011-11-06 19:46 -0500
Re: Buffered reading seems to corrupt data stream Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-11-06 17:35 -0800
Re: Buffered reading seems to corrupt data stream Arne Vajhøj <arne@vajhoej.dk> - 2011-11-06 21:16 -0500
Re: Buffered reading seems to corrupt data stream Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-11-06 18:30 -0800
Re: Buffered reading seems to corrupt data stream Arne Vajhøj <arne@vajhoej.dk> - 2011-11-06 21:50 -0500
csiph-web