Java Temp File Create getUniqueFileName()

Here you can find the source of getUniqueFileName()

Description

get Unique File Name

License

Open Source License

Declaration

public static String getUniqueFileName() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

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

public class Main {
    public static String getUniqueFileName() {
        return new SimpleDateFormat("yyyy_MM_dd__HH_mm_ss_SSS").format(new Date(System.currentTimeMillis()));
    }/*from   ww  w .  j  a va  2s  .  c  om*/
}

Related

  1. getTempFilePath(String signatureRequestId)
  2. getTempFiles()
  3. getTempFileWithFullPath()
  4. getUniqueAFileName(String ext)
  5. getUniqueFile(File dir, String prefix, String suffix)
  6. getUniqueFilename(String filename, String extension)
  7. getUniqueFileName(String fileNamePrefix, String fileExtension)
  8. getUniqueFileName(String originalFileName)
  9. getUniqueTempFile(final boolean autoDelete, final File parentFolder, final String suffix)