Interface Codec<T>

    • Method Detail

      • getName

        String getName()
        Returns the codec name
      • encode

        byte[] encode​(T object)
        Encodes the object returns a byte array representation.
      • decode

        T decode​(byte[] data)
        Decodes the byte array returns an object.
        Throws:
        IllegalArgumentException - if data are invalid.