Package net.solarnetwork.node.runtime
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
-
Field Summary
Fields inherited from class net.solarnetwork.node.service.support.BaseIdentifiable
logFields inherited from interface net.solarnetwork.service.Identifiable
GROUP_UID_PROPERTY, UID_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeFromBytes(byte[] data, Map<String, ?> parameters) byte[]encodeAsBytes(Object obj, Map<String, ?> parameters) Methods inherited from class net.solarnetwork.node.service.support.BaseIdentifiable
baseIdentifiableSettings, baseIdentifiableSettings, getExpressionServices, getPlaceholderService, populateExpressionDatumProperties, resolvePlaceholders, resolvePlaceholders, setExpressionServices, setPlaceholderServiceMethods inherited from class net.solarnetwork.service.support.BasicIdentifiable
basicIdentifiableMetadataSettings, basicIdentifiableSettings, basicIdentifiableSettings, basicIdentifiableSettings, doubleMetadataValue, getDisplayName, getGroupUid, getGroupUID, getMessageSource, getMetadata, getMetadataCount, getUid, getUID, integerMetadataValue, metadataValue, numberMetadataValue, saveMetadataValue, saveMetadataValue, setDisplayName, setGroupUid, setGroupUID, setMessageSource, setMetadata, setMetadataCount, setUid, setUID, smartMetadataValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.solarnetwork.service.Identifiable
getDisplayName, getGroupUid, getUid
-
Constructor Details
-
JsonDatumObjectCodec
public JsonDatumObjectCodec()Constructor.
-
-
Method Details
-
encodeAsBytes
- Specified by:
encodeAsBytesin interfacenet.solarnetwork.codec.ObjectEncoder- Throws:
IOException
-
decodeFromBytes
- Specified by:
decodeFromBytesin interfacenet.solarnetwork.codec.ObjectDecoder- Throws:
IOException
-