Java Temp File Create getTempFileName(String fileExt)

Here you can find the source of getTempFileName(String fileExt)

Description

get Temp File Name

License

Open Source License

Declaration

public static String getTempFileName(String fileExt) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {

    public static String getTempFileName(String fileExt) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSSS");
        return sdf.format(new Date()) + fileExt;
    }//  w ww . j a  va  2s . c  o  m
}

Related

  1. getTempFileFor(File file)
  2. getTempFileGivenName(File file)
  3. getTempFileName()
  4. getTempFileName()
  5. getTempFileName(String base, String ext)
  6. getTempFilePath(String name)
  7. getTempFilePath(String signatureRequestId)
  8. getTempFiles()
  9. getTempFileWithFullPath()