package de.dwslab.ai.util;

public final class Utils {

}

@@ -27,34 +27,2871 @@
 %0D%0A%0D%0A
-public final class Utils %7B
+import java.io.File;%0D%0Aimport java.io.IOException;%0D%0Aimport java.nio.file.Path;%0D%0A%0D%0Apublic final class Utils %7B%0D%0A%0D%0A    /**%0D%0A     * Creates an empty file in the default temporary-file directory, using the given prefix and%0D%0A     * suffix to generate its name. The deleteOnExit property is set by default.%0D%0A     *%0D%0A     * @param prefix%0D%0A     *            The prefix string to be used in generating the file's name; must be at least three%0D%0A     *            characters long%0D%0A     * @param suffix%0D%0A     *            The suffix string to be used in generating the file's name; may be null, in which%0D%0A     *            case the suffix %22.tmp%22 will be used%0D%0A     * @return the path to the newly created file that did not exist before this method was invoked%0D%0A     *%0D%0A     * @throws IllegalArgumentException%0D%0A     *             - If the prefix argument contains fewer than three characters%0D%0A     * @throws IOException%0D%0A     *             - If a file could not be created%0D%0A     * @throws SecurityException%0D%0A     *             - If a security manager exists and its%0D%0A     *             java.lang.SecurityManager.checkWrite(java.lang.String) method does not allow a%0D%0A     *             file to be created%0D%0A     *%0D%0A     * @see %7B@link File#createTempFile(String, String)%7D%0D%0A     */%0D%0A    public static File createTempFile(String prefix, String suffix) throws IOException %7B%0D%0A        File tempFile = File.createTempFile(prefix, suffix);%0D%0A        tempFile.deleteOnExit();%0D%0A        return tempFile;%0D%0A    %7D%0D%0A%0D%0A    /**%0D%0A     * Creates an empty file in the default temporary-file directory, using the given prefix and%0D%0A     * suffix to generate its name. The deleteOnExit property is set by default.%0D%0A     *%0D%0A     * @param prefix%0D%0A     *            The prefix string to be used in generating the file's name; must be at least three%0D%0A     *            characters long%0D%0A     * @param suffix%0D%0A     *            The suffix string to be used in generating the file's name; may be null, in which%0D%0A     *            case the suffix %22.tmp%22 will be used%0D%0A     * @return the path to the newly created file that did not exist before this method was invoked%0D%0A     *%0D%0A     * @throws IllegalArgumentException%0D%0A     *             - If the prefix argument contains fewer than three characters%0D%0A     * @throws IOException%0D%0A     *             - If a file could not be created%0D%0A     * @throws SecurityException%0D%0A     *             - If a security manager exists and its%0D%0A     *             java.lang.SecurityManager.checkWrite(java.lang.String) method does not allow a%0D%0A     *             file to be created%0D%0A     * %0D%0A     * @see %7B@link File#createTempFile(String, String)%7D%0D%0A     */%0D%0A    public static Path createTempPath(String prefix, String suffix) throws IOException %7B%0D%0A        File tempFile = File.createTempFile(prefix, suffix);%0D%0A        tempFile.deleteOnExit();%0D%0A        return tempFile.toPath();%0D%0A    %7D
 %0D%0A%0D%0A

Extend the Utils methods to create temp files.