类 SerializationUtils


  • public abstract class SerializationUtils
    extends java.lang.Object
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static java.lang.Object deserialize​(byte[] bytes)
      Deserialize the byte array into an object.
      static byte[] serialize​(java.lang.Object object)
      Serialize the given object to a byte array.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • SerializationUtils

        public SerializationUtils()
    • 方法详细资料

      • serialize

        public static byte[] serialize​(java.lang.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 java.lang.Object deserialize​(byte[] bytes)
        Deserialize the byte array into an object.
        参数:
        bytes - a serialized object
        返回:
        the result of deserializing the bytes