T- the type of the object deserialized
public interface SizedReader<T> extends Marshallable
SizedWriter, i. e. assuming the length of the serialized form isn't written in the beginning of the serialized form itself, but managed by
ChronicleHashimplementation and passed to the reading methods.
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|
Reads and returns the object from
$equals, $fieldInfos, $hashCode, $toString, copyFrom, deepCopy, fromFile, fromFile, fromFileAsMap, fromFileAsMap, fromHexString, fromString, getField, mergeToMap, readMarshallable, setField, writeMarshallable
RandomCommon.readPosition()(i. e. the current position) to
Bytes.readPosition() + sizein the given
in. Should attempt to reuse the given
usingobject, i. e. to read the deserialized data into the given object. If it is possible, this objects then returned from this method. If it is impossible for any reason, a new object should be created and returned. The given
usingobject 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 by the given
Bytesto read the object from
size- the size of the serialized form of the returned object
using- the object to read the deserialized data into, could be
Copyright © 2017. All rights reserved.