Package org.springframework.util
Class SerializationUtils
java.lang.Object
org.springframework.util.SerializationUtils
Static utilities for serialization and deserialization.
- Since:
- 3.0.5
- Author:
- Dave Syer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
deserialize
(byte[] bytes) Deserialize the byte array into an object.static byte[]
Serialize the given object to a byte array.
-
Constructor Details
-
SerializationUtils
public SerializationUtils()
-
-
Method Details
-
serialize
Serialize the given object to a byte array.- Parameters:
object
- the object to serialize- Returns:
- an array of bytes representing the object in a portable fashion
-
deserialize
Deserialize the byte array into an object.- Parameters:
bytes
- a serialized object- Returns:
- the result of deserializing the bytes
-