Class GUID
- java.lang.Object
-
- org.apache.tika.parser.microsoft.onenote.GUID
-
- All Implemented Interfaces:
Comparable<GUID>
public class GUID extends Object implements Comparable<GUID>
-
-
Constructor Summary
Constructors Constructor Description GUID(int[] guid)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(GUID o)
boolean
equals(Object o)
static GUID
fromCurlyBraceUTF16Bytes(byte[] guid)
Converts a GUID of format: {AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE} (in bytes) to a GUID object.int[]
getGuid()
String
getGuidString()
int
hashCode()
static int
memcmp(int[] b1, int[] b2, int sz)
static GUID
nil()
GUID
setGuid(int[] guid)
List<Byte>
toByteArray()
String
toString()
-
-
-
Method Detail
-
fromCurlyBraceUTF16Bytes
public static GUID fromCurlyBraceUTF16Bytes(byte[] guid)
Converts a GUID of format: {AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE} (in bytes) to a GUID object.- Parameters:
guid
- The bytes that contains string in UTF-16 format of {AAAAAAAA-BBBB-CCCC-DDDD -EEEEEEEEEEEE}- Returns:
- GUID object parsed from guid bytes.
-
memcmp
public static int memcmp(int[] b1, int[] b2, int sz)
-
nil
public static GUID nil()
-
compareTo
public int compareTo(GUID o)
- Specified by:
compareTo
in interfaceComparable<GUID>
-
getGuid
public int[] getGuid()
-
setGuid
public GUID setGuid(int[] guid)
-
getGuidString
public String getGuidString()
-
-