com.esotericsoftware.kryo.KryoSerializable Maven / Gradle / Ivy
The newest version!
package com.esotericsoftware.kryo;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;
import com.esotericsoftware.kryo.serializers.DefaultSerializers.KryoSerializableSerializer;
/** Allows implementing classes to perform their own serialization. Hand written serialization can be more efficient in some cases.
*
* The default serializer for KryoSerializable is {@link KryoSerializableSerializer}, which uses {@link Kryo#newInstance(Class)}
* to construct the class.
* @author Nathan Sweet */
public interface KryoSerializable {
public void write (Kryo kryo, Output output);
public void read (Kryo kryo, Input input);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy