Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #9719

Re: Buffered reading seems to corrupt data stream

Date 2011-11-06 17:35 -0800
From Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com>
Newsgroups comp.lang.java.programmer
Subject Re: Buffered reading seems to corrupt data stream
References (2 earlier) <19587162.2005.1317743300210.JavaMail.geo-discussion-forums@prfh23> <bpGdnWtFWejMshbTnZ2dnUVZ_tOdnZ2d@posted.palinacquisition> <4eb716f1$0$283$14726298@news.sunsite.dk> <hoidnTzMrYOovSrTnZ2dnUVZ_hCdnZ2d@posted.palinacquisition> <4eb72a48$0$285$14726298@news.sunsite.dk>
Message-ID <WdedncesRr1iqCrTnZ2dnUVZ_rSdnZ2d@posted.palinacquisition> (permalink)

Show all headers | View raw


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

Pete

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Buffered reading seems to corrupt data stream "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-10-04 01:58 +1100
  Re: Buffered reading seems to corrupt data stream "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-10-04 02:26 +1100
    Re: Buffered reading seems to corrupt data stream Ronny Schütz <usenet.r96@gishpuppy.com> - 2011-10-03 17:54 +0200
      Re: Buffered reading seems to corrupt data stream "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-10-04 07:07 +1100
        Re: Buffered reading seems to corrupt data stream Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-10-03 13:18 -0700
      Re: Buffered reading seems to corrupt data stream "Qu0ll" <Qu0llSixFour@gmail.com> - 2011-10-04 10:54 +1100
    Re: Buffered reading seems to corrupt data stream Roedy Green <see_website@mindprod.com.invalid> - 2011-10-03 11:46 -0700
    Re: Buffered reading seems to corrupt data stream Silvio Bierman <silvio@moc.com> - 2011-11-07 11:00 +0100
  Re: Buffered reading seems to corrupt data stream Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-10-03 08:44 -0700
  Re: Buffered reading seems to corrupt data stream markspace <-@.> - 2011-10-03 11:33 -0700
    Re: Buffered reading seems to corrupt data stream Lew <lewbloch@gmail.com> - 2011-10-04 08:48 -0700
      Re: Buffered reading seems to corrupt data stream Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-10-04 09:07 -0700
        Re: Buffered reading seems to corrupt data stream Lew <lewbloch@gmail.com> - 2011-10-04 12:06 -0700
        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