Package | Description |
---|---|
com.esotericsoftware.kryo | |
com.esotericsoftware.kryo.factories | |
com.esotericsoftware.kryo.serializers |
Modifier and Type | Method and Description |
---|---|
Serializer |
Kryo.getDefaultSerializer(Class type)
Returns the best matching serializer for a class.
|
protected Serializer |
Kryo.getDefaultSerializerForAnnotatedType(Class type) |
Serializer |
Registration.getSerializer() |
Serializer |
Kryo.getSerializer(Class type)
Returns the serializer for the registration for the specified class.
|
protected Serializer |
Kryo.newDefaultSerializer(Class type)
Called by
Kryo.getDefaultSerializer(Class) when no default serializers matched the type. |
Modifier and Type | Method and Description |
---|---|
void |
Kryo.addDefaultSerializer(Class type,
Serializer serializer)
Instances of the specified class will use the specified serializer when
Kryo.register(Class) or
Kryo.register(Class, int) are called. |
<T> T |
Kryo.copy(T object,
Serializer serializer)
Returns a deep copy of the object using the specified serializer.
|
<T> T |
Kryo.copyShallow(T object,
Serializer serializer)
Returns a shallow copy of the object using the specified serializer.
|
<T> T |
Kryo.readObject(Input input,
Class<T> type,
Serializer serializer)
Reads an object using the specified serializer.
|
<T> T |
Kryo.readObjectOrNull(Input input,
Class<T> type,
Serializer serializer)
Reads an object or null using the specified serializer.
|
Registration |
Kryo.register(Class type,
Serializer serializer)
Registers the class using the lowest, next available integer ID and the specified serializer.
|
Registration |
Kryo.register(Class type,
Serializer serializer,
int id)
Registers the class using the specified ID and serializer.
|
void |
Registration.setSerializer(Serializer serializer) |
void |
Kryo.writeObject(Output output,
Object object,
Serializer serializer)
Writes an object using the specified serializer.
|
void |
Kryo.writeObjectOrNull(Output output,
Object object,
Serializer serializer)
Writes an object or null using the specified serializer.
|
Modifier and Type | Method and Description |
---|---|
void |
Kryo.addDefaultSerializer(Class type,
Class<? extends Serializer> serializerClass)
Instances of the specified class will use the specified serializer when
Kryo.register(Class) or
Kryo.register(Class, int) are called. |
void |
Kryo.setDefaultSerializer(Class<? extends Serializer> serializer)
Sets the serializer to use when no
default serializers match an object's type. |
Constructor and Description |
---|
Registration(Class type,
Serializer serializer,
int id) |
Modifier and Type | Method and Description |
---|---|
Serializer |
PseudoSerializerFactory.makeSerializer(Kryo kryo,
Class<?> type) |
Serializer |
SerializerFactory.makeSerializer(Kryo kryo,
Class<?> type)
Creates a new serializer
|
Serializer |
ReflectionSerializerFactory.makeSerializer(Kryo kryo,
Class<?> type) |
static Serializer |
ReflectionSerializerFactory.makeSerializer(Kryo kryo,
Class<? extends Serializer> serializerClass,
Class<?> type)
Creates a new instance of the specified serializer for serializing the specified class.
|
Modifier and Type | Method and Description |
---|---|
static Serializer |
ReflectionSerializerFactory.makeSerializer(Kryo kryo,
Class<? extends Serializer> serializerClass,
Class<?> type)
Creates a new instance of the specified serializer for serializing the specified class.
|
Constructor and Description |
---|
PseudoSerializerFactory(Serializer<?> serializer) |
Constructor and Description |
---|
ReflectionSerializerFactory(Class<? extends Serializer> serializerClass) |
Modifier and Type | Method and Description |
---|---|
Serializer |
FieldSerializer.CachedField.getSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
FieldSerializer.CachedField.setClass(Class valueClass,
Serializer serializer) |
void |
CollectionSerializer.setElementClass(Class elementClass,
Serializer serializer) |
void |
MapSerializer.setKeyClass(Class keyClass,
Serializer keySerializer) |
void |
FieldSerializer.CachedField.setSerializer(Serializer serializer) |
void |
MapSerializer.setValueClass(Class valueClass,
Serializer valueSerializer) |
Constructor and Description |
---|
BlowfishSerializer(Serializer serializer,
byte[] key) |
CollectionSerializer(Class elementClass,
Serializer serializer) |
CollectionSerializer(Class elementClass,
Serializer serializer,
boolean elementsCanBeNull) |
DeflateSerializer(Serializer serializer) |
Copyright © 2018. All rights reserved.