Interface Codec<P,​I,​X extends Exception>

    • Method Detail

      • deserialize

        I deserialize​(P input)
               throws X extends Exception
        Description copied from interface: Deserializer
        Produce an object base on input.
        Specified by:
        deserialize in interface Deserializer<P,​I,​X extends Exception>
        Parameters:
        input - Input object
        Returns:
        Product derived from input
        Throws:
        X - when input is not valid
        X extends Exception
      • serialize

        P serialize​(I input)
             throws X extends Exception
        Description copied from interface: Serializer
        Convert an input into a product.
        Specified by:
        serialize in interface Serializer<P,​I,​X extends Exception>
        Parameters:
        input - Input
        Returns:
        A product
        Throws:
        X - when input is not valid
        X extends Exception