- <init>
Creates a new Kryo with a DefaultClassResolver.
- readClassAndObject
Reads the class and object or null using the registered serializer.
- writeClassAndObject
Writes the class and object or null using the registered serializer.
- register
Registers the class using the specified ID and serializer. Providing an ID that
is already in use by
- writeObject
Writes an object using the specified serializer. The registered serializer is
ignored.
- readObject
Reads an object using the specified serializer. The registered serializer is
ignored.
- setInstantiatorStrategy
Sets the strategy used by #newInstantiator(Class) for creating objects. See
StdInstantiatorStrategy
- setRegistrationRequired
If true, an exception is thrown when an unregistered class is encountered.
Default is false. If fals
- setReferences
If true, each appearance of an object in the graph after the first is stored as
an integer ordinal.
- addDefaultSerializer
Instances of the specified class will use the specified serializer when
#register(Class) or #registe
- copy
Returns a deep copy of the object using the specified serializer. Serializers
for the classes involv
- getDefaultSerializer
Returns the best matching serializer for a class. This method can be overridden
to implement custom