@Override public void close() throws IOException {
  if (!closed) {
    inf.end();
    closed=true;
    eof=true;
    super.close();
  }
}

@ Override public void close ( ) throws IOException { if ( ! closed ) { inf . end ( ) ; closed = true ; eof = true ; super . close ( ) ; } }
closes the input stream .
