Package org.nd4j.common.util
Class ND4JFileUtils
- java.lang.Object
-
- org.nd4j.common.util.ND4JFileUtils
-
public class ND4JFileUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FilecreateTempFile(String prefix, String suffix)Create a temporary file in the location specified byND4JSystemProperties.ND4J_TEMP_DIR_PROPERTYif set, or the default temporary directory (usually specified by java.io.tmpdir system property)static FilegetTempDir()Get the temporary directory.
-
-
-
Method Detail
-
createTempFile
public static File createTempFile(String prefix, String suffix)
Create a temporary file in the location specified byND4JSystemProperties.ND4J_TEMP_DIR_PROPERTYif set, or the default temporary directory (usually specified by java.io.tmpdir system property)- Parameters:
prefix- Prefix for generating file's name; must be at least 3 characeterssuffix- Suffix for generating file's name; may be null (".tmp" will be used if null)- Returns:
- A temporary file
-
getTempDir
public static File getTempDir()
Get the temporary directory. This is the location specified byND4JSystemProperties.ND4J_TEMP_DIR_PROPERTYif set, or the default temporary directory (usually specified by java.io.tmpdir system property)- Returns:
- Temporary directory
-
-