|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.wsf.common.utils.UUIDGenerator
public class UUIDGenerator
Generates the string form of IETF variant UUIDs. See the latest IETF draft for more information about UUID generation. Currently only pseudo random (type 4) UUIDs are supported.
Constructor Summary | |
---|---|
UUIDGenerator()
|
Method Summary | |
---|---|
static java.lang.String |
convertToString(byte[] uuid)
Converts a UUID in byte array form to the IETF string format. |
static byte[] |
generateRandomUUIDBytes()
Generates a pseudo random UUID and returns it in byte array form. |
static java.lang.String |
generateRandomUUIDString()
Generates a pseudo random UUID and returns it the IETF specified String form. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UUIDGenerator()
Method Detail |
---|
public static byte[] generateRandomUUIDBytes()
public static java.lang.String generateRandomUUIDString()
convertToString(byte[])
for a description
of the format.
public static java.lang.String convertToString(byte[] uuid)
The BNF follows:
UUID ="-" "-" "-" "-" time_low = 4* time_mid = 2* time_high_and_version = 2* variant_and_sequence = 2* node = 6* hexOctet = hexDigit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "A" | "B" | "C" | "D" | "E" | "F"
uuid
- a 16 byte
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |