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, writeUTFclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwrite, write, writewriteBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFpublic void writeObject(Object obj) throws IOException
writeObject in interface ObjectOutputIOExceptionpublic void flush()
throws IOException
flush in interface ObjectOutputIOExceptionpublic void close()
throws IOException
close in interface ObjectOutputclose in interface AutoCloseableIOExceptionCopyright © 2023. All rights reserved.