Class JDKSerializationService

  • All Implemented Interfaces:
    SerializationService

    public class JDKSerializationService
    extends java.lang.Object
    implements SerializationService
    Implementation of the SerializationService interface which uses methods from the SerializationUtils class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object deserialize​(byte[] bytes)
      Deserialize the given byte array into the corresponding object which was serialized before.
      byte[] serialize​(java.lang.Object object)
      Serialize the given object.
      • Methods inherited from class java.lang.Object

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

      • JDKSerializationService

        public JDKSerializationService()
    • Method Detail

      • deserialize

        public java.lang.Object deserialize​(byte[] bytes)
        Description copied from interface: SerializationService
        Deserialize the given byte array into the corresponding object which was serialized before.
        Specified by:
        deserialize in interface SerializationService
        Parameters:
        bytes - the byte array
        Returns:
        an object wich was serialized