Class ByteArraySerializer

    • Constructor Detail

      • ByteArraySerializer

        public ByteArraySerializer()
    • Method Detail

      • serialize

        public byte[] serialize​(String topic,
                                byte[] data)
        Description copied from interface: Serializer
        Convert data into a byte array.
        Specified by:
        serialize in interface Serializer<byte[]>
        Parameters:
        topic - topic associated with data
        data - typed data
        Returns:
        serialized bytes