|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.util.UUIDUtils
public class UUIDUtils
Static class that creates GUIDs according to the principles laid out in UUIDs and GUIDs. Specifically, these GUIDs have elements specific to the time and place of their creation; a unique TOD value (but the low-level IEEE 802/MAC address of the host system is not determined). The rest of the GUID is a sequence of random hex digits from a cryptographically strong random number generator.
This class differs from the Leach specification in a few ways. It does not use a persistent store to track the clock sequence and does not coordinate ids given out by 2 processes on the same machine. It does not follow the formal clock sequence guidelines but instead uses random numbers for all but the timestamp.
| Method Summary | |
|---|---|
static String |
createUUID()
Use the createUUID function when you need a unique string that you will use as a persistent identifier in a distributed environment. |
static String |
createUUID(boolean secure)
|
static String |
fromByteArray(byte[] ba)
Converts a 128-bit UID encoded as a byte[] to a String representation. |
static boolean |
isUID(String uid)
A utility method to check whether a String value represents a correctly formatted UID value. |
static byte[] |
toByteArray(String uid)
Converts a UID formatted String to a byte[]. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String createUUID()
public static String createUUID(boolean secure)
secure - Boolean indicating whether to create a secure UUID.UUIDUtils.createUUID()public static String fromByteArray(byte[] ba)
ba - byte[] 16 bytes in length representing a 128-bit UID.
public static boolean isUID(String uid)
uid - The value to test whether it is formatted as a UID.
public static byte[] toByteArray(String uid)
uid - String representing a 128-bit UID.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/util/UUIDUtils.html