public class KryoObjectOutput extends KryoDataOutput implements ObjectOutput
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.output
Constructor and Description |
---|
KryoObjectOutput(Kryo kryo,
Output output) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
writeObject(Object obj) |
setOutput, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write, write, write
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
public void writeObject(Object obj) throws IOException
writeObject
in interface ObjectOutput
IOException
public void flush() throws IOException
flush
in interface ObjectOutput
IOException
public void close() throws IOException
close
in interface ObjectOutput
close
in interface AutoCloseable
IOException
Copyright © 2018. All rights reserved.