Java Temp Directory Get getTempDirectory()

Here you can find the source of getTempDirectory()

Description

get Temp Directory

License

Apache License

Declaration

public static File getTempDirectory() 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.File;

public class Main {
    public static File getTempDirectory() {
        return new File(getTempDirectoryPath());
    }/*ww w.ja  v  a  2s .co  m*/

    public static String getTempDirectoryPath() {
        return System.getProperty("java.io.tmpdir");
    }
}

Related

  1. getTempDirectory()
  2. getTempDirectory()
  3. getTempDirectory()
  4. getTempDirectory()
  5. getTempDirectory()
  6. getTempDirectory()
  7. getTempDirectory()
  8. getTempDirectory(Class c)
  9. getTempDirectory(String applicationName)