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 Summary

    Modifier and Type
    Method
    Description
    from(String channel, T data)
    Deserializes a target value into a source value ("input from external").
    default S
    from(T data)
     
  • Method Details

    • from

      S from(String channel, T data) throws 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:
      IOException - in case that serialization fails
    • from

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