Package io.deephaven.enterprise.codec
Class StringArrayCodec
java.lang.Object
io.deephaven.shadow.enterprise.io.deephaven.enterprise.codec.StringArrayCodec
io.deephaven.enterprise.codec.StringArrayCodec
- All Implemented Interfaces:
io.deephaven.shadow.enterprise.com.illumon.util.codec.ObjectCodec<String[]>,io.deephaven.shadow.enterprise.com.illumon.util.codec.ObjectDecoder<String[]>,ObjectCodec<String[]>,ObjectDecoder<String[]>
public class StringArrayCodec
extends io.deephaven.shadow.enterprise.io.deephaven.enterprise.codec.StringArrayCodec
implements ObjectCodec<String[]>
An
ObjectCodec that encodes a String[] using one integer to indicate the array size and then each
array item is written using one int to represent length followed by the bytes for that item.-
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
Methods inherited from class io.deephaven.shadow.enterprise.io.deephaven.enterprise.codec.StringArrayCodec
decode, decode, decodeStatic, encode, encodeAndGet, encodeInto, expectedObjectWidth, getPrecision, getScale, isNullable, maybeGetResizedBufferMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.util.codec.ObjectCodec
encode, getPrecision, getScale, isNullableMethods inherited from interface io.deephaven.util.codec.ObjectDecoder
decode, expectedObjectWidth
-
Constructor Details
-
StringArrayCodec
public StringArrayCodec() -
StringArrayCodec
-
-
Method Details
-
checkWidth
- Specified by:
checkWidthin interfaceio.deephaven.shadow.enterprise.com.illumon.util.codec.ObjectDecoder<String[]>- Specified by:
checkWidthin interfaceObjectDecoder<String[]>- Throws:
IllegalArgumentException
-