public class CloseableKryo
extends com.esotericsoftware.kryo.Kryo
implements java.io.Closeable
CloseableKryo
which allows Kryo
instances
to be used with try-resource blocks.Constructor and Description |
---|
CloseableKryo() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
com.esotericsoftware.kryo.Registration |
register(java.lang.Class type,
com.esotericsoftware.kryo.Serializer serializer) |
com.esotericsoftware.kryo.Registration |
register(com.esotericsoftware.kryo.Registration registration) |
addDefaultSerializer, addDefaultSerializer, addDefaultSerializer, copy, copy, copyShallow, copyShallow, getAsmEnabled, getClassLoader, getClassResolver, getContext, getDefaultSerializer, getDefaultSerializerForAnnotatedType, getDepth, getGenericsScope, getGraphContext, getInstantiatorStrategy, getNextRegistrationId, getOriginalToCopyMap, getReferenceResolver, getReferences, getRegistration, getRegistration, getSerializer, getStreamFactory, isClousre, isFinal, isRegistrationRequired, newDefaultSerializer, newInstance, newInstantiator, popGenericsScope, pushGenericsScope, readClass, readClassAndObject, readObject, readObject, readObjectOrNull, readObjectOrNull, reference, register, register, register, reset, setAsmEnabled, setAutoReset, setClassLoader, setCopyReferences, setDefaultSerializer, setDefaultSerializer, setInstantiatorStrategy, setMaxDepth, setReferenceResolver, setReferences, setRegistrationRequired, setStreamFactory, writeClass, writeClassAndObject, writeObject, writeObject, writeObjectOrNull, writeObjectOrNull
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
public com.esotericsoftware.kryo.Registration register(java.lang.Class type, com.esotericsoftware.kryo.Serializer serializer)
register
in class com.esotericsoftware.kryo.Kryo
public com.esotericsoftware.kryo.Registration register(com.esotericsoftware.kryo.Registration registration)
register
in class com.esotericsoftware.kryo.Kryo