class FileUtilities {

    public static File ensureSuffix(File file, String suffix)
    {
        if (suffix.equalsIgnoreCase(getSuffix(file)))
        {
            return file;
        }
        return new File(new StringBuilder(file.getPath()).append('.').append(suffix).toString());
    }

    private  FileUtilities();

}