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

public class SerialNumber extends BasicObject
  • Field Details

    • type

      public int type
    • guid

      public UUID guid
    • value

      public long value
  • Constructor Details

    • SerialNumber

      public SerialNumber(UUID identifier, long value)
      Initializes a new instance of the SerialNumber class with specified values.
      Parameters:
      identifier - Specify the Guid value of the serialNumber.
      value - Specify the value of the serialNumber.
    • SerialNumber

      public SerialNumber(SerialNumber sn)
      Initializes a new instance of the SerialNumber class, this is the copy constructor.
      Parameters:
      sn - Specify the serial number where copy from.
    • SerialNumber

      public SerialNumber()
      Initializes a new instance of the SerialNumber class, this is default contractor
  • Method Details

    • serializeToByteList

      public List<Byte> serializeToByteList() throws IOException
      This method is used to convert the element of SerialNumber 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 SerialNumber.
      Throws:
      IOException
    • doDeserializeFromByteArray

      protected int doDeserializeFromByteArray(byte[] byteArray, int startIndex) throws IOException
      This method is used to deserialize the SerialNumber 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 SerialNumber basic object.
      Throws:
      IOException