接口 Serialization
-
- 所有已知实现类:
CompactedJavaSerialization
,FastJsonSerialization
,FstSerialization
,Hessian2Serialization
,JavaSerialization
,KryoSerialization
,NativeJavaSerialization
@SPI("hessian2") public interface Serialization
Serialization. (SPI, Singleton, ThreadSafe)
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ObjectInput
deserialize(URL url, InputStream input)
create deserializerString
getContentType()
get content typebyte
getContentTypeId()
get content type idObjectOutput
serialize(URL url, OutputStream output)
create serializer
-
-
-
方法详细资料
-
getContentTypeId
byte getContentTypeId()
get content type id- 返回:
- content type id
-
getContentType
String getContentType()
get content type- 返回:
- content type
-
serialize
@Adaptive ObjectOutput serialize(URL url, OutputStream output) throws IOException
create serializer- 参数:
url
-output
-- 返回:
- serializer
- 抛出:
IOException
-
deserialize
@Adaptive ObjectInput deserialize(URL url, InputStream input) throws IOException
create deserializer- 参数:
url
-input
-- 返回:
- deserializer
- 抛出:
IOException
-
-