| Package | Description |
|---|---|
| net.openhft.chronicle.wire |
| Modifier and Type | Class and Description |
|---|---|
protected class |
BinaryWire.BinaryValueIn
Represents a binary input value and provides methods to read and manage the state
of this binary input.
|
class |
DefaultValueIn
This class provides the default implementation for the
ValueIn interface. |
class |
TextWire.TextValueIn
Represents a textual input value for deserialization.
|
| Modifier and Type | Field and Description |
|---|---|
static Consumer<ValueIn> |
ValueIn.DISCARD
A constant consumer that does nothing when accepting a
ValueIn. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull ValueIn |
BinaryWire.getValueIn() |
@NotNull ValueIn |
RawWire.getValueIn() |
@NotNull ValueIn |
WireIn.getValueIn()
Obtains the value associated with a field or event for more advanced use cases.
|
@NotNull ValueIn |
TextWire.getValueIn() |
@NotNull ValueIn |
YamlWire.getValueIn() |
@NotNull ValueIn |
QueryWire.getValueIn() |
@NotNull ValueIn |
AbstractAnyWire.getValueIn() |
@NotNull ValueIn |
BinaryWire.read() |
@NotNull ValueIn |
RawWire.read() |
@NotNull ValueIn |
WireIn.read()
Reads the next field if present, or returns an empty string if not present.
|
@NotNull ValueIn |
TextWire.read() |
@NotNull ValueIn |
YamlWire.read() |
@NotNull ValueIn |
AbstractAnyWire.read() |
@NotNull ValueIn |
BinaryWire.read(@NotNull String fieldName) |
default @NotNull ValueIn |
WireIn.read(String fieldName)
Reads the next field based on the provided field name.
|
@NotNull ValueIn |
YamlWire.read(String keyName) |
@NotNull ValueIn |
BinaryWire.read(@NotNull StringBuilder name) |
@NotNull ValueIn |
RawWire.read(@NotNull StringBuilder name) |
@NotNull ValueIn |
WireIn.read(@NotNull StringBuilder name)
Reads a specific field based on the provided field name.
|
@NotNull ValueIn |
CSVWire.read(@NotNull StringBuilder name) |
@NotNull ValueIn |
TextWire.read(@NotNull StringBuilder name) |
@NotNull ValueIn |
YamlWire.read(@NotNull StringBuilder name) |
@NotNull ValueIn |
AbstractAnyWire.read(@NotNull StringBuilder name) |
@NotNull ValueIn |
BinaryWire.read(@NotNull WireKey key) |
@NotNull ValueIn |
RawWire.read(@NotNull WireKey key) |
@NotNull ValueIn |
WireIn.read(@NotNull WireKey key)
Reads the next field if present.
|
@NotNull ValueIn |
CSVWire.read(@NotNull WireKey key) |
@NotNull ValueIn |
TextWire.read(@NotNull WireKey key) |
@NotNull ValueIn |
YamlWire.read(@NotNull WireKey key) |
@NotNull ValueIn |
AbstractAnyWire.read(@NotNull WireKey key) |
protected ValueIn |
TextWire.read2(CharSequence keyName,
int keyCode,
Object defaultValue,
@NotNull net.openhft.chronicle.wire.ValueInState curr,
@NotNull StringBuilder sb,
@NotNull CharSequence name)
Attempts to read the value of a given key, continuing the read operation from the primary `read` method.
|
protected <T> ValueIn |
BinaryWire.read2(CharSequence keyName,
int keyCode,
T defaultSource,
@NotNull Function<T,Object> defaultLookup,
@NotNull net.openhft.chronicle.wire.ValueInState curr,
@NotNull StringBuilder sb,
CharSequence name)
A secondary method to continue the field search process, specifically to handle cases where the field may
have been missed in a previous pass or if the field still hasn't been found.
|
@NotNull ValueIn |
BinaryWire.readEventName(@NotNull StringBuilder name) |
@NotNull ValueIn |
RawWire.readEventName(@NotNull StringBuilder name) |
default @NotNull ValueIn |
WireIn.readEventName(@NotNull StringBuilder name)
Reads a field or string, ensuring the value is always read.
|
<T> @NotNull ValueIn |
BinaryWire.BinaryValueIn.typePrefix(T t,
@NotNull BiConsumer<T,CharSequence> ts) |
<T> @NotNull ValueIn |
DefaultValueIn.typePrefix(T t,
@NotNull BiConsumer<T,CharSequence> ts) |
<T> @NotNull ValueIn |
ValueIn.typePrefix(T t,
@NotNull BiConsumer<T,CharSequence> ts)
Reads a type prefix and applies it to a given object using the provided BiConsumer.
|
<T> @NotNull ValueIn |
TextWire.TextValueIn.typePrefix(T t,
@NotNull BiConsumer<T,CharSequence> ts) |
| Modifier and Type | Method and Description |
|---|---|
void |
WireParselet.accept(CharSequence s,
ValueIn in)
Consumes and processes a wire input based on a given character sequence
and a value input.
|
<T> void |
ValueIn.Reader.accept(ValueIn valueIn,
List<T> list,
List<T> buffer,
Supplier<T> bufferAdd)
Accepts and processes a value from the data stream, with the possibility of
utilizing provided lists and suppliers for custom data processing.
|
static void |
VanillaMethodReader.logMessage(@NotNull CharSequence s,
@NotNull ValueIn v)
Logs a message if the debug mode is enabled.
|
static <E> E |
Wires.object0(ValueIn in,
E using,
@Nullable Class<? extends E> clazz)
Reads and validates an object from the given input.
|
static <E> E |
Wires.object0(ValueIn in,
E using,
@Nullable Class<? extends E> clazz,
boolean bestEffort)
Deserialize an object from the provided input and validate it.
|
static <E> E |
Wires.object1(ValueIn in,
E using,
@Nullable Class<? extends E> clazz,
boolean bestEffort)
Deserialize an object from the provided input based on the defined strategy and constraints.
|
static <E> E |
Wires.objectDate(ValueIn in,
E using)
Reads a date object from the given input.
|
static <E> E |
Wires.objectMap(ValueIn in,
E using,
@Nullable Class<? extends E> clazz,
@NotNull SerializationStrategy strategy)
Reads a map of objects from the given input, using a specified serialization strategy.
|
static <E> E |
Wires.objectSequence(ValueIn in,
E using,
@Nullable Class<? extends E> clazz,
SerializationStrategy strategy)
Reads a sequence of objects using a specified serialization strategy.
|
T |
MarshallableParser.parse(ValueIn valueIn)
Parses the provided
ValueIn into an instance of type T. |
default <T> void |
ValueIn.reader0(ValueIn v,
List<T> list,
List<T> buffer,
Supplier<T> bufferAdd)
Helper method to read a sequence of values into a list using a buffer.
|
<T> T |
SerializationStrategy.readUsing(Class<?> clazz,
T using,
ValueIn in,
BracketType bracketType)
Reads an object of type
T from the provided input source and populates
the given 'using' object, if not null. |
static Throwable |
WireInternal.throwable(@NotNull ValueIn valueIn,
boolean appendCurrentStack)
Creates a throwable instance based on the type provided by
valueIn. |
protected static Throwable |
WireInternal.throwable(@NotNull ValueIn valueIn,
boolean appendCurrentStack,
Throwable throwable)
Creates and processes a throwable object based on the data present in the provided
valueIn. |
void |
AbstractMarshallableCfg.unexpectedField(Object event,
ValueIn valueIn)
Handles the presence of unexpected fields during the reading process.
|
default void |
ReadMarshallable.unexpectedField(Object event,
ValueIn valueIn)
Handles unexpected fields encountered during the deserialization process.
|
Copyright © 2024. All rights reserved.