T - type of objects deserializedpublic interface BytesReader<T>
extends net.openhft.chronicle.wire.Marshallable
BytesWriter, without accepting additional
information about serialized objects.
Read BytesWriter and BytesReader and
custom
serialization checklist sections in the Chronicle Map tutorial for more information on this
interface, how to implement and use it properly.
| Modifier and Type | Method and Description |
|---|---|
T |
read(net.openhft.chronicle.bytes.Bytes in,
T using)
Reads and returns the object from
RandomCommon.readPosition() (i. |
$equals, $fieldInfos, $hashCode, $toString, copyFrom, copyTo, deepCopy, fromFile, fromFile, fromFileAsMap, fromFileAsMap, fromHexString, fromString, fromString, fromString, getClassName, getField, mergeToMap, readMarshallable, reset, setField, streamFromFile, streamFromFile, writeMarshallable@NotNull T read(net.openhft.chronicle.bytes.Bytes in, @Nullable T using)
RandomCommon.readPosition() (i. e. the current position)
in the given in. Should attempt to reuse the given using object, i. e. to
read the deserialized data into the given object. If it is possible, this object then
returned from this method back. If it is impossible for any reason, a new object should be
created and returned. The given using object could be null, in this case this
method, of cause, should create a new object.
This method should increment the position in the given Bytes, i. e. consume the
read bytes. in bytes shouldn't be written.
in - the Bytes to read the object fromusing - the object to read the deserialized data into, could be nullCopyright © 2019. All rights reserved.