public void close() throws IOException {
  if (is != System.in)   is.close();
  buffer=null;
}

public void close ( ) throws IOException { if ( is != System . in ) is . close ( ) ; buffer = null ; }
closes the bit stream . all resources associated to the stream are released .
