Package io.deephaven.tuple.serialization
Class SerializationUtils
java.lang.Object
io.deephaven.tuple.serialization.SerializationUtils
Utility class for faster type-specific Object serialization and deserialization.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <ITEM_TYPE>
SerializationUtils.Reader<ITEM_TYPE>getReader
(@NotNull Class<ITEM_TYPE> itemClass, @NotNull ObjectInput in) Get a deserializing supplier for the supplied item class and input.static <ITEM_TYPE>
SerializationUtils.Writer<ITEM_TYPE>getWriter
(@NotNull Class<ITEM_TYPE> itemClass, @NotNull ObjectOutput out) Get a serializing consumer for the supplied item class and output.
-
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 classout
- 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 classin
- The input- Returns:
- A new deserializing supplier
-