Type Reason Java.IO.IOException if an error occurs while writing to the target stream. Java.IO.NotActiveException if there are no fields to write to the target stream.
Writes the fields of the object currently being written to the target stream. The field values are buffered in the currently active PutField object, which can be accessed by calling putFields().