commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject cvs commit: jakarta-commons-sandbox/io/src/java/org/apache/commons/io/input CountingInputStream.java
Date Sun, 23 Nov 2003 09:20:21 GMT
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message