类 SerializationUtils


  • public abstract class SerializationUtils
    extends Object
    Static utilities for serialization and deserialization.
    从以下版本开始:
    3.0.5
    作者:
    Dave Syer
    • 方法详细资料

      • 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