Class SerializableCodec<T extends Serializable>

    • Constructor Detail

      • SerializableCodec

        public SerializableCodec()
    • Method Detail

      • encode

        public byte[] encode​(T object)
        Description copied from interface: Codec
        Encodes the object returns a byte array representation.
        Specified by:
        encode in interface Codec<T extends Serializable>
      • decode

        public T decode​(byte[] data)
        Description copied from interface: Codec
        Decodes the byte array returns an object.
        Specified by:
        decode in interface Codec<T extends Serializable>