@Override
    public List<Byte> serializeToByteList() throws TikaException, IOException {
        List<Byte> result = new ArrayList<>();

        if (this.dataElementHash != null) {
            result.addAll(this.dataElementHash.serializeToByteList());
        }

        result.addAll(this.objectGroupDeclarations.serializeToByteList());
        if (this.objectMetadataDeclaration != null) {
            result.addAll(this.objectMetadataDeclaration.serializeToByteList());
        }

        result.addAll(this.objectGroupData.serializeToByteList());
        return result;
    }
Used to convert the element into a byte List.

@return A Byte list
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/onenote/fsshttpb/streamobj/ObjectGroupDataElementData.java