Article View: borland.public.jbuilder.java.language
Article #15941Re: BufferdInputStream, how they work?
From: Steve Horsley
Date: Mon, 19 Apr 1999 00:00
Date: Mon, 19 Apr 1999 00:00
18 lines
1219 bytes
1219 bytes
Glad you got it working, Jason. Sorry to hijack your thread, but this subject is something I have been wondering about for a while... The Sun JDK documentation describes a buffered reader as repeatedly reading the input stream character-by-character in order to fill the buffer. This sounds absurd to me - I would expect files to be block-read for efficiency. Does anyone know exactly how the buffered reader works (on files). Does it actually block-read, or does it really make repeated calls to the input stream for individual characters? I expect the answer would dramatically affect performance. Regards, Steve.
Technical Details
Message-ID:
<371AEB79.34D6@cwcom.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37166AE3.8D3FA85C@hotmail.com> <3716AAE6.5DCAC629@hotmail.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,5398bd6854fe923e X-Google-Attributes: gidf74b3,public From: Steve Horsley <steve.horsley@cwcom.co.uk> Subject: Re: BufferdInputStream, how they work? Date: 1999/04/19 Message-ID: <371AEB79.34D6@cwcom.co.uk> X-Deja-AN: 468219712 Content-Transfer-Encoding: 7bit References: <37166AE3.8D3FA85C@hotmail.com> <3716AAE6.5DCAC629@hotmail.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language