org.kafkacrypto.msgs.Msgpacker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kafkacrypto-java Show documentation
Show all versions of kafkacrypto-java Show documentation
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