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

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.palinacquisition!news.posted.palinacquisition.POSTED!not-for-mail
NNTP-Posting-Date Sun, 06 Nov 2011 19:35:59 -0600
Date Sun, 06 Nov 2011 17:35:58 -0800
From Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com>
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: Buffered reading seems to corrupt data stream
References <y4Cdne-uvN4kUBTTnZ2dnUVZ_hWdnZ2d@westnet.com.au> <j6cv50$2fk$2@dont-email.me> <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>
In-Reply-To <4eb72a48$0$285$14726298@news.sunsite.dk>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
Message-ID <WdedncesRr1iqCrTnZ2dnUVZ_rSdnZ2d@posted.palinacquisition> (permalink)
Lines 29
X-Usenet-Provider http://www.giganews.com
NNTP-Posting-Host 50.46.118.188
X-Trace sv3-wZM2ZjX7GS96CDmbg31iG1QLXM6yhD+oggQYhTdx16GnShoVDFlI5oY2rDYCs14R4LhHgpmYL63B6mO!tJtRUxnP1rYJ10tCO05ruVEEp2BsSXeOdRsPhfLTxFBiLudoHJUbDzegpp/Jm4k8MuWWWjvhC281!3B9IfCO8CONfWcuGyW/48WTmhvFl+M0pkO3ExE1hXMg=
X-Complaints-To abuse@iinet.com
X-DMCA-Complaints-To abuse@iinet.com
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2633
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9719

Show key headers only | 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