code: public static void checkFileValidity(File file) throws IOException {
      if (!file.exists()) {
        throw new IOException(ExceptionMessageMap.getMessage("020001") + "  { filename=["
            + file.getName() + "] }");
      }
    }
docs: Checks that the specified file exists.
  
  @param file
  File or directory path