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