Package net.solarnetwork.codec
Interface ObjectDecoder
- All Superinterfaces:
Identifiable
- All Known Subinterfaces:
ObjectCodec
API for a service that can decode objects from alternate representations.
- Since:
- 1.69
- Version:
- 1.0
- Author:
- matt
- See Also:
-
Field Summary
Fields inherited from interface net.solarnetwork.service.Identifiable
GROUP_UID_PROPERTY, UID_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptiondecodeFromBytes(byte[] data, Map<String, ?> parameters) Encode an object into a byte array.Methods inherited from interface net.solarnetwork.service.Identifiable
getDisplayName, getGroupUid, getUid
-
Method Details
-
decodeFromBytes
Encode an object into a byte array.- Parameters:
data- the data to decodeparameters- optional parameters to pass to the decoder- Returns:
- the decoded object, never null
- Throws:
IOException- if a decoding problem occurs
-