Perhaps this should have an @since tag added, as it's a new method?

---- [EMAIL PROTECTED] wrote: 
> Modified: 
> jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/AutoCloseInputStream.java
> URL: 
> http://svn.apache.org/viewvc/jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/AutoCloseInputStream.java?view=diff&rev=505890&r1=505889&r2=505890
> ==============================================================================
> --- 
> jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/AutoCloseInputStream.java
>  (original)
> +++ 
> jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/AutoCloseInputStream.java
>  Sun Feb 11 03:25:25 2007
> @@ -131,6 +131,23 @@
>      }
>  
>      /**
> +     * Obtains the number of bytes that can be read without blocking.
> +     *
> +     * @return  the number of bytes available without blocking
> +     * @throws IOException in case of a problem
> +     */
> +    public int available() throws IOException {
> +        int a = 0; // not -1
> +
> +        if (isReadAllowed()) {
> +            a = super.available();
> +            // no checkClose() here, available() can't trigger EOF
> +        }
> +
> +        return a;
> +    }
> +


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to