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() {
        File tempDirectory = null;
        String property = "java.io.tmpdir";
        String tempDirectoryAsString = System.getProperty(property);
        if (tempDirectoryAsString != null) {
            tempDirectory = new File(tempDirectoryAsString);
        }//from  w  w w  . j ava2 s .co  m
        return tempDirectory;
    }
}

Related

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