This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [cp-patches] Re: Patch: FYI: fix http Headers oddity
- From: Chris Burdess <dog at bluezoo dot org>
- To: Bryce McKinlay <mckinlay at redhat dot com>
- Cc: tromey at redhat dot com, classpath-patches at gnu dot org,Java Patch List <java-patches at gcc dot gnu dot org>
- Date: Thu, 19 May 2005 09:22:58 +0100
- Subject: Re: [cp-patches] Re: Patch: FYI: fix http Headers oddity
- References: <m3ekc6vqhn.fsf@localhost.localdomain> <42891BF0.5000702@redhat.com>
Bryce McKinlay wrote:
> Does anyone know why we use the custom "LineInputStream" class instead
> of, say, BufferedReader here? At one point BufferedReader.readLine() was
> buggy and could "read too much" and block before returning a line, but I
> believe we have fixed that. Code re-use would help to avoid bugs like
> this ;-)
Erm, because LineInputStream is an InputStream dealing with bytes, and
BufferedReader is a Reader dealing with chars.
--
Chris Burdess