Java Temp Folder Create getTempPath()

Here you can find the source of getTempPath()

Description

get Temp Path

License

Common Public License

Declaration

public static synchronized String getTempPath() 

Method Source Code

//package com.java2s;
/***********************************************************
 *      This software is part of the ProM package          *
 *             http://www.processmining.org/               *
 *                                                         *
 *            Copyright (c) 2003-2006 TU/e Eindhoven       *
 *                and is licensed under the                *
 *            Common Public License, Version 1.0           *
 *        by Eindhoven University of Technology            *
 *           Department of Information Systems             *
 *                 http://is.tm.tue.nl                     *
 *                                                         *
 **********************************************************/

public class Main {
    public static synchronized String getTempPath() {
        String path = System.getProperty("java.io.tmpdir", "");
        String sep = System.getProperty("file.separator", "\\");

        return path.endsWith(sep) ? path : path + sep;
    }//from  w  w w .j  a v  a  2  s  .  co m
}

Related

  1. getTempFolder(String TEMP_FOLDER_NAME)
  2. getTempFolderPath()
  3. getTempFolderPath()
  4. getTempPath()
  5. getTempPath()
  6. getTempPath()
  7. GetTempPath()
  8. getTempPath()
  9. getTempPath()