Class StreamObjectHeaderStart16bit

    • Constructor Detail

      • StreamObjectHeaderStart16bit

        public StreamObjectHeaderStart16bit​(StreamObjectTypeHeaderStart type,
                                            int length)
                                     throws TikaException
        Initializes a new instance of the StreamObjectHeaderStart16bit class with specified type and length.
        Parameters:
        type - Specify the type of the StreamObjectHeaderStart16bit.
        length - Specify the length of the StreamObjectHeaderStart16bit.
        Throws:
        TikaException
      • StreamObjectHeaderStart16bit

        public StreamObjectHeaderStart16bit​(StreamObjectTypeHeaderStart type)
                                     throws TikaException
        Initializes a new instance of the StreamObjectHeaderStart16bit class with specified type.
        Parameters:
        type - Specify the type of the StreamObjectHeaderStart16bit.
        Throws:
        TikaException
      • StreamObjectHeaderStart16bit

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

      • ToUint16

        public short ToUint16()
                       throws IOException
        This method is used to get the Uint16 value of the 16bit stream object header.
        Returns:
        Return the ushort value.
        Throws:
        IOException
      • doDeserializeFromByteArray

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