boolean value
byte value
Byte
.char value
Character
.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.TC_CLASS
ClassDescriptor A ClassDescriptor is a special cased serialization of ajava.io.ObjectStreamClass
instance.
ObjectStreamClass
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException
java.io.IOException
ClassNotFoundException
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
Throwable ex
double value
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException
java.io.IOException
ClassNotFoundException
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
Throwable exception
float value
int value
Integer
.long value
Long
.short value
Short
.private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException
java.io.IOException
ClassNotFoundException
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException
java.io.IOException
int count
boolean shared
char[] value
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException
java.io.IOException
ClassNotFoundException
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException
StringBuilder
instance to a stream
(that is, serialize it).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.java.io.IOException
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException
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
stackTrace
field.
Note that there are no constraints on the value the
cause
field can hold; both null
and this
are
valid values for the field.java.io.IOException
ClassNotFoundException
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException
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)
.java.io.IOException
Throwable cause
String detailMessage
FileNotFoundException
, this contains the name of
the file that could not be found.StackTraceElement[] stackTrace
Throwable.getStackTrace()
.
The field is initialized to a zero-length array. A
null
value of this field indicates subsequent calls to Throwable.setStackTrace(StackTraceElement[])
and Throwable.fillInStackTrace()
will be no-ops.java.util.List<Throwable> suppressedExceptions
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.String typeName
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException
MethodType
instance from a stream (that is,
deserialize it).
This instance is a scratch object with bogus final fields.
It provides the parameters to the factory method called by
readResolve
.
After that call it is discarded.java.io.IOException
- if there is a problem reading the objectClassNotFoundException
- if one of the component classes cannot be resolvedMethodType.readResolve()
,
MethodType.writeObject(java.io.ObjectOutputStream)
private Object readResolve()
MethodType
object
after serialization.private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException
MethodType
instance to a stream.writeObject
method, using two calls to s.writeObject
as follows:
s.writeObject(this.returnType()); s.writeObject(this.parameterArray());
The deserialized field values are checked as if they were
provided to the factory method methodType
.
For example, null values, or void
parameter types,
will lead to exceptions during deserialization.
java.io.IOException
- if there is a problem writing the objectMethodType
.private Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
Object[] capturedArgs
Class<?> capturingClass
String functionalInterfaceClass
String functionalInterfaceMethodName
String functionalInterfaceMethodSignature
String implClass
int implMethodKind
String implMethodName
String implMethodSignature
String instantiatedMethodType