Class Class is special cased within the Serialization Stream Protocol.
A Class instance is written initially into an ObjectOutputStream in the
A ClassDescriptor is a special cased serialization of
a java.io.ObjectStreamClass instance.
A new handle is generated for the initial time the class descriptor
is written into the stream. Future references to the class descriptor
are written as references to the initial class descriptor instance.
Save the state of the StringBuilder instance to a stream
(that is, serialize it).
the number of characters currently stored in the string
builder (int), followed by the characters in the
string builder (char). The length of the
char array may be greater than the number of
characters currently stored in the string builder, in which
case extra characters are ignored.
Reads a Throwable from a stream, enforcing
well-formedness constraints on fields. Null entries and
self-pointers are not allowed in the list of
suppressedExceptions. Null entries are not allowed for stack
trace elements. A null stack trace in the serial form results
in a zero-length stack element array. A single-element stack
trace whose entry is equal to new StackTraceElement("",
"", null, Integer.MIN_VALUE) results in a null
Note that there are no constraints on the value the
cause field can hold; both null and this are
valid values for the field.
Write a Throwable object to a stream.
A null stack trace field is represented in the serial
form as a one-element array whose element is equal to
new StackTraceElement("", "", null, Integer.MIN_VALUE).
The throwable that caused this throwable to get thrown, or null if this
throwable was not caused by another throwable, or if the causative
throwable is unknown. If this field is equal to this throwable itself,
it indicates that the cause of this throwable has not yet been
The list of suppressed exceptions, as returned by Throwable.getSuppressed(). The list is initialized to a zero-element
unmodifiable sentinel list. When a serialized Throwable is
read in, if the suppressedExceptions field points to a
zero-element list, the field is reset to the sentinel value.
Reconstitute the MethodType instance from a stream (that is,
This instance is a scratch object with bogus final fields.
It provides the parameters to the factory method called by
After that call it is discarded.
java.io.IOException - if there is a problem reading the object
For portability, the serialized format does not refer to named fields.
Instead, the return type and parameter type arrays are written directly
from the writeObject method, using two calls to s.writeObject