Interface IEncoder<D>

  • Type Parameters:
    D - the type of object to encode
    All Known Implementing Classes:
    JsonEncoder, TxtEncoder

    public interface IEncoder<D>
    IEncoder is the interface for the encoder.
    • Method Detail

      • encode

        String encode​(D object,
                      Object... args)
               throws Exception
        Encodes the object.
        Parameters:
        object - the object to encode
        args - optional arguments
        Returns:
        the encoded object
        Throws:
        Exception - if an error occurs