类 CodecSupport
- java.lang.Object
-
- com.alibaba.dubbo.remoting.transport.CodecSupport
-
public class CodecSupport extends Object
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static void
addProviderSupportedSerialization(String serviceName, List<URL> exportedUrls)
static void
checkSerialization(String path, String version, Byte id)
static ObjectInput
deserialize(URL url, InputStream is, byte proto)
static Byte
getIDByName(String name)
static byte[]
getPayload(InputStream is)
Read all payload to byte[]static Serialization
getSerialization(URL url)
static Serialization
getSerialization(URL url, Byte id)
static Serialization
getSerializationById(Byte id)
-
-
-
方法详细资料
-
getSerializationById
public static Serialization getSerializationById(Byte id)
-
getSerialization
public static Serialization getSerialization(URL url)
-
getSerialization
public static Serialization getSerialization(URL url, Byte id) throws IOException
- 抛出:
IOException
-
deserialize
public static ObjectInput deserialize(URL url, InputStream is, byte proto) throws IOException
- 抛出:
IOException
-
getPayload
public static byte[] getPayload(InputStream is) throws IOException
Read all payload to byte[]- 参数:
is
-- 返回:
- 抛出:
IOException
-
checkSerialization
public static void checkSerialization(String path, String version, Byte id) throws IOException
- 抛出:
IOException
-
-