public abstract class AbstractByteArraySerializer extends AbstractSerializer implements ByteArraySerializer
构造器和说明 |
---|
AbstractByteArraySerializer() |
限定符和类型 | 方法和说明 |
---|---|
protected static void |
closeStream(Closeable closeable) |
<V> String |
serialize(V object)
将对象序列化为字符串
|
<V> byte[] |
serializeAsBytes(V object)
将对象序列化为字节
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deserialize, deserialize, deserialize, deserialize, deserialize, deserialize, serialize, serialize, serializeAsBytes, serializeAsBytes, unserialize, unserialize, unserialize, unserialize, unserialize, unserialize
public <V> String serialize(V object) throws SerializerException
Serializer
serialize
在接口中 Serializer
V
- 待序列化对象类型object
- 待序列化对象SerializerException
- 序列化异常public <V> byte[] serializeAsBytes(V object) throws SerializerException
Serializer
serializeAsBytes
在接口中 Serializer
V
- 待序列化对象类型object
- 待序列化对象SerializerException
- 序列化异常protected static void closeStream(Closeable closeable)
Copyright © 2023 buession.com Inc.. All rights reserved.