Class KryoObjectOutput

java.lang.Object
com.esotericsoftware.kryo.io.KryoDataOutput
com.esotericsoftware.kryo.io.KryoObjectOutput
All Implemented Interfaces:
DataOutput, ObjectOutput, AutoCloseable

public class KryoObjectOutput extends KryoDataOutput implements ObjectOutput
A kryo adapter for the ObjectOutput class. Note that this is not a Kryo implementation of ObjectOutputStream which has special handling for default serialization and serialization extras like writeReplace. By default it will simply delegate to the appropriate kryo method. Also, using it will currently add one extra byte for each time writeObject(Object) is invoked since we need to allow unknown null objects.