Class IPCUtils

java.lang.Object
org.deltava.util.IPCUtils

public class IPCUtils extends Object
A utility class to handle deserializing IPC data.
Since:
1.0
Version:
11.1
Author:
Luke
  • Method Details

    • reserialize

      public static <T extends Serializable> T reserialize(T data)
      Reserializes a shared object to allow local access if loaded by a different class loader.
      Parameters:
      data - the shared object
      Returns:
      a local class version of the shared object
    • deserialize

      public static <T extends Serializable> Collection<T> deserialize(org.gvagroup.ipc.IPCInfo<T> data)
      Deserializes shared data.
      Parameters:
      data - the object that can pass serialized data
      Returns:
      a Collection of beans
    • deserialize

      public static <T extends Serializable> Collection<T> deserialize(Collection<byte[]> data)
      Deserializes shared data.
      Parameters:
      data - the object that can pass serialized data
      Returns:
      a Collection of beans
    • serialize

      public static Collection<byte[]> serialize(Collection<? extends Serializable> data)
      Serializes IPC data.
      Parameters:
      data - a Collection of data elements
      Returns:
      a Collection of byte arrays