Author: toad
Date: 2007-09-20 21:35:55 +0000 (Thu, 20 Sep 2007)
New Revision: 15213
Modified:
trunk/freenet/src/freenet/support/io/LineReadingInputStream.java
Log:
more comments
Modified: trunk/freenet/src/freenet/support/io/LineReadingInputStream.java
===================================================================
--- trunk/freenet/src/freenet/support/io/LineReadingInputStream.java
2007-09-20 21:33:40 UTC (rev 15212)
+++ trunk/freenet/src/freenet/support/io/LineReadingInputStream.java
2007-09-20 21:35:55 UTC (rev 15213)
@@ -27,7 +27,7 @@
*/
public String readLine(int maxLength, int bufferSize, boolean utf)
throws IOException {
if(maxLength < bufferSize)
- bufferSize = maxLength + 1;
+ bufferSize = maxLength + 1; // Buffer too big, shrink
it (add 1 for the optional \r)
if(buf == null)
buf = new byte[Math.max(Math.min(128,maxLength),
Math.min(1024, bufferSize))];
int ctr = 0;