T
- type of objects deserializedpublic interface BytesReader<T> extends 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.
EMPTY
DISCARD
Modifier and Type | Method and Description |
---|---|
T |
read(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, getClassName, getField, mergeToMap, readMarshallable, setField, streamFromFile, streamFromFile, writeMarshallable
writeValue
@NotNull T read(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 null
Copyright © 2017. All rights reserved.