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
All Methods Static Methods Concrete Methods 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
-
-
-
Method Detail
-
readMsgpack
public static ProtocolMessage readMsgpack(byte[] packed) throws AblyException
Msgpack decode- Throws:
AblyException
-
writeMsgpack
public static byte[] writeMsgpack(ProtocolMessage message)
Msgpack encode
-
fromJSON
public static ProtocolMessage fromJSON(java.lang.String packed) throws AblyException
JSON decode- Throws:
AblyException
-
writeJSON
public static byte[] writeJSON(ProtocolMessage message) throws AblyException
JSON encode- Throws:
AblyException
-
-