@FunctionalInterface public interface ReadBytesMarshallable extends CommonMarshallable
BytesIn instances.
The interface also implements CommonMarshallable, a common parent for classes and
interfaces that provides marshalling and unmarshalling methods for converting objects to bytes
and bytes to objects.
Implementations of this interface are expected to handle their own validation logic and may
need to call Validatable.validate() as necessary.
WriteBytesMarshallable,
BytesIn,
BytesOut| Modifier and Type | Method and Description |
|---|---|
void |
readMarshallable(BytesIn<?> bytes)
Reads data from the provided
BytesIn object. |
usesSelfDescribingMessagevoid readMarshallable(BytesIn<?> bytes) throws net.openhft.chronicle.core.io.IORuntimeException, BufferUnderflowException, IllegalStateException, net.openhft.chronicle.core.io.InvalidMarshallableException
BytesIn object. Implementations of this method are
responsible for handling their own data reading logic based on the structure of the data
they expect to read.
Note: Implementations are also responsible for calling
Validatable.validate() when necessary.
bytes - The BytesIn instance to read data from.net.openhft.chronicle.core.io.IORuntimeException - If an I/O error occurs during reading.BufferUnderflowException - If there is not enough data in the buffer to read.net.openhft.chronicle.core.io.InvalidMarshallableException - If there is a problem with marshalling data,
such as incorrect format or type.net.openhft.chronicle.core.io.ClosedIllegalStateException - If the resource has been released or closed.net.openhft.chronicle.core.io.ThreadingIllegalStateException - If this resource was accessed by multiple threads in an unsafe wayIllegalStateExceptionCopyright © 2023. All rights reserved.