Class BukkitObjectInputStream

java.lang.Object
java.io.InputStream
java.io.ObjectInputStream
org.bukkit.util.io.BukkitObjectInputStream
All Implemented Interfaces:
Closeable, DataInput, ObjectInput, ObjectStreamConstants, AutoCloseable

@Deprecated(since="1.21") public class BukkitObjectInputStream extends ObjectInputStream
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 back to their original implementation after being serialized by BukkitObjectInputStream.

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