Class BukkitObjectOutputStream

java.lang.Object
java.io.OutputStream
java.io.ObjectOutputStream
org.bukkit.util.io.BukkitObjectOutputStream
All Implemented Interfaces:
Closeable, DataOutput, Flushable, ObjectOutput, ObjectStreamConstants, AutoCloseable

@Deprecated(since="1.21") public class BukkitObjectOutputStream extends ObjectOutputStream
Deprecated.
Object streams on their own are not safe. For safer and more consistent serialization of items, use ItemStack.serializeAsBytes() or ItemStack.serializeItemsAsBytes(java.util.Collection).
This class is designed to be used in conjunction with the ConfigurationSerializable API. It translates objects to an internal implementation for later deserialization using BukkitObjectInputStream.

Behavior of implementations extending this class is not guaranteed across future versions.