Package io.ably.lib.types
Class ProtocolSerializer
java.lang.Object
io.ably.lib.types.ProtocolSerializer
public class ProtocolSerializer
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description ProtocolSerializer() -
Method Summary
Modifier and Type Method Description static ProtocolMessagefromJSON(java.lang.String packed)JSON decodestatic ProtocolMessagereadMsgpack(byte[] packed)Msgpack decodestatic byte[]writeJSON(ProtocolMessage message)JSON encodestatic byte[]writeMsgpack(ProtocolMessage message)Msgpack encode
-
Constructor Details
-
ProtocolSerializer
public ProtocolSerializer()
-
-
Method Details
-
readMsgpack
Msgpack decode- Throws:
AblyException
-
writeMsgpack
Msgpack encode -
fromJSON
JSON decode- Throws:
AblyException
-
writeJSON
JSON encode- Throws:
AblyException
-