tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5 CoyoteInputStream.java
Date Thu, 03 Oct 2002 17:20:52 GMT
costin      2002/10/03 10:20:52

  Modified:    coyote/src/java/org/apache/coyote/tomcat4
                        CoyoteInputStream.java
               coyote/src/java/org/apache/coyote/tomcat5
                        CoyoteInputStream.java
  Log:
  Added available().
  
  PR: 12870
  
  Revision  Changes    Path
  1.2       +4 -0      jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteInputStream.java
  
  Index: CoyoteInputStream.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteInputStream.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CoyoteInputStream.java	7 Mar 2002 04:27:23 -0000	1.1
  +++ CoyoteInputStream.java	3 Oct 2002 17:20:52 -0000	1.2
  @@ -133,6 +133,10 @@
   
       }
   
  +    public int available() throws IOException {
  +        if( pos < end ) return end-pos;
  +        return 0;
  +    }
   
       public int read(byte[] b) throws IOException {
   
  
  
  
  1.2       +4 -0      jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteInputStream.java
  
  Index: CoyoteInputStream.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteInputStream.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CoyoteInputStream.java	4 Aug 2002 19:39:49 -0000	1.1
  +++ CoyoteInputStream.java	3 Oct 2002 17:20:52 -0000	1.2
  @@ -133,6 +133,10 @@
   
       }
   
  +    public int available() throws IOException {
  +        if( pos < end ) return end-pos;
  +        return 0;
  +    }
   
       public int read(byte[] b) throws IOException {
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message