Class KryoObjectOutput
java.lang.Object
com.esotericsoftware.kryo.io.KryoDataOutput
com.esotericsoftware.kryo.io.KryoObjectOutput
- All Implemented Interfaces:
DataOutput, ObjectOutput, AutoCloseable
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.-
Field Summary
FieldsFields inherited from class KryoDataOutput
output -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class KryoDataOutput
setOutput, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DataOutput
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFMethods inherited from interface ObjectOutput
write, write, write
-
Field Details
-
kryo
-
-
Constructor Details
-
KryoObjectOutput
-
-
Method Details
-
writeObject
- Specified by:
writeObjectin interfaceObjectOutput- Throws:
IOException
-
flush
- Specified by:
flushin interfaceObjectOutput- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceObjectOutput- Throws:
IOException
-