public class WireMarshallerForUnexpectedFields<T> extends WireMarshaller<T>
WIRE_MARSHALLER_CL| Constructor and Description |
|---|
WireMarshallerForUnexpectedFields(@NotNull net.openhft.chronicle.wire.WireMarshaller.FieldAccess[] fields,
boolean isLeaf,
T defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
readMarshallable(T t,
@NotNull WireIn in,
boolean overwrite)
Overrides the default deserialisation logic to handle unexpected fields.
|
defaultValue, excludeFields, getAllField, getField, getLongField, isEqual, isLeaf, leafable, matchesFieldName, of, readMarshallableDTOOrder, readMarshallableInputOrder, reset, setField, setLongField, writeKey, writeMarshallable, writeMarshallable, writeMarshallablepublic WireMarshallerForUnexpectedFields(@NotNull
@NotNull net.openhft.chronicle.wire.WireMarshaller.FieldAccess[] fields,
boolean isLeaf,
T defaultValue)
public void readMarshallable(T t, @NotNull @NotNull WireIn in, boolean overwrite) throws net.openhft.chronicle.core.io.InvalidMarshallableException
WireIn is not found in the known WireMarshaller.fields (even after
case-insensitive matching), it calls
ReadMarshallable.unexpectedField(Object, ValueIn) on object t if
possible. Known fields are processed as usual. The check
sb.length() == 0 && vin.isPresent() optimises for DTO-order field reading by using
the next field directly. Ensures progress is made during parsing to avoid infinite loops.readMarshallable in class WireMarshaller<T>t - Object to populate with read values.in - Input source from which values are read.overwrite - Flag indicating whether to overwrite the existing value in the target object.net.openhft.chronicle.core.io.InvalidMarshallableException - If there is an error during marshalling.Copyright © 2026 Chronicle Software Ltd. All rights reserved.