Class JavaSerUtils


  • public class JavaSerUtils
    extends java.lang.Object
    Author:
    Loc Ha
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaSerUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T deserialize​(byte[] ser)  
      static byte[] serialize​(java.lang.Object obj)  
      • Methods inherited from class java.lang.Object

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

      • JavaSerUtils

        public JavaSerUtils()
    • Method Detail

      • serialize

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

        public static <T> T deserialize​(byte[] ser)
                                 throws java.io.IOException,
                                        java.lang.ClassCastException,
                                        java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassCastException
        java.lang.ClassNotFoundException