Class CommandJsonSerializer

java.lang.Object
test.de.iip_ecosphere.platform.transport.CommandJsonSerializer
All Implemented Interfaces:
de.iip_ecosphere.platform.transport.serialization.InputTypeTranslator<byte[],Command>, de.iip_ecosphere.platform.transport.serialization.OutputTypeTranslator<Command,byte[]>, de.iip_ecosphere.platform.transport.serialization.Serializer<Command>, de.iip_ecosphere.platform.transport.serialization.TypeTranslator<Command,byte[]>

public class CommandJsonSerializer extends Object implements de.iip_ecosphere.platform.transport.serialization.Serializer<Command>
A test serializer for Command.
Author:
Holger Eichelberger, SSE
  • Constructor Details

    • CommandJsonSerializer

      public CommandJsonSerializer()
  • Method Details

    • to

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

      public Command from(byte[] data) throws IOException
      Specified by:
      from in interface de.iip_ecosphere.platform.transport.serialization.InputTypeTranslator<byte[],Command>
      Throws:
      IOException
    • clone

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

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