Class ProductJsonSerializer

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

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

    • ProductJsonSerializer

      public ProductJsonSerializer()
  • Method Details

    • to

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

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

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

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