Java UUID Create generateUUIDName(String filename)

Here you can find the source of generateUUIDName(String filename)

Description

generate UUID Name

License

Open Source License

Declaration

public static String generateUUIDName(String filename) 

Method Source Code


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

import java.util.UUID;

public class Main {
    public static String generateUUIDName(String filename) {
        String ext = filename.substring(filename.indexOf(".") + 1);
        return UUID.randomUUID().toString() + "." + ext;
    }//from   w ww .  ja v  a 2 s. c  o  m
}

Related

  1. generateUUID(String prefix)
  2. generateUuid(String seed)
  3. generateUUIDFileName(String fileName)
  4. generateUUIDFrom(String uuidString)
  5. generateUUIDFromString(String uuid)
  6. generateUUIDRandom()
  7. generateUuidStringStatic()
  8. generatorToken()
  9. generatorTransactionPath(String namespace)