bayard 2003/11/23 01:20:21
Modified: io/src/java/org/apache/commons/io/input
CountingInputStream.java
Log:
count to this.count so I can point out a change in the last commit from Filter to
Proxy stream. FilterStream does not correctly proxy methods but optimises.
Revision Changes Path
1.5 +4 -4
jakarta-commons-sandbox/io/src/java/org/apache/commons/io/input/CountingInputStream.java
Index: CountingInputStream.java
===================================================================
RCS file:
/home/cvs/jakarta-commons-sandbox/io/src/java/org/apache/commons/io/input/CountingInputStream.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- CountingInputStream.java 23 Nov 2003 09:18:55 -0000 1.4
+++ CountingInputStream.java 23 Nov 2003 09:20:20 -0000 1.5
@@ -79,20 +79,20 @@
/** @see java.io.InputStream#read(byte[]) */
public int read(byte[] b) throws IOException {
int found = super.read(b);
- count += found;
+ this.count += found;
return found;
}
/** @see java.io.InputStream#read(byte[], int, int) */
public int read(byte[] b, int off, int len) throws IOException {
int found = super.read(b, off, len);
- count += found;
+ this.count += found;
return found;
}
/** @see java.io.InputStream#read() */
public int read() throws IOException {
- count++;
+ this.count++;
return super.read();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]