@Override
    public List<Byte> serializeToByteList() throws IOException {
        BitWriter bitFieldWriter = new BitWriter(4);
        bitFieldWriter.appendInit32(this.headerType, 2);
        bitFieldWriter.appendInit32(this.compound, 1);
        bitFieldWriter.appendUInit32(this.type.getIntVal(), 14);
        bitFieldWriter.appendInit32(this.length, 15);

        List<Byte> listByte = bitFieldWriter.getByteList();

        if (this.largeLength != null) {
            listByte.addAll(this.largeLength.serializeToByteList());
        }

        return listByte;
    }
This method is used to convert the element of StreamObjectHeaderStart32bit basic object into a byte List.

@return Return the byte list which store the byte information of StreamObjectHeaderStart32bit.
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/onenote/fsshttpb/streamobj/StreamObjectHeaderStart32bit.java