gcc/libjava ChangeLog java/io/BufferedReader.j ...
membar@gcc.gnu.org
membar@gcc.gnu.org
Fri Jan 30 06:33:00 GMT 2004
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: membar@gcc.gnu.org 2004-01-30 06:33:43
Modified files:
libjava : ChangeLog
libjava/java/io: BufferedReader.java InputStreamReader.java
Log message:
* java/io/BufferedReader.java (sbuf): New field.
(readLine): Use String.valueOf instead of new String() as per
Per Bothner's suggestion. Use instance sbuf field instead of a
local StringBuffer instance.
* java/io/InputStreamReader.java (read(char[],int,int)): Pass the
caller's buffer to refill().
(read(void)): Pass our internal work buffer to refill if our
input queue is empty.
(refill): Changed return type to int. Use the specified buffer
instead of our work buffer as per Bryce McKinlay's suggestion.
Return the number of characters read or -1 for EOF.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.2629&r2=1.2630
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/io/BufferedReader.java.diff?cvsroot=gcc&r1=1.16&r2=1.17
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/io/InputStreamReader.java.diff?cvsroot=gcc&r1=1.15&r2=1.16
More information about the Gcc-cvs
mailing list