return stat(f.getAbsolutePath(), STAT_IS_READABLE) == 1;
return access(f.getAbsolutePath(), ACCESS_R_OK) == 0;
  public static boolean canRead(File f) {    SecurityManager security = System.getSecurityManager();    if (security != null)      security.checkRead(f.getPath());    return stat(f.getAbsolutePath(), STAT_IS_READABLE) == 1;  }