Packet Serializable
interface PacketSerializable
The PacketSerializable interface defines the contract for objects that can be serialized and deserialized to and from byte streams using a ByteArrayDataInput for deserialization and a ByteArrayDataOutput for serialization. Implementing classes must provide methods to serialize themselves into a byte stream and deserialize themselves from a byte stream.