java.lang.Object
org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.StreamObject
org.apache.tika.parser.microsoft.onenote.fsshttpb.streamobj.DataHashObject
All Implemented Interfaces:
IFSSHTTPBSerializable

public class DataHashObject extends StreamObject
  • Field Details

    • data

      public BinaryItem data
      Gets or sets a binary item as specified in [MS-FSSHTTPB] section 2.2.1.3 that specifies a value that is unique to the file data represented by this root node object. The value of this item depends on the file chunking algorithm used, as specified in section 2.4.
  • Constructor Details

    • DataHashObject

      public DataHashObject()
      Initializes a new instance of the DataHashObject class.
  • Method Details

    • 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
    • deserializeItemsFromByteArray

      protected void deserializeItemsFromByteArray(byte[] byteArray, AtomicInteger currentIndex, int lengthOfItems) throws org.apache.tika.exception.TikaException, IOException
      Used to de-serialize the element.
      Specified by:
      deserializeItemsFromByteArray in class StreamObject
      Parameters:
      byteArray - A Byte array
      currentIndex - Start position
      lengthOfItems - The length of the items
      Throws:
      org.apache.tika.exception.TikaException
      IOException
    • serializeItemsToByteList

      protected int serializeItemsToByteList(List<Byte> byteList) throws IOException
      Used to convert the element into a byte List.
      Specified by:
      serializeItemsToByteList in class StreamObject
      Parameters:
      byteList - A Byte list
      Returns:
      The number of elements
      Throws:
      IOException