Class StreamObjectHeaderEnd16bit

    • Constructor Detail

      • StreamObjectHeaderEnd16bit

        public StreamObjectHeaderEnd16bit​(int type)
                                   throws TikaException
        Initializes a new instance of the StreamObjectHeaderEnd16bit class with the specified type value.
        Parameters:
        type - Specify the integer value of the type.
        Throws:
        TikaException
      • StreamObjectHeaderEnd16bit

        public StreamObjectHeaderEnd16bit​(StreamObjectTypeHeaderEnd headerType)
        Initializes a new instance of the StreamObjectHeaderEnd16bit class with the specified type value.
        Parameters:
        headerType - Specify the value of the type.
      • StreamObjectHeaderEnd16bit

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

      • toUint16

        public short toUint16()
                       throws IOException
        This method is used to get the byte value of the 16-bit stream object header End.
        Returns:
        Return StreamObjectHeaderEnd8bit value represented by unsigned short integer.
        Throws:
        IOException
      • doDeserializeFromByteArray

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