X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.utils%2Fsrc%2Forg%2Fsimantics%2Futils%2FTempFiles.java;h=e814a11fac663a59c14fd1231991879afbdc67ec;hp=0194ee9a8cbb9a6ee889a111878d263d167719a7;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.utils/src/org/simantics/utils/TempFiles.java b/bundles/org.simantics.utils/src/org/simantics/utils/TempFiles.java index 0194ee9a8..e814a11fa 100644 --- a/bundles/org.simantics.utils/src/org/simantics/utils/TempFiles.java +++ b/bundles/org.simantics.utils/src/org/simantics/utils/TempFiles.java @@ -1,36 +1,36 @@ -package org.simantics.utils; - -import java.io.File; - -public interface TempFiles { - - /** - * @return the directory containing all temporary file names generated by - * this instance. - */ - public File getRoot(); - - /** - * @param directory - * possible directory under {@link #getRoot()} - * @param suffix - * suffix of generated temporary file name without the '.' - * character separating the random start and the extension - * (suffix) - * @return temporary file with a random name that ends in - * suffix and is contained by a directory under - * {@link #getRoot()} with the name directory - */ - public File getTempfile(String directory, String suffix); - - /** - * Create a new TempFiles instance that will produce temporary file names in - * a specified subdirectory of this TempFiles location. - * - * @param directory - * @return the sub-TempFiles instance - * @since 1.16 - */ - public TempFiles subdirectory(String directory); - -} +package org.simantics.utils; + +import java.io.File; + +public interface TempFiles { + + /** + * @return the directory containing all temporary file names generated by + * this instance. + */ + public File getRoot(); + + /** + * @param directory + * possible directory under {@link #getRoot()} + * @param suffix + * suffix of generated temporary file name without the '.' + * character separating the random start and the extension + * (suffix) + * @return temporary file with a random name that ends in + * suffix and is contained by a directory under + * {@link #getRoot()} with the name directory + */ + public File getTempfile(String directory, String suffix); + + /** + * Create a new TempFiles instance that will produce temporary file names in + * a specified subdirectory of this TempFiles location. + * + * @param directory + * @return the sub-TempFiles instance + * @since 1.16 + */ + public TempFiles subdirectory(String directory); + +}