[615] in java-interest
Re: available() always returns 0?
daemon@ATHENA.MIT.EDU (Jonathan Payne)
Fri Jul 7 23:43:46 1995
Date: Thu, 6 Jul 1995 10:43:48 -0700
From: jpayne@starwave.com (Jonathan Payne)
To: java-interest@java.Eng.Sun.COM
Yes, but it's overridden by FileInputStream to return the right thing.
Unfortunately, SocketInputStream doesn't override that method to do
the right thing, and so it returns 0 there all the time. I think it's
going to be fixed for beta.
> From: grover@ra.isisnet.com (Gary Joseph Bowdridge)
> Date: Thu, 6 Jul 1995 07:32:19 -0300 (ADT)
> Sender: owner-java-interest@java.sun.com
> Precedence: bulk
> X-Info: To unsubscribe, send 'unsubscribe' to java-interest-request@java.sun.com
> Content-Type: text
> Content-Length: 481
>
> the method (in class InputStream):
>
> public int available() {
> return 0;
> }
>
>
> (obviously) always returns 0... Has this simply not been implemented?
> if not, i guess this brings me back to how do i do a non-blocking
> read on a stream?
>
> I suppose its moot once i figure out how to send a thread off
> to do the reading... hints?
>
> ___
> grover@ra.isisnet.com
>
> -
> Note to Sun employees: this is an EXTERNAL mailing list!
> Info: send 'help' to java-interest-request@java.sun.com
>
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com