public final class GlobalIdentifier
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
GlobalIdentifier()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private static byte[] |
getBytes(java.nio.ByteBuffer buffer,
boolean bigEndian)
Reads bytes from the supplied byte buffer.
|
private static void |
putBytes(java.nio.ByteBuffer buffer,
byte[] bytes,
boolean bigEndian)
Writes a long into the supplied byte buffer.
|
static byte[] |
toBytes(java.lang.String guid)
Converts the supplied GUID to it's binary format.
|
static java.lang.String |
toString(byte[] guid)
Converts the supplied GUID to it's string format.
|
public static java.lang.String toString(byte[] guid)
guid - to convertpublic static byte[] toBytes(java.lang.String guid)
guid - to convertprivate static byte[] getBytes(java.nio.ByteBuffer buffer,
boolean bigEndian)
buffer - to read bytes frombigEndian - whether to return the bytes as big endianprivate static void putBytes(java.nio.ByteBuffer buffer,
byte[] bytes,
boolean bigEndian)
buffer - to write long tobytes - to writebigEndian - whether to write the bytes as big endian