Class BinaryItem

    • Constructor Detail

      • BinaryItem

        public BinaryItem()
        Initializes a new instance of the BinaryItem class.
      • BinaryItem

        public BinaryItem​(Collection<Byte> content)
        Initializes a new instance of the BinaryItem class with the specified content.
        Parameters:
        content - Specify the binary content.
    • Method Detail

      • doDeserializeFromByteArray

        protected int doDeserializeFromByteArray​(byte[] byteArray,
                                                 int startIndex)
                                          throws org.apache.tika.exception.TikaException,
                                                 IOException
        This method is used to de-serialize the BinaryItem 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 BinaryItem basic object.
        Throws:
        org.apache.tika.exception.TikaException
        IOException