Java Temp Directory Get getTempDir()

Here you can find the source of getTempDir()

Description

Returns the temp directory for this machine.

License

Open Source License

Declaration

public static String getTempDir() 

Method Source Code

//package com.java2s;

public class Main {
    /**//from   w ww .ja  va2 s.co  m
     * Returns the temp directory for this machine.
     */
    public static String getTempDir() {
        String tempDir = System.getProperty("java.io.tmpdir");
        if (!tempDir.endsWith(java.io.File.separator))
            tempDir += java.io.File.separator;
        return tempDir;
    }
}

Related

  1. getTempDir()
  2. getTempDir()
  3. getTempDir()
  4. getTempDir()
  5. getTempDir()
  6. getTempDir()
  7. getTempDir()
  8. getTempDir()
  9. getTempDir()