Java Path File Name nio getPathInTmpDir(String fileName)

Here you can find the source of getPathInTmpDir(String fileName)

Description

get Path In Tmp Dir

License

Creative Commons License

Declaration

public static Path getPathInTmpDir(String fileName) 

Method Source Code

//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);
    }
}

Related

  1. getPath(String dirName, String fileName)
  2. getPathByClassName(Class clazz, String relativeDir)
  3. getPathByFilename(String filename, List files)
  4. getPathByFormat(String nameBeforeDot, String nameAfterDot, Path parent, int i, String date)
  5. getPathCleanName(Path object)
  6. GetPathName(String path)
  7. getPathOfClass(Class cls, String filename)
  8. getPathProperty(Properties props, String propName)
  9. getPaths(Path dir, String fileNames)