byte[] states
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String path
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
java.util.Vector<E> permissions
int bytesTransferred
String classname
int length
boolean eof
String actions
private void readObject(ObjectInputStream arg0) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Exception detail
This field predates the general-purpose exception chaining facility.
The Throwable.getCause()
method is now the preferred means of
obtaining this information.
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
Throwable ex
double value
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObjectNoData() throws ObjectStreamException
ObjectStreamException
String name
Enum.toString()
method rather than
accessing this field.int ordinal
EnumSet
and EnumMap
.Throwable exception
float value
int value
Integer
.long value
Long
.short value
Short
.
TC_STRING
(utf String)
The String is written by method DataOutput.writeUTF
.
A new handle is generated to refer to all future references to the
string instance within the stream.private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int count
boolean shared
char[] value
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws 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.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws 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)
.IOException
String detailMessage
FileNotFoundException
, this contains the name of
the file that could not be found.Throwable cause
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 be no-ops.java.util.List<E> 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(ObjectInputStream s) throws IOException, ClassNotFoundException
BigDecimal
instance from a stream (that is,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
BigDecimal
to the stream in questionIOException
BigInteger intVal
BigDecimal.unscaledValue()
.BigDecimal.unscaledValue()
int scale
BigDecimal.scale
.BigDecimal.scale
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
BigInteger
instance from a stream (that is,
deserialize it). The magnitude is read in as an array of bytes
for historical reasons, but it is converted to an array of ints
and the byte array is discarded.
Note:
The current convention is to initialize the cache fields, bitCount,
bitLength and lowestSetBit, to 0 rather than some other marker value.
Therefore, no explicit action to set these fields needs to be taken in
readObject because those fields already have a 0 value be default since
defaultReadObject is not being used.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
BigInteger
instance to a stream.
The magnitude of a BigInteger is serialized as a byte array for
historical reasons.IOException
int bitCount
int bitLength
int lowestSetBit
int[] magnitude
int signum
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
MathContext
instance from a stream (that is,
deserialize it).IOException
ClassNotFoundException
int precision
precision
will always be non-negative.
RoundingMode roundingMode
RoundingMode