public boolean ready() throws IOException {
  if (_input == null)   throw new IOException("Reader closed");
  if (_index == _input.length())   return false;
  return true;
}

public boolean ready ( ) throws IOException { if ( _input == null ) throw new IOException ( "Reader closed" ) ; if ( _index == _input . length ( ) ) return false ; return true ; }
indicates if this stream is ready to be read .
