Package org.red5.io.utils
Class RandomGUID
- java.lang.Object
-
- org.red5.io.utils.RandomGUID
-
public class RandomGUID extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringcreate()static StringfromByteArray(byte[] ba)Returns a uuid / guid for a given byte array.static StringgetPrettyFormatted(String str)Returns a nice neat formatted string.static byte[]toByteArray(String uid)Returns a byte array for the given uuid or guid.
-
-
-
Method Detail
-
toByteArray
public static final byte[] toByteArray(String uid)
Returns a byte array for the given uuid or guid.- Parameters:
uid- unique id- Returns:
- array of bytes containing the id
-
fromByteArray
public static String fromByteArray(byte[] ba)
Returns a uuid / guid for a given byte array.- Parameters:
ba- array of bytes containing the id- Returns:
- id
-
getPrettyFormatted
public static String getPrettyFormatted(String str)
Returns a nice neat formatted string.- Parameters:
str- unformatted string- Returns:
- formatted string
-
create
public static String create()
-
-