java.lang.Object
org.apache.tika.parser.microsoft.onenote.GUID
All Implemented Interfaces:
Comparable<GUID>

public class GUID extends Object implements Comparable<GUID>
  • Constructor Details

    • GUID

      public GUID(int[] guid)
  • Method Details

    • 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 interface Comparable<GUID>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getGuid

      public int[] getGuid()
    • setGuid

      public GUID setGuid(int[] guid)
    • getGuidString

      public String getGuidString()
    • toByteArray

      public List<Byte> toByteArray()