Function InputStream.readable

Returns true if there are any data to read. false means end of the stream.

abstract bool readable();