Class Serialization


  • public final class Serialization
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object deserialize​(byte[] bytes)  
      static byte[] serialize​(java.lang.Object o)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • serialize

        @NonNull
        public static byte[] serialize​(@NonNull
                                       java.lang.Object o)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • deserialize

        @NonNull
        public static java.lang.Object deserialize​(@NonNull
                                                   byte[] bytes)
                                            throws java.io.IOException,
                                                   java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException