@Override
    protected int serializeItemsToByteList(List<Byte> byteList) throws IOException, TikaException {
        int startIndex = byteList.size();
        byteList.addAll(this.dataElementExGuid.serializeToByteList());
        byteList.addAll(this.serialNumber.serializeToByteList());
        byteList.addAll(
                new Compact64bitInt(this.dataElementType.getIntVal()).serializeToByteList());

        int headerLength = byteList.size() - startIndex;
        byteList.addAll(this.data.serializeToByteList());

        return headerLength;
    }
Used to convert the element into a byte List.

@param byteList A Byte list
@return The element length
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/onenote/fsshttpb/streamobj/DataElement.java