类 SerializationUtils
- java.lang.Object
- org.springframework.util.SerializationUtils
public abstract class SerializationUtils extends Object
Static utilities for serialization and deserialization.- 从以下版本开始:
- 3.0.5
- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 SerializationUtils()
构造器详细资料
SerializationUtils
public SerializationUtils()
方法详细资料
serialize
public static byte[] serialize(Object object)
Serialize the given object to a byte array.- 参数:
object
- the object to serialize- 返回:
- an array of bytes representing the object in a portable fashion
deserialize
public static Object deserialize(byte[] bytes)
Deserialize the byte array into an object.- 参数:
bytes
- a serialized object- 返回:
- the result of deserializing the bytes