All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kafkacrypto.msgs.Msgpacker Maven / Gradle / Ivy

Go to download

Java port of kafkacrypto, a lightweight and cross-platform/cross-language encryption library for Apache Kafka.

The newest version!
package org.kafkacrypto.msgs;

import org.kafkacrypto.msgs.msgpack;
import org.msgpack.core.MessagePacker;
import org.msgpack.value.Value;
import java.util.List;
import java.io.IOException;

interface Msgpacker
{
  E unpackb(List src) throws IOException;
  void packb(MessagePacker packer) throws IOException;

  default E unpackb(byte[] src) throws IOException
  {
    return this.unpackb(msgpack.unpackb(src));
  }
  default byte[] packb() throws IOException
  {
    return msgpack.packb(this);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy