Class ConnectorFactoryTest.ObjectSerializer

java.lang.Object
test.de.iip_ecosphere.platform.connectors.ConnectorFactoryTest.ObjectSerializer
All Implemented Interfaces:
de.iip_ecosphere.platform.connectors.types.ChanneledConnectorOutputTypeAdapter.ChanneledSerializer<Object>, de.iip_ecosphere.platform.connectors.types.ChanneledInputTypeTranslator<byte[],Object>, de.iip_ecosphere.platform.transport.serialization.InputTypeTranslator<byte[],Object>, de.iip_ecosphere.platform.transport.serialization.OutputTypeTranslator<Object,byte[]>, de.iip_ecosphere.platform.transport.serialization.Serializer<Object>, de.iip_ecosphere.platform.transport.serialization.TypeTranslator<Object,byte[]>
Enclosing class:
ConnectorFactoryTest

private static class ConnectorFactoryTest.ObjectSerializer extends Object implements de.iip_ecosphere.platform.connectors.types.ChanneledConnectorOutputTypeAdapter.ChanneledSerializer<Object>
A channeled serializer for supplying.
Author:
Holger Eichelberger, SSE
  • Constructor Details

    • ObjectSerializer

      private ObjectSerializer()
  • Method Details

    • clone

      public Object clone(Object origin) throws IOException
      Specified by:
      clone in interface de.iip_ecosphere.platform.transport.serialization.Serializer<Object>
      Throws:
      IOException
    • getType

      public Class<Object> getType()
      Specified by:
      getType in interface de.iip_ecosphere.platform.transport.serialization.Serializer<Object>
    • from

      public Object from(byte[] data) throws IOException
      Specified by:
      from in interface de.iip_ecosphere.platform.connectors.types.ChanneledInputTypeTranslator<byte[],Object>
      Specified by:
      from in interface de.iip_ecosphere.platform.transport.serialization.InputTypeTranslator<byte[],Object>
      Throws:
      IOException
    • to

      public byte[] to(Object source) throws IOException
      Specified by:
      to in interface de.iip_ecosphere.platform.transport.serialization.OutputTypeTranslator<Object,byte[]>
      Throws:
      IOException
    • from

      public Object from(String channel, byte[] data) throws IOException
      Specified by:
      from in interface de.iip_ecosphere.platform.connectors.types.ChanneledInputTypeTranslator<byte[],Object>
      Throws:
      IOException