Class ND4JFileUtils


  • public class ND4JFileUtils
    extends Object
    • Method Detail

      • createTempFile

        public static File createTempFile​(String prefix,
                                          String suffix)
        Create a temporary file in the location specified by ND4JSystemProperties.ND4J_TEMP_DIR_PROPERTY if 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 characeters
        suffix - 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 by ND4JSystemProperties.ND4J_TEMP_DIR_PROPERTY if set, or the default temporary directory (usually specified by java.io.tmpdir system property)
        Returns:
        Temporary directory