Java Temp File Create getTempFile(String fileId)

Here you can find the source of getTempFile(String fileId)

Description

get Temp File

License

Open Source License

Declaration

public static File getTempFile(String fileId) 

Method Source Code


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

Related

  1. getTempFile(final File stackFile)
  2. getTempFile(final String directory, final String suffix, boolean autodelete)
  3. getTempFile(final String name)
  4. getTempFile(String config)
  5. getTempFile(String extension)
  6. getTempFile(String filePrefix, boolean deleteOnExit)
  7. getTempFile(String name)
  8. getTempFile(String tmpdir)
  9. getTempFileDir()