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