* 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. From-SVN: r76927
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| applet | Loading commit data... | |
| awt | Loading commit data... | |
| beans | Loading commit data... | |
| io | Loading commit data... | |
| lang | Loading commit data... | |
| math | Loading commit data... | |
| net | Loading commit data... | |
| nio | Loading commit data... | |
| rmi | Loading commit data... | |
| security | Loading commit data... | |
| sql | Loading commit data... | |
| text | Loading commit data... | |
| util | Loading commit data... |