public void close() throws IOException {
  if (inputStream != null) {
    try {
      inputStream.close();
    }
  finally {
      inputStream=null;
    }
  }
}

public void close ( ) throws IOException { if ( inputStream != null ) { try { inputStream . close ( ) ; } finally { inputStream = null ; } } }
close inputstream if we have one .
