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

@param file
File or directory path
Checks that the specified file exists .