Here you can find the source of getPathInTmpDir(String fileName)
public static Path getPathInTmpDir(String fileName)
//package com.java2s; /** Utility methods and constants for testing. * // ww w . ja v a 2 s. co m * @author Iovka Boneva * This document is licensed under a Creative Commons Attribution 3.0 License: http://creativecommons.org/licenses/by/3.0/ * 1 mars 2016 */ import java.nio.file.Path; import java.nio.file.Paths; public class Main { public static final String TMP_DIR = System.getProperty("java.io.tmpdir") + "/"; public static Path getPathInTmpDir(String fileName) { return Paths.get(TMP_DIR + "/" + fileName); } }