Interface ChanneledInputTypeTranslator<T,​S>

  • Type Parameters:
    T - the target type
    S - the source type
    All Superinterfaces:
    de.iip_ecosphere.platform.transport.serialization.InputTypeTranslator<T,​S>
    All Known Subinterfaces:
    ChanneledConnectorOutputTypeAdapter.ChanneledSerializer<T>

    public interface ChanneledInputTypeTranslator<T,​S>
    extends de.iip_ecosphere.platform.transport.serialization.InputTypeTranslator<T,​S>
    Extended InputTypeTranslator to receive the reception channel including a delegating default implementation of the serializer method passing in the default channel name.
    Author:
    Holger Eichelberger, SSE
    • Method Detail

      • from

        S from​(java.lang.String channel,
               T data)
        throws java.io.IOException
        Deserializes a target value into a source value ("input from external").
        Parameters:
        channel - the channel the data came from
        data - the data to be translated back
        Returns:
        the serialized object
        Throws:
        java.io.IOException - in case that serialization fails
      • from

        default S from​(T data)
                throws java.io.IOException
        Specified by:
        from in interface de.iip_ecosphere.platform.transport.serialization.InputTypeTranslator<T,​S>
        Throws:
        java.io.IOException