java.lang.Object
org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.BasicObject
org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.basic.ExGuid
All Implemented Interfaces:
IFSSHTTPBSerializable

public class ExGuid extends BasicObject
  • Field Details

    • ExtendedGUIDNullType

      public static final int ExtendedGUIDNullType
      Specify the extended GUID null type value.
      See Also:
    • ExtendedGUID5BitUintType

      public static final int ExtendedGUID5BitUintType
      Specify the extended GUID 5 Bit int type value.
      See Also:
    • ExtendedGUID10BitUintType

      public static final int ExtendedGUID10BitUintType
      Specify the extended GUID 10 Bit int type value.
      See Also:
    • ExtendedGUID17BitUintType

      public static final int ExtendedGUID17BitUintType
      Specify the extended GUID 17 Bit int type value.
      See Also:
    • ExtendedGUID32BitUintType

      public static final int ExtendedGUID32BitUintType
      Specify the extended GUID 32 Bit int type value.
      See Also:
    • type

      public int type
    • value

      public int value
    • guid

      public UUID guid
  • Constructor Details

    • ExGuid

      public ExGuid(int value, UUID identifier)
      Initializes a new instance of the ExGuid class with specified value.
      Parameters:
      value - Specify the ExGUID Value.
      identifier - Specify the ExGUID GUID value.
    • ExGuid

      public ExGuid(ExGuid guid2)
      Initializes a new instance of the ExGuid class, this is the copy constructor.
      Parameters:
      guid2 - Specify the ExGuid instance where copies from.
    • ExGuid

      public ExGuid()
      Initializes a new instance of the ExGuid class, this is a default constructor.
  • Method Details

    • serializeToByteList

      public List<Byte> serializeToByteList() throws IOException
      This method is used to convert the element of ExGuid basic object into a byte List.
      Specified by:
      serializeToByteList in interface IFSSHTTPBSerializable
      Specified by:
      serializeToByteList in class BasicObject
      Returns:
      Return the byte list which store the byte information of ExGuid.
      Throws:
      IOException
    • equals

      public boolean equals(Object obj)
      Override the Equals method.
      Overrides:
      equals in class Object
      Parameters:
      obj - Specify the object.
      Returns:
      Return true if equals, otherwise return false.
    • hashCode

      public int hashCode()
      Override the GetHashCode.
      Overrides:
      hashCode in class Object
      Returns:
      Return the hash value.
    • doDeserializeFromByteArray

      protected int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws IOException
      This method is used to deserialize the ExGuid basic object from the specified byte array and start index.
      Specified by:
      doDeserializeFromByteArray in class BasicObject
      Parameters:
      byteArray - Specify the byte array.
      startIndex - Specify the start index from the byte array.
      Returns:
      Return the length in byte of the ExGuid basic object.
      Throws:
      IOException