The interface extends the ZCLDataTypeDescription by providing
serialize and deserialize methods to marshal and unmarshal the data into the
ZigBeeDataInput and from ZigBeeDataOutput streams.
Related documentation: [1] ZigBee Cluster Library specification, Document 075123r04ZB, May 29, 2012.
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: An object that represents the deserialized value of data. Returnsnull if the read value represents the Invalid
Value for the specific ZigBee data type.the is)ZigBeeDataInput from where the value of data type
is read from.Deserializes a value from the passed |
| public void | serialize(ZigBeeDataOutput
a os, Object ZigBeeDataOutput stream where to the passed value
will be appended. This parameter cannot be null. If
null a NullPointerException must be thrown.The value that have to be serialized on the output stream.
If null is passed this method outputs on the stream the ZigBee
invalid value related the specific data type. If the data type do
not allow any invalid value and the passed value is null an
value)IllegalArgumentException is thrown.Serializes a ZigBee data type into a |
| deserialize | back to summary |
|---|---|
| public Object deserialize(ZigBeeDataInput is) throws IOException Deserializes a value from the passed
| |
| serialize | back to summary |
|---|---|
| public void serialize(ZigBeeDataOutput os, Object value) throws IOException Serializes a ZigBee data type into a
An implementation of this method must interpret (where it makes sense) a
| |