Class SerializationUtils

java.lang.Object
io.deephaven.tuple.serialization.SerializationUtils

public class SerializationUtils extends Object
Utility class for faster type-specific Object serialization and deserialization.
  • Constructor Details

    • SerializationUtils

      public SerializationUtils()
  • Method Details

    • getWriter

      public static <ITEM_TYPE> SerializationUtils.Writer<ITEM_TYPE> getWriter(@NotNull @NotNull Class<ITEM_TYPE> itemClass, @NotNull @NotNull ObjectOutput out)
      Get a serializing consumer for the supplied item class and output.
      Parameters:
      itemClass - The item class
      out - The output
      Returns:
      A new serializing consumer
    • getReader

      public static <ITEM_TYPE> SerializationUtils.Reader<ITEM_TYPE> getReader(@NotNull @NotNull Class<ITEM_TYPE> itemClass, @NotNull @NotNull ObjectInput in)
      Get a deserializing supplier for the supplied item class and input.
      Parameters:
      itemClass - The item class
      in - The input
      Returns:
      A new deserializing supplier