Java Temp Folder Create getTempPath()

Here you can find the source of getTempPath()

Description

get Temp Path

License

Open Source License

Declaration

public static String getTempPath() 

Method Source Code

//package com.java2s;
/*//  w  w w.  j  ava 2s . c om
 * PortUtil.cs
 * Copyright ? 2009-2011 kbinani
 *
 * This file is part of org.kbinani.
 *
 * org.kbinani is free software; you can redistribute it and/or
 * modify it under the terms of the BSD License.
 *
 * org.kbinani is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */

public class Main {
    public static String getTempPath() {
        String ret = System.getProperty("java.io.tmpdir");

        if (ret == null) {
            return "";
        } else {
            return ret;
        }
    }
}

Related

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