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:
io.deephaven.shadow.enterprise.com.illumon.util.codec.ObjectCodec<T>,io.deephaven.shadow.enterprise.com.illumon.util.codec.ObjectDecoder<T>,ObjectCodec<T>,ObjectDecoder<T>
public class ShadowingSerializableDecoder<T>
extends Object
implements ObjectCodec<T>, io.deephaven.shadow.enterprise.com.illumon.util.codec.ObjectCodec<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.shadow.enterprise.com.illumon.util.codec.ObjectDecoder
VARIABLE_WIDTH_SENTINELFields 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()boolean
-
Constructor Details
-
ShadowingSerializableDecoder
-
-
Method Details
-
getInstance
-
encode
- Specified by:
encodein interfaceio.deephaven.shadow.enterprise.com.illumon.util.codec.ObjectCodec<T>- Specified by:
encodein interfaceObjectCodec<T>
-
isNullable
public boolean isNullable()- Specified by:
isNullablein interfaceio.deephaven.shadow.enterprise.com.illumon.util.codec.ObjectCodec<T>- Specified by:
isNullablein interfaceObjectCodec<T>
-
getPrecision
public int getPrecision()- Specified by:
getPrecisionin interfaceio.deephaven.shadow.enterprise.com.illumon.util.codec.ObjectCodec<T>- Specified by:
getPrecisionin interfaceObjectCodec<T>
-
getScale
public int getScale()- Specified by:
getScalein interfaceio.deephaven.shadow.enterprise.com.illumon.util.codec.ObjectCodec<T>- Specified by:
getScalein interfaceObjectCodec<T>
-
decode
@Nullable public T decode(@NotNull @org.jetbrains.annotations.NotNull byte[] input, int offset, int length) - Specified by:
decodein interfaceio.deephaven.shadow.enterprise.com.illumon.util.codec.ObjectDecoder<T>- Specified by:
decodein interfaceObjectDecoder<T>
-
expectedObjectWidth
public int expectedObjectWidth()- Specified by:
expectedObjectWidthin interfaceio.deephaven.shadow.enterprise.com.illumon.util.codec.ObjectDecoder<T>- Specified by:
expectedObjectWidthin interfaceObjectDecoder<T>
-
checkWidth
- Specified by:
checkWidthin interfaceio.deephaven.shadow.enterprise.com.illumon.util.codec.ObjectDecoder<T>- Specified by:
checkWidthin interfaceObjectDecoder<T>- Throws:
IllegalArgumentException
-