public interface ValueOut
| Modifier and Type | Interface and Description |
|---|---|
static class |
ValueOut.MapMarshaller<K,V>
MapMarshaller is a utility for serializing a Map into a Wire format.
|
| Modifier and Type | Field and Description |
|---|---|
static ThreadLocal<ValueOut.MapMarshaller> |
MM_TL
Thread local instance for MapMarshaller to support thread-safe marshalling operations.
|
static int |
SMALL_MESSAGE
Defines a threshold for small messages.
|
static String |
ZEROS_64
Represents a 64-character sequence of zeros.
|
| Modifier and Type | Method and Description |
|---|---|
default WireOut |
array(boolean[] array,
int length)
Writes an array of boolean values to the wire output.
|
default WireOut |
array(byte[] array,
int length)
Writes an array of byte values to the wire output.
|
default WireOut |
array(net.openhft.chronicle.bytes.Bytes[] array,
int length)
Writes an array of byte sequences of a specified length.
|
default WireOut |
array(double[] array,
int length)
Writes an array of doubles of a specified length.
|
default WireOut |
array(int[] array,
int length)
Writes an array of int values to the wire output.
|
default WireOut |
array(long[] array,
int length)
Writes an array of long values to the wire output.
|
default @NotNull WireOut |
array(@NotNull WriteValue writer,
@NotNull Class<?> arrayType)
Writes an array of specified type objects to the wire output, using the provided writer.
|
default WireOut |
arrayDelta(double[] array,
int length)
This write value's relative to the first one using 6 digit precision
|
default WireOut |
arrayDelta(long[] array,
int length)
Writes the delta of long values in an array to the wire output.
|
default <E extends Enum<E>> |
asEnum(E e)
Writes an enum value to the wire output.
|
@NotNull WireOut |
bool(Boolean flag)
Write a boolean value.
|
@NotNull WireOut |
boolForBinding(boolean value,
@NotNull net.openhft.chronicle.core.values.BooleanValue longValue)
Writes a boolean value for binding with the given BooleanValue.
|
@NotNull WireOut |
bytes(byte[] fromBytes)
Write a sequence of bytes.
|
@NotNull WireOut |
bytes(@Nullable net.openhft.chronicle.bytes.BytesStore<?,?> fromBytes)
Write a sequence of bytes based on the content of a
BytesStore object. |
@NotNull WireOut |
bytes(String type,
byte[] fromBytes)
Write a typed sequence of bytes.
|
@NotNull WireOut |
bytes(String type,
@Nullable net.openhft.chronicle.bytes.BytesStore<?,?> fromBytes)
Write a typed sequence of bytes based on the content of a
BytesStore object. |
default @NotNull WireOut |
bytesLiteral(@Nullable net.openhft.chronicle.bytes.BytesStore<?,?> fromBytes)
Write a sequence of bytes from a
BytesStore object as a literal value,
if supported by the wire type. |
default WireOut |
bytesMarshallable(net.openhft.chronicle.bytes.WriteBytesMarshallable value)
Serialize an object implementing the WriteBytesMarshallable interface.
|
default @NotNull WireOut |
character(char c)
Write a character value as text.
|
net.openhft.chronicle.core.pool.ClassLookup |
classLookup()
Provides a lookup mechanism to resolve class names.
|
default <V> @NotNull WireOut |
collection(Collection<V> coll,
Class<V> assumedClass)
Writes a collection to the wire output, specifying the type of its entries.
|
default @NotNull WireOut |
compress(@NotNull String compression,
@Nullable net.openhft.chronicle.bytes.Bytes<?> uncompressedBytes)
Compresses the given bytes using the specified compression technique.
|
default int |
compressedSize() |
@NotNull WireOut |
date(LocalDate localDate)
Write a date value.
|
@NotNull WireOut |
dateTime(LocalDateTime localDateTime)
Write a local date-time value, which represents both date and time without a time zone.
|
default void |
elementSeparator()
Signifies the end of an element that has been added direcftly to the wire.
|
default void |
endTypePrefix()
Ends the type prefix scope for the written data.
|
default @NotNull WireOut |
fixedFloat32(float value)
Serialize a float value prefixed with its type.
|
default @NotNull WireOut |
fixedFloat64(double value)
Serialize a double value.
|
default @NotNull WireOut |
fixedInt16(short value)
Serialize a short (signed 16-bit) value prefixed with its type.
|
default @NotNull WireOut |
fixedInt32(int value)
Serialize an int (signed 32-bit) value prefixed with its type.
|
default @NotNull WireOut |
fixedInt64(long value)
Serialize a long (signed 64-bit) value.
|
default @NotNull WireOut |
fixedInt8(byte value)
Serialize a byte (signed 8-bit) value prefixed with its type.
|
@NotNull WireOut |
float32(float f)
Write a 32-bit floating-point value.
|
default @NotNull WireOut |
float32(float f,
float previous)
Write a 32-bit floating-point value.
|
@NotNull WireOut |
float64(double d)
Write a 64-bit floating-point value, also known as a double.
|
default @NotNull WireOut |
float64(double d,
double previous)
Write a 64-bit floating-point value.
|
default @NotNull WireOut |
int128forBinding(long value,
long value2)
Throws an unsupported operation exception by default.
|
@NotNull WireOut |
int128forBinding(long i64x0,
long i64x1,
net.openhft.chronicle.core.values.TwoLongValue value)
Write two signed 64-bit integer values bound to a TwoLongValue object.
|
default @NotNull WireOut |
int16(long x)
Write a signed 16-bit integer value.
|
@NotNull WireOut |
int16(short i16)
Write a signed 16-bit integer value.
|
@NotNull WireOut |
int32(int i32)
Write a signed 32-bit integer value.
|
default @NotNull WireOut |
int32(int i32,
int previous)
Write a signed 32-bit integer value.
|
default @NotNull WireOut |
int32(long x)
Write a signed 32-bit integer value.
|
@NotNull WireOut |
int32forBinding(int value)
Writes a 32-bit integer for binding.
|
@NotNull WireOut |
int32forBinding(int value,
@NotNull net.openhft.chronicle.core.values.IntValue intValue)
Writes a 32-bit integer for binding with the given IntValue.
|
@NotNull WireOut |
int64_0x(long i64)
Write a signed 64-bit integer value as a hexadecimal representation.
|
@NotNull WireOut |
int64(long i64)
Write a signed 64-bit integer value.
|
default @NotNull WireOut |
int64(long i64,
long previous)
Write a signed 64-bit integer value.
|
@NotNull WireOut |
int64array(long capacity)
Allocate space for writing an array of 64-bit integers.
|
@NotNull WireOut |
int64array(long capacity,
net.openhft.chronicle.core.values.LongArrayValues values)
Write a sequence of 64-bit integers into an array, using the provided LongArrayValues
object as the source of the values.
|
@NotNull WireOut |
int64forBinding(long value)
Writes a 64-bit integer for binding.
|
@NotNull WireOut |
int64forBinding(long value,
@NotNull net.openhft.chronicle.core.values.LongValue longValue)
Writes a 64-bit integer for binding with the given LongValue.
|
@NotNull WireOut |
int8(byte i8)
Write a signed 8-bit integer value.
|
default @NotNull WireOut |
int8(long x)
Write a signed 8-bit integer value.
|
static boolean |
isAnEnum(Object v)
Checks if the provided object is an instance of Enum or DynamicEnum.
|
default boolean |
isBinary()
Indicates if the current wire type is a binary wire.
|
default <V> @NotNull WireOut |
list(List<V> coll)
Writes a list to the wire output.
|
default <V> @NotNull WireOut |
list(List<V> coll,
Class<V> assumedClass)
Writes a list to the wire output, while specifying the type of its entries.
|
@NotNull WireOut |
map(Map map)
Writes the contents of a specified map to the wire output.
|
default <K,V> @NotNull WireOut |
marshallable(Map<K,V> map)
Writes a map to the wire output.
|
default <K,V> @NotNull WireOut |
marshallable(@Nullable Map<K,V> map,
@NotNull Class<K> kClass,
@NotNull Class<V> vClass,
boolean leaf)
Writes a map to the wire output, specifying classes for keys and values.
|
@NotNull WireOut |
marshallable(Serializable object)
Writes a value that implements the
Serializable interface to the wire output. |
@NotNull WireOut |
marshallable(WriteMarshallable object)
Writes a value that implements the
WriteMarshallable interface to the wire output. |
default @NotNull WireOut |
nu11()
Write a null value.
|
default <V> @NotNull WireOut |
object(@NotNull Class<? extends V> expectedType,
V v)
Writes an object to the wire output, specifying its expected type.
|
default @NotNull WireOut |
object(@Nullable Object value)
Writes an object to the wire output.
|
default @NotNull ValueOut |
optionalTyped(Class<?> aClass)
Add an optional type i.e.
|
@NotNull WireOut |
rawBytes(byte[] value)
Write a raw sequence of bytes.
|
default @NotNull WireOut |
rawText(CharSequence value)
Write a raw text value.
|
default void |
resetBetweenDocuments() |
void |
resetState() |
default <T> @NotNull WireOut |
sequence(Iterable<T> t)
Writes a sequence of values from an
Iterator. |
<T> @NotNull WireOut |
sequence(T t,
BiConsumer<T,ValueOut> writer)
Writes a sequence of values using the provided writer.
|
<T,K> @NotNull WireOut |
sequence(T t,
K param,
TriConsumer<T,K,ValueOut> writer)
Writes a sequence of values using the provided parametrized writer.
|
default @NotNull WireOut |
sequence(WriteValue writer)
Writes a sequence of values to the wire using the provided writer.
|
default <T> WireOut |
sequenceWithLength(T t,
int length,
ObjectIntObjectConsumer<T,ValueOut> writer)
Writes a sequence of values of a specified length.
|
default <V> @NotNull WireOut |
set(Set<V> coll)
Writes a set value to the wire output.
|
default <V> @NotNull WireOut |
set(Set<V> coll,
Class<V> assumedClass)
Writes a set to the wire output, while specifying the type of its entries.
|
default boolean |
swapLeaf(boolean isLeaf)
Determines if the current WireOut is in a leaf node state.
|
default @NotNull WireOut |
text(@Nullable net.openhft.chronicle.bytes.BytesStore<?,?> s)
Write a text value based on the contents of a
BytesStore object. |
default @NotNull WireOut |
text(char c)
Write a text value that's made up of a single character.
|
@NotNull WireOut |
text(@Nullable CharSequence s)
Write a text value.
|
default @NotNull WireOut |
text(@Nullable String s)
Write a text value.
|
default @NotNull WireOut |
throwable(@NotNull Throwable t)
Write a throwable value.
|
@NotNull WireOut |
time(LocalTime localTime)
Write a local time value.
|
default @NotNull WireOut |
typedMarshallable(CharSequence typeName,
WriteMarshallable object)
Writes a value that implements the
WriteMarshallable interface to the wire output,
while prepending it with a specified type prefix. |
default @NotNull WireOut |
typedMarshallable(@Nullable Serializable object)
Writes a value that implements the
Serializable interface to the wire output. |
default @NotNull WireOut |
typedMarshallable(@Nullable WriteMarshallable marshallable)
To be used when you know it is a typed marshallable object.
|
default @NotNull WireOut |
typedScalar(@NotNull Object value)
Write a typed scalar value as type prefixed text.
|
@NotNull WireOut |
typeLiteral(@NotNull BiConsumer<Class,net.openhft.chronicle.bytes.Bytes<?>> typeTranslator,
@Nullable Class<?> type)
Writes a type literal using the specified type translator function.
|
@NotNull WireOut |
typeLiteral(@Nullable CharSequence type)
Write a type literal value.
|
default @NotNull WireOut |
typeLiteral(@Nullable Class<?> type)
Write a type literal for a specified
Class. |
default @NotNull WireOut |
typeLiteral(@Nullable Type type)
Write a type literal for a specified
Type. |
@NotNull ValueOut |
typePrefix(CharSequence typeName)
Write a prefix that denotes a type for the upcoming value.
|
default @NotNull ValueOut |
typePrefix(Class<?> type)
Write a type prefix for a specified
Class object. |
default @NotNull WireOut |
uint16(long x)
Write an unsigned 16-bit integer value.
|
@NotNull WireOut |
uint16checked(int u16)
Write an unsigned 16-bit integer value.
|
default @NotNull WireOut |
uint32(long x)
Write an unsigned 32-bit integer value.
|
@NotNull WireOut |
uint32checked(long u32)
Write an unsigned 32-bit integer value.
|
default @NotNull WireOut |
uint8(int x)
Write an unsigned 8-bit integer value.
|
@NotNull WireOut |
uint8checked(int u8)
Write an unsigned 8-bit integer value.
|
default @NotNull WireOut |
untypedObject(@Nullable Object value)
Write an untyped object value.
|
@NotNull WireOut |
utf8(int codepoint)
Write a single 16-bit Unicode codepoint as UTF-8.
|
@NotNull WireOut |
uuid(UUID uuid)
Writes a universally unique identifier (UUID) to the wire.
|
@NotNull WireOut |
wireOut() |
default WireOut |
writeBoolean(boolean x)
Writes a boolean value to the wire.
|
default WireOut |
writeByte(byte x)
Writes a byte value to the wire.
|
default WireOut |
writeChar(char x)
Writes a char value to the wire.
|
default WireOut |
writeDouble(double x)
Writes a double value to the wire.
|
default WireOut |
writeFloat(float x)
Writes a float value to the wire.
|
default WireOut |
writeInt(int x)
Writes an int value to the wire.
|
default WireOut |
writeInt(LongConverter converter,
int i)
Writes an int value to the wire using a specified converter.
|
@NotNull ValueOut |
writeLength(long remaining)
Write the length of a value if supported by the implementing class.
|
default WireOut |
writeLong(long x)
Writes a long value to the wire.
|
default WireOut |
writeLong(LongConverter longConverter,
long l)
Writes a long value to the wire using a specified converter.
|
default WireOut |
writeShort(short x)
Writes a short value to the wire.
|
default WireOut |
writeString(CharSequence x)
Writes a string or a sequence of characters to the wire.
|
@NotNull WireOut |
zonedDateTime(ZonedDateTime zonedDateTime)
Write a zoned date-time value, which includes information about date, time, and the
associated time zone.
|
static final ThreadLocal<ValueOut.MapMarshaller> MM_TL
static final int SMALL_MESSAGE
static final String ZEROS_64
static boolean isAnEnum(Object v)
v - Object to be checked.true if the object is an instance of Enum or DynamicEnum; false otherwise.@NotNull @NotNull WireOut bool(Boolean flag)
flag - The boolean value to be written.@NotNull @NotNull WireOut text(@Nullable @Nullable CharSequence s)
s - The CharSequence containing the text to be written.@NotNull default @NotNull WireOut text(@Nullable @Nullable String s)
text(CharSequence).s - The String containing the text to be written.@NotNull default @NotNull WireOut nu11()
@NotNull default @NotNull WireOut text(char c)
c - The character to be written as text.@NotNull default @NotNull WireOut character(char c)
text(char).c - The character to be written.@NotNull default @NotNull WireOut text(@Nullable @Nullable net.openhft.chronicle.bytes.BytesStore<?,?> s)
BytesStore object.
The method casts the BytesStore to a CharSequence for processing.s - The BytesStore whose contents are to be written as text.@NotNull default @NotNull WireOut int8(long x)
x - The long value to be written as an 8-bit integer.ArithmeticException - if the supplied argument does not fit in an unsigned 8-bit integer.@NotNull @NotNull WireOut int8(byte i8)
i8 - The byte value representing the 8-bit integer to be written.@NotNull @NotNull WireOut bytes(@Nullable @Nullable net.openhft.chronicle.bytes.BytesStore<?,?> fromBytes)
BytesStore object.fromBytes - The BytesStore containing the byte sequence to be written.@NotNull default @NotNull WireOut bytesLiteral(@Nullable @Nullable net.openhft.chronicle.bytes.BytesStore<?,?> fromBytes)
BytesStore object as a literal value,
if supported by the wire type. If not supported, this method defaults to bytes(BytesStore).fromBytes - The BytesStore containing the byte sequence to be written as a literal.@NotNull @NotNull WireOut bytes(String type, @Nullable @Nullable net.openhft.chronicle.bytes.BytesStore<?,?> fromBytes)
BytesStore object.type - The string representing the type of byte sequence.fromBytes - The BytesStore containing the byte sequence to be written.@NotNull @NotNull WireOut rawBytes(byte[] value)
value - The array of bytes to be written.@NotNull default @NotNull WireOut rawText(CharSequence value)
text(CharSequence).value - The CharSequence representing the text to be written.@NotNull @NotNull ValueOut writeLength(long remaining)
remaining - The length of the value to be written.@NotNull @NotNull WireOut bytes(byte[] fromBytes)
fromBytes - The array of bytes to be written.@NotNull @NotNull WireOut bytes(String type, byte[] fromBytes)
type - The string representing the type of byte sequence.fromBytes - The array of bytes to be written.@NotNull default @NotNull WireOut uint8(int x)
x - The integer value to be written as an unsigned 8-bit integer.ArithmeticException - if the supplied argument does not fit in an unsigned 8-bit integer.@NotNull @NotNull WireOut uint8checked(int u8)
u8 - The unsigned 8-bit integer value to be written.@NotNull default @NotNull WireOut int16(long x)
x - The long value to be written as a signed 16-bit integer.ArithmeticException - if the supplied argument does not fit in a signed 16-bit integer.@NotNull @NotNull WireOut int16(short i16)
i16 - The signed 16-bit integer value to be written.@NotNull default @NotNull WireOut uint16(long x)
uint16checked(int) without additional range checks.x - The long value to be written as an unsigned 16-bit integer.@NotNull @NotNull WireOut uint16checked(int u16)
u16 - The unsigned 16-bit integer value to be written.@NotNull @NotNull WireOut utf8(int codepoint)
codepoint - The 16-bit Unicode codepoint to be written as UTF-8.@NotNull default @NotNull WireOut int32(long x)
x - The long value to be written as a signed 32-bit integer.ArithmeticException - if the supplied argument does not fit in a signed 32-bit integer.@NotNull @NotNull WireOut int32(int i32)
i32 - The signed 32-bit integer value to be written.@NotNull default @NotNull WireOut int32(int i32, int previous)
int32(int) method.i32 - The signed 32-bit integer value to be written.previous - The previous value, currently not used in this method.@NotNull default @NotNull WireOut uint32(long x)
uint32checked(long) without additional range checks.x - The long value to be written as an unsigned 32-bit integer.@NotNull @NotNull WireOut uint32checked(long u32)
u32 - The unsigned 32-bit integer value to be written.@NotNull @NotNull WireOut int64(long i64)
i64 - The signed 64-bit integer value to be written.@NotNull default @NotNull WireOut int64(long i64, long previous)
int64(long) method.i64 - The signed 64-bit integer value to be written.previous - The previous value, currently not used in this method.@NotNull @NotNull WireOut int128forBinding(long i64x0, long i64x1, net.openhft.chronicle.core.values.TwoLongValue value)
i64x0 - The first 64-bit integer value.i64x1 - The second 64-bit integer value.value - The TwoLongValue object to which the values are bound.@NotNull @NotNull WireOut int64_0x(long i64)
i64 - The 64-bit integer value to be written in hexadecimal format.@NotNull @NotNull WireOut int64array(long capacity)
capacity - The desired capacity of the 64-bit integer array.@NotNull @NotNull WireOut int64array(long capacity, net.openhft.chronicle.core.values.LongArrayValues values)
capacity - The desired capacity of the 64-bit integer array.values - The LongArrayValues object containing the 64-bit integers to be written.@NotNull @NotNull WireOut float32(float f)
f - The 32-bit float value to be written.@NotNull @NotNull WireOut float64(double d)
d - The 64-bit double value to be written.@NotNull default @NotNull WireOut float32(float f, float previous)
float32(float) method.f - The 32-bit float value to be written.previous - The previous float value, currently not used in this method.@NotNull default @NotNull WireOut float64(double d, double previous)
float64(double) method.d - The 64-bit double value to be written.previous - The previous double value, currently not used in this method.@NotNull @NotNull WireOut time(LocalTime localTime)
localTime - The LocalTime instance to be written.@NotNull @NotNull WireOut zonedDateTime(ZonedDateTime zonedDateTime)
zonedDateTime - The ZonedDateTime instance to be written.@NotNull @NotNull WireOut date(LocalDate localDate)
localDate - The LocalDate instance to be written.@NotNull @NotNull WireOut dateTime(LocalDateTime localDateTime)
localDateTime - The LocalDateTime instance to be written.@NotNull @NotNull ValueOut typePrefix(CharSequence typeName)
typeName - The name of the type as a CharSequence.@NotNull default @NotNull ValueOut typePrefix(Class<?> type)
Class object. If the class object is null,
no action is taken; otherwise, it fetches the type name from a lookup method.type - The Class object representing the type.net.openhft.chronicle.core.pool.ClassLookup classLookup()
@NotNull default @NotNull WireOut typeLiteral(@Nullable @Nullable Class<?> type)
Class. If the class is null, a null value
is written. This is used to denote type information directly in the wire format.type - The Class object for which to write a type literal.@NotNull default @NotNull WireOut typeLiteral(@Nullable @Nullable Type type)
Type. If the type is null, a null value
is written. If the type is an instance of Class, then it delegates to the corresponding
method to write a type literal for a class.type - The Type object for which to write a type literal.@NotNull @NotNull WireOut typeLiteral(@Nullable @Nullable CharSequence type)
type - The type name as a CharSequence.@NotNull @NotNull WireOut typeLiteral(@NotNull @NotNull BiConsumer<Class,net.openhft.chronicle.bytes.Bytes<?>> typeTranslator, @Nullable @Nullable Class<?> type)
typeTranslator - A bi-consumer function to transform the Class object into a byte representation.type - The Class object to be translated.@NotNull @NotNull WireOut uuid(UUID uuid)
uuid - The UUID value to be written.@NotNull @NotNull WireOut int32forBinding(int value)
@NotNull @NotNull WireOut int32forBinding(int value, @NotNull @NotNull net.openhft.chronicle.core.values.IntValue intValue)
@NotNull @NotNull WireOut int64forBinding(long value)
@NotNull default @NotNull WireOut int128forBinding(long value, long value2)
@NotNull @NotNull WireOut int64forBinding(long value, @NotNull @NotNull net.openhft.chronicle.core.values.LongValue longValue)
@NotNull @NotNull WireOut boolForBinding(boolean value, @NotNull @NotNull net.openhft.chronicle.core.values.BooleanValue longValue)
@NotNull default @NotNull WireOut sequence(WriteValue writer)
@NotNull default <T> @NotNull WireOut sequence(Iterable<T> t)
Iterator. This method handles different types of iterables,
applying type prefixes as appropriate for Sets and SortedSets.t - The Iterable of values to be written.@NotNull <T> @NotNull WireOut sequence(T t, BiConsumer<T,ValueOut> writer)
t - The input to be consumed by the writer.writer - A bi-consumer that writes values using the given ValueOut instance.@NotNull <T,K> @NotNull WireOut sequence(T t, K param, TriConsumer<T,K,ValueOut> writer) throws net.openhft.chronicle.core.io.InvalidMarshallableException
t - The primary input to be consumed by the writer.param - A secondary input parameter for the writer.writer - A tri-consumer that writes values using the given ValueOut instance and additional parameter.net.openhft.chronicle.core.io.InvalidMarshallableException - When there's an issue marshalling the data.default <T> WireOut sequenceWithLength(T t, int length, ObjectIntObjectConsumer<T,ValueOut> writer)
t - The input to be consumed by the writer.length - The length of the sequence.writer - An object-int-object consumer that writes values using the given ValueOut instance.default WireOut array(net.openhft.chronicle.bytes.Bytes[] array, int length)
array - The array of byte sequences.length - The length of the sequence.default WireOut array(double[] array, int length)
array - The array of doubles.length - The length of the sequence.default WireOut arrayDelta(double[] array, int length)
array - to writelength - to writedefault WireOut array(boolean[] array, int length)
array - The array of booleans to be written.length - The number of elements from the array to write.default WireOut array(long[] array, int length)
array - The array of longs to be written.length - The number of elements from the array to write.default WireOut arrayDelta(long[] array, int length)
array - The array of longs whose deltas are to be written.length - The number of elements from the array to write.default WireOut array(int[] array, int length)
array - The array of ints to be written.length - The number of elements from the array to write.default WireOut array(byte[] array, int length)
array - The array of bytes to be written.length - The number of elements from the array to write.@NotNull default @NotNull WireOut array(@NotNull @NotNull WriteValue writer, @NotNull @NotNull Class<?> arrayType)
writer - The writer to use for writing the array.arrayType - The type of the array to be written.@NotNull @NotNull WireOut marshallable(WriteMarshallable object) throws net.openhft.chronicle.core.io.InvalidMarshallableException
WriteMarshallable interface to the wire output.object - The WriteMarshallable object to be written.net.openhft.chronicle.core.io.InvalidMarshallableException - If the object cannot be marshalled.@NotNull @NotNull WireOut marshallable(Serializable object) throws net.openhft.chronicle.core.io.InvalidMarshallableException
Serializable interface to the wire output.object - The Serializable object to be written.net.openhft.chronicle.core.io.InvalidMarshallableException - If the object cannot be marshalled.@NotNull @NotNull WireOut map(Map map) throws net.openhft.chronicle.core.io.InvalidMarshallableException
map - The map whose contents are to be written.net.openhft.chronicle.core.io.InvalidMarshallableException - If the map cannot be marshalled.IllegalArgumentException - If the type of the map is not one of those listed above.default boolean swapLeaf(boolean isLeaf)
isLeaf - Flag indicating whether the current node is a leaf.@NotNull default @NotNull WireOut typedMarshallable(@Nullable @Nullable WriteMarshallable marshallable) throws net.openhft.chronicle.core.io.InvalidMarshallableException
object(Object) method.marshallable - to writenet.openhft.chronicle.core.io.InvalidMarshallableExceptiondefault void endTypePrefix()
@NotNull default @NotNull WireOut typedMarshallable(@Nullable @Nullable Serializable object) throws net.openhft.chronicle.core.io.InvalidMarshallableException
Serializable interface to the wire output.
Specifically used when the object is known to be a typed serializable. If uncertain about the object's type,
it's recommended to use the object(Object) method instead.object - The Serializable object to be written.net.openhft.chronicle.core.io.InvalidMarshallableException - If the object cannot be marshalled.@NotNull default @NotNull WireOut typedMarshallable(CharSequence typeName, WriteMarshallable object) throws net.openhft.chronicle.core.io.InvalidMarshallableException
WriteMarshallable interface to the wire output,
while prepending it with a specified type prefix.typeName - The type prefix to be written before the object.object - The WriteMarshallable object to be written.net.openhft.chronicle.core.io.InvalidMarshallableException - If the object cannot be marshalled.@NotNull default <E extends Enum<E>> @NotNull WireOut asEnum(@Nullable E e)
E - Type parameter indicating that the provided object is of an Enum type.e - The enum value to be written.@NotNull default <V> @NotNull WireOut set(Set<V> coll) throws net.openhft.chronicle.core.io.InvalidMarshallableException
V - The type of elements in the set.coll - The set to be written.net.openhft.chronicle.core.io.InvalidMarshallableException - If the set cannot be marshalled.@NotNull default <V> @NotNull WireOut set(Set<V> coll, Class<V> assumedClass) throws net.openhft.chronicle.core.io.InvalidMarshallableException
V - The type of elements in the set.coll - The set to be written.assumedClass - The expected class type of the set entries.net.openhft.chronicle.core.io.InvalidMarshallableException - If the set cannot be marshalled.@NotNull default <V> @NotNull WireOut list(List<V> coll) throws net.openhft.chronicle.core.io.InvalidMarshallableException
V - The type of elements in the list.coll - The list to be written.net.openhft.chronicle.core.io.InvalidMarshallableException - If the list cannot be marshalled.@NotNull default <V> @NotNull WireOut list(List<V> coll, Class<V> assumedClass) throws net.openhft.chronicle.core.io.InvalidMarshallableException
V - The type of elements in the list.coll - The list to be written.assumedClass - The expected class type of the list entries.net.openhft.chronicle.core.io.InvalidMarshallableException - If the list cannot be marshalled.@NotNull default <V> @NotNull WireOut collection(Collection<V> coll, Class<V> assumedClass) throws net.openhft.chronicle.core.io.InvalidMarshallableException
V - The type of elements in the collection.coll - The collection to be written.assumedClass - The expected class type of the collection entries.net.openhft.chronicle.core.io.InvalidMarshallableException - If the collection cannot be marshalled.@NotNull default <V> @NotNull WireOut object(@NotNull @NotNull Class<? extends V> expectedType, V v) throws net.openhft.chronicle.core.io.InvalidMarshallableException
V - Type of the object to be written.expectedType - The expected class type of the object.v - The object to be written.net.openhft.chronicle.core.io.InvalidMarshallableException - If the object cannot be marshalled.@NotNull default <K,V> @NotNull WireOut marshallable(Map<K,V> map) throws net.openhft.chronicle.core.io.InvalidMarshallableException
K - Type of the map key.V - Type of the map value.map - The map to be written.net.openhft.chronicle.core.io.InvalidMarshallableException - If the map cannot be marshalled.@NotNull default <K,V> @NotNull WireOut marshallable(@Nullable @Nullable Map<K,V> map, @NotNull @NotNull Class<K> kClass, @NotNull @NotNull Class<V> vClass, boolean leaf) throws net.openhft.chronicle.core.io.InvalidMarshallableException
K - Type of the map key.V - Type of the map value.map - The map to be written. Can be null.kClass - Class type of the map key.vClass - Class type of the map value.leaf - Indicates if the map is a leaf node.net.openhft.chronicle.core.io.InvalidMarshallableException - If the map cannot be marshalled.@NotNull default @NotNull WireOut object(@Nullable @Nullable Object value) throws net.openhft.chronicle.core.io.InvalidMarshallableException
value - The object to be written. Can be null.net.openhft.chronicle.core.io.InvalidMarshallableException - If the object cannot be marshalled.default WireOut bytesMarshallable(net.openhft.chronicle.bytes.WriteBytesMarshallable value) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableException@NotNull default @NotNull ValueOut optionalTyped(Class<?> aClass)
aClass - to write@NotNull default @NotNull WireOut fixedFloat32(float value)
@NotNull default @NotNull WireOut fixedInt8(byte value)
@NotNull default @NotNull WireOut fixedInt16(short value)
@NotNull default @NotNull WireOut fixedInt32(int value)
@NotNull default @NotNull WireOut fixedFloat64(double value)
@NotNull default @NotNull WireOut fixedInt64(long value)
@NotNull default @NotNull WireOut untypedObject(@Nullable @Nullable Object value) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableException@NotNull default @NotNull WireOut typedScalar(@NotNull @NotNull Object value)
@NotNull default @NotNull WireOut throwable(@NotNull @NotNull Throwable t) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableException@NotNull @NotNull WireOut wireOut()
@NotNull default @NotNull WireOut compress(@NotNull @NotNull String compression, @Nullable @Nullable net.openhft.chronicle.bytes.Bytes<?> uncompressedBytes)
default int compressedSize()
default void resetBetweenDocuments()
void resetState()
default boolean isBinary()
true if this wire type is binary wire, false otherwise.default WireOut writeBoolean(boolean x)
x - The boolean value to be written.default WireOut writeByte(byte x)
x - The byte value to be written.default WireOut writeChar(char x)
x - The char value to be written.default WireOut writeShort(short x)
x - The short value to be written.default WireOut writeInt(int x)
x - The integer value to be written.default WireOut writeLong(long x)
x - The long value to be written.default WireOut writeFloat(float x)
x - The float value to be written.default WireOut writeDouble(double x)
x - The double value to be written.default WireOut writeString(CharSequence x)
x - The sequence of characters to be written.default WireOut writeInt(LongConverter converter, int i)
converter - Converter to use.i - The integer to be converted and written.default WireOut writeLong(LongConverter longConverter, long l)
longConverter - Converter to use.l - The long value to be converted and written.default void elementSeparator()
Copyright © 2024. All rights reserved.