Class ShadowingSerializableDecoder<T>
java.lang.Object
io.deephaven.enterprise.compatibility.shadow.ShadowingSerializableDecoder<T>
- Type Parameters:
T- - The type of object this decoder will create
- All Implemented Interfaces:
ObjectCodec<T>,ObjectDecoder<T>
An
ObjectCodec implementation for Serializable object that internally uses a
ShadowingObjectInputStream to automatically replace detected shadowed classes in the object stream with their
shadowed versions.-
Field Summary
Fields inherited from interface io.deephaven.util.codec.ObjectDecoder
VARIABLE_WIDTH_SENTINEL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckWidth(int actualWidth) decode(@org.jetbrains.annotations.NotNull byte[] input, int offset, int length) @org.jetbrains.annotations.NotNull byte[]intstatic <T> ShadowingSerializableDecoder<T>intintgetScale()booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.util.codec.ObjectDecoder
decode
-
Constructor Details
-
ShadowingSerializableDecoder
-
-
Method Details
-
getInstance
-
encode
- Specified by:
encodein interfaceObjectCodec<T>
-
isNullable
public boolean isNullable()- Specified by:
isNullablein interfaceObjectCodec<T>
-
getPrecision
public int getPrecision()- Specified by:
getPrecisionin interfaceObjectCodec<T>
-
getScale
public int getScale()- Specified by:
getScalein interfaceObjectCodec<T>
-
decode
@Nullable public T decode(@NotNull @org.jetbrains.annotations.NotNull byte[] input, int offset, int length) - Specified by:
decodein interfaceObjectDecoder<T>
-
expectedObjectWidth
public int expectedObjectWidth()- Specified by:
expectedObjectWidthin interfaceObjectDecoder<T>
-
checkWidth
- Specified by:
checkWidthin interfaceObjectDecoder<T>- Throws:
IllegalArgumentException
-