Package org.red5.io.utils
Class RandomGUID
java.lang.Object
org.red5.io.utils.RandomGUID
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
create()
static String
fromByteArray
(byte[] ba) Returns a uuid / guid for a given byte array.static String
getPrettyFormatted
(String str) Returns a nice neat formatted string.static final byte[]
toByteArray
(String uid) Returns a byte array for the given uuid or guid.
-
Field Details
-
hexChars
- See Also:
-
-
Constructor Details
-
RandomGUID
private RandomGUID()
-
-
Method Details
-
toByteArray
Returns a byte array for the given uuid or guid.- Parameters:
uid
- unique id- Returns:
- array of bytes containing the id
-
fromByteArray
Returns a uuid / guid for a given byte array.- Parameters:
ba
- array of bytes containing the id- Returns:
- id
-
getPrettyFormatted
Returns a nice neat formatted string.- Parameters:
str
- unformatted string- Returns:
- formatted string
-
create
-