Java Temp Directory Get getTempDir()

Here you can find the source of getTempDir()

Description

get Temp Dir

License

Open Source License

Declaration

public static String getTempDir() 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2011 Sebastian Schmidt and others. All rights reserved. This
 * program and the accompanying materials are made available under the terms of
 * the Eclipse Public License v1.0 which accompanies this distribution, and is
 * available at http://www.eclipse.org/legal/epl-v10.html
 * /*from w  w w  .  j a  v a 2 s  . c  om*/
 * Contributors: Sebastian Schmidt - initial API and implementation
 ******************************************************************************/

public class Main {
    public static String getTempDir() {
        return System.getProperty("java.io.tmpdir") + "/build_" + Long.toString(System.nanoTime());
    }
}

Related

  1. getTempDir()
  2. getTempDir()
  3. getTempDir()
  4. getTempDir()
  5. getTempDir()