T - 泛型public interface Serialization<T>
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(byte[] bytes)
Deserialize an object from the given binary data.
|
byte[] |
serialize(T t)
Serialize the given object to binary data.
|
byte[] serialize(T t) throws SerializationException
t - object to serializeSerializationException - serialization exceptionT deserialize(byte[] bytes) throws SerializationException
bytes - object binary representationSerializationException - deserialization exceptionCopyright © 2018–2020 Pivotal Software, Inc.. All rights reserved.