Hi,
I use Kryo to save objects using:
kryo.writeClassAndObject(out, obj);
Is ist somehow possible to read the data back into a given object?
I could read the object back and set them:
T obj = (T) kryo.readClassAndObject(in);
T anotherT = ...
anotherT.setData(obj);
but I would like to skip that and do something like:
T anotherT = ...
kryo.readClassAndObjectInto(in, anotherT);
I found
kryo.setInstantiatorStrategy(strategy);
but I am not quite sure if that is what I am serching for?
Can anybode give me a hint how to archiv that?
-ClaasJG
@Edit I forgot the title …