protected boolean noMoreCharacters() throws IOException {
  if (avail == 0) {
    avail=is.read(buffer);
    if (avail <= 0) {
      avail=0;
      return true;
    }
    pos=0;
  }
  return false;
}

protected boolean noMoreCharacters ( ) throws IOException { if ( avail == 0 ) { avail = is . read ( buffer ) ; if ( avail <= 0 ) { avail = 0 ; return true ; } pos = 0 ; } return false ; }
checks whether no more bytes will be returned . < p > this method will refill the internal buffer .
