public boolean ready() throws IOException {
  if (_byteBuffer != null) {
    return _byteBuffer.hasRemaining();
  }
 else {
    throw new IOException("Reader closed");
  }
}

public boolean ready ( ) throws IOException { if ( _byteBuffer != null ) { return _byteBuffer . hasRemaining ( ) ; } else { throw new IOException ( "Reader closed" ) ; } }
indicates if this stream is ready to be read .
