Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
> man, i should learn from u :p You know, I wasn't really looking too closely at the problem before, I just changed the coding style of the method, mostly. Now, having looked at your other post to Hiran on this subject, it occurs to me that the byte buffer (and MAX_LEN) can be tossed out of the picture entirely. Instead, just read a char at a time an add it to the StringBuffer (or if it is LINEFEED, add '\n' -- I guess the reason for doing this is that it would do the right thing if you are going from Unix to DOS).
Replies:
|
Sponsored Links
|