Class JsonDatumObjectCodec

java.lang.Object
net.solarnetwork.service.support.BasicIdentifiable
net.solarnetwork.node.service.support.BaseIdentifiable
net.solarnetwork.node.runtime.JsonDatumObjectCodec
All Implemented Interfaces:
net.solarnetwork.codec.ObjectCodec, net.solarnetwork.codec.ObjectDecoder, net.solarnetwork.codec.ObjectEncoder, net.solarnetwork.service.Identifiable

public class JsonDatumObjectCodec extends BaseIdentifiable implements net.solarnetwork.codec.ObjectCodec
Simple ObjectCodec for Datum objects.
Since:
3.4
Version:
1.0
Author:
matt
  • Constructor Details

    • JsonDatumObjectCodec

      public JsonDatumObjectCodec()
      Constructor.
  • Method Details

    • encodeAsBytes

      public byte[] encodeAsBytes(Object obj, Map<String,?> parameters) throws IOException
      Specified by:
      encodeAsBytes in interface net.solarnetwork.codec.ObjectEncoder
      Throws:
      IOException
    • decodeFromBytes

      public Object decodeFromBytes(byte[] data, Map<String,?> parameters) throws IOException
      Specified by:
      decodeFromBytes in interface net.solarnetwork.codec.ObjectDecoder
      Throws:
      IOException