Here you can find the source of getTempFile(String fileId)
public static File getTempFile(String fileId)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static File getTempFile(String fileId) { return new File(getTempDirectory(), fileId); }//from ww w .j a v a 2 s. co m private static File getTempDirectory() { return new File(System.getProperty("java.io.tmpdir")); } }