commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpConnection.java
Date Tue, 11 Nov 2003 17:35:07 GMT
olegk       2003/11/11 09:35:07

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpConnection.java
  Log:
  WrappedInputStream now overrides InputStream#available method
  
  Contributed by Oleg Kalnichevski
  
  Revision  Changes    Path
  1.81      +13 -4     jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnection.java
  
  Index: HttpConnection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnection.java,v
  retrieving revision 1.80
  retrieving revision 1.81
  diff -u -r1.80 -r1.81
  --- HttpConnection.java	8 Nov 2003 21:26:03 -0000	1.80
  +++ HttpConnection.java	11 Nov 2003 17:35:07 -0000	1.81
  @@ -1400,6 +1400,15 @@
               }
           }
   
  +        public int available() throws IOException
  +        {
  +            try {
  +                return in.available();
  +            } catch (IOException ioe) {
  +                throw handleException(ioe);
  +            }
  +        }
  +
       }
   
       // ------------------------------------------------------- Static Variable
  
  
  

---------------------------------------------------------------------
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