Class CodecSupport
java.lang.Object
org.apache.dubbo.remoting.transport.CodecSupport
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkSerialization
(FrameworkServiceRepository serviceRepository, String path, String version, Byte id) static ObjectInput
deserialize
(URL url, InputStream is, byte proto) static Byte
getIDByName
(String name) static byte[]
Get the null object serialize result byte[] of Serialization from the cache, if not, generate it first.static byte[]
Read all payload to byte[]static Serialization
getSerialization
(URL url) static Serialization
getSerialization
(URL url, Byte id) static Serialization
static boolean
isHeartBeat
(byte[] payload, byte proto) Check if payload is null object serialize result byte[] of serialization
-
Method Details
-
getSerializationById
-
getIDByName
-
getSerialization
-
getSerialization
- Throws:
IOException
-
deserialize
- Throws:
IOException
-
getNullBytesOf
Get the null object serialize result byte[] of Serialization from the cache, if not, generate it first.- Parameters:
s
- Serialization Instances- Returns:
- serialize result of null object
-
getPayload
Read all payload to byte[]- Parameters:
is
-- Returns:
- Throws:
IOException
-
isHeartBeat
public static boolean isHeartBeat(byte[] payload, byte proto) Check if payload is null object serialize result byte[] of serialization- Parameters:
payload
-proto
-- Returns:
-
checkSerialization
public static void checkSerialization(FrameworkServiceRepository serviceRepository, String path, String version, Byte id) throws IOException - Throws:
IOException
-