serializeUser
Serializes a User object into a byte array.
Return
a byte array representing the serialized User object
Parameters
user
the User object to serialize
Throws
if an I/O error occurs during serialization
Serializes a User object into a byte array.
a byte array representing the serialized User object
the User object to serialize
if an I/O error occurs during serialization