private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, java.awt.HeadlessException
java.awt.HeadlessException
- if
GraphicsEnvironment.isHeadless()
returns
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
AccessibleContext accessibleContext
int numComponents
int type
float[] diffMinMax
float[] invDiffMinMax
float[] maxVal
float[] minVal
boolean needScaleInit
ICC_Profile thisProfile
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
String
is the name of one of
CS_*
constants defined in the
ColorSpace
class if the profile object is a profile
for a predefined color space (for example
"CS_sRGB"
). The string is null
otherwise.
The byte[]
array is the profile data for the
profile. It will usually be null
for the
predefined profiles.
If the string is recognized as a constant name for
predefined color space the object will be resolved into
profile obtained with
getInstance(int cspace)
and the profile
data are ignored. Otherwise the object will be resolved
into profile obtained with
getInstance(byte[] data)
.
IOException
- thrown by ObjectInputStream
.ClassNotFoundException
- thrown by ObjectInputStream
.ICC_Profile.readResolve()
,
ICC_Profile.getInstance(int)
,
ICC_Profile.getInstance(byte[])
protected Object readResolve() throws ObjectStreamException
ObjectStreamException
- never thrown, but mandated by the serialization spec.private void writeObject(ObjectOutputStream s) throws IOException
String
is the name of one of
CS_*
constants defined in the
ColorSpace
class if the profile object is a profile
for a predefined color space (for example
"CS_sRGB"
). The string is null
otherwise.
The byte[]
array is the profile data for the
profile. For predefined color spaces null
is
written instead of the profile data. If in the future
versions of Java API new predefined color spaces will be
added, future versions of this class may choose to write
for new predefined color spaces not only the color space
name, but the profile data as well so that older versions
could still deserialize the object.
IOException
- thrown by ObjectInputStream
.int iccProfileSerializedDataVersion
1
corresponds to Java 2
Platform, v1.3.public void readExternal(ObjectInput is) throws IOException, ClassNotFoundException
DataFlavor
from a Serialized state.IOException
- if I/O errors occurClassNotFoundException
- If the class for an object being
restored cannot be found.public void writeExternal(ObjectOutput os) throws IOException
DataFlavor
.IOException
- Includes any I/O exceptions that may occurString searchTerm
URI uri
UserSessionEvent.Reason reason
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
DragGestureEvent
. This method first
performs default deserialization for all non-transient
fields. An attempt is then made to deserialize this object's
List
of gesture events as well. This is first attempted
by deserializing the field events
, because, in releases
prior to 1.4, a non-transient
field of this name stored the
List
of gesture events. If this fails, the next object in
the stream is used instead. If the resulting List
is
null
, this object's List
of gesture events
is set to an empty List
.ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
DragGestureEvent
. Performs default
serialization and then writes out this object's List
of
gesture events if and only if the List
can be serialized.
If not, null
is written instead. In this case, a
DragGestureEvent
created from the resulting deserialized
stream will contain an empty List
of gesture events.List
instance, or
null
.IOException
int action
java.awt.Component component
DragSource dragSource
java.awt.Point origin
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
DragGestureRecognizer
. This method first
performs default deserialization for all non-transient
fields. This object's DragGestureListener
is then
deserialized as well by using the next object in the stream.ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
DragGestureRecognizer
. This method first
performs default serialization. Then, this object's
DragGestureListener
is written out if and only if it can be
serialized. If not, null
is written instead.DragGestureListener
, or
null
.IOException
java.awt.Component component
Component
associated with this DragGestureRecognizer
.DragSource dragSource
DragSource
associated with this
DragGestureRecognizer
.ArrayList<E> events
DragGestureRecognizer
"recognized" as a "gesture" that triggers a drag.int sourceActions
int
representing
the type(s) of action(s) used
in this Drag and Drop operation.private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
DragSource
. This method first performs
default deserialization. Next, this object's FlavorMap
is
deserialized by using the next object in the stream.
If the resulting FlavorMap
is null
, this
object's FlavorMap
is set to the default FlavorMap for
this thread's ClassLoader
.
Next, this object's listeners are deserialized by reading a
null
-terminated sequence of 0 or more key/value pairs
from the stream:
String
equal to
dragSourceListenerK
, a DragSourceListener
is
deserialized using the corresponding value object and added to this
DragSource
.
String
equal to
dragSourceMotionListenerK
, a
DragSourceMotionListener
is deserialized using the
corresponding value object and added to this DragSource
.
ClassNotFoundException
IOException
SystemFlavorMap.getDefaultFlavorMap()
private void writeObject(ObjectOutputStream s) throws IOException
DragSource
. This method first performs
default serialization. Next, it writes out this object's
FlavorMap
if and only if it can be serialized. If not,
null
is written instead. Next, it writes out
Serializable
listeners registered with this
object. Listeners are written in a null
-terminated sequence
of 0 or more pairs. The pair consists of a String
and an
Object
; the String
indicates the type of the
Object
and is one of the following:
dragSourceListenerK
indicating a
DragSourceListener
object;
dragSourceMotionListenerK
indicating a
DragSourceMotionListener
object.
FlavorMap
instance, or
null
, followed by a null
-terminated
sequence of 0 or more pairs; the pair consists of a
String
and an Object
; the
String
indicates the type of the Object
and is one of the following:
dragSourceListenerK
indicating a
DragSourceListener
object;
dragSourceMotionListenerK
indicating a
DragSourceMotionListener
object.
IOException
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
DragSourceContext
. This method first
performs default deserialization for all non-transient
fields. This object's Transferable
and
DragSourceListener
are then deserialized as well by using
the next two objects in the stream. If the resulting
Transferable
is null
, this object's
Transferable
is set to a dummy Transferable
which supports no DataFlavor
s.ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
DragSourceContext
. This method first
performs default serialization. Next, this object's
Transferable
is written out if and only if it can be
serialized. If not, null
is written instead. In this case,
a DragSourceContext
created from the resulting deserialized
stream will contain a dummy Transferable
which supports no
DataFlavor
s. Finally, this object's
DragSourceListener
is written out if and only if it can be
serialized. If not, null
is written instead.Transferable
instance, or
null
, followed by either a
DragSourceListener
instance, or
null
.IOException
java.awt.Cursor cursor
int sourceActions
DnDConstants
that represents the set of
drop actions supported by the drag source for the drag operation associated
with this DragSourceContext.
DragGestureEvent trigger
boolean useCustomCursor
true
if the custom drag cursor is used instead of the
default one.int dropAction
int gestureModifiers
boolean invalidModifiers
gestureModifiers
are invalid.int targetActions
int dropAction
boolean dropSuccess
true
if the drop was successful.boolean locationSpecified
boolean
indicating whether the cursor location
is specified for this event.int x
int y
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
DropTarget
. This method first performs
default deserialization for all non-transient
fields. An
attempt is then made to deserialize this object's
DropTargetListener
as well. This is first attempted by
deserializing the field dtListener
, because, in releases
prior to 1.4, a non-transient
field of this name stored the
DropTargetListener
. If this fails, the next object in the
stream is used instead.ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
DropTarget
. Performs default serialization,
and then writes out this object's DropTargetListener
if and
only if it can be serialized. If not, null
is written
instead.DropTargetListener
instance, or null
.IOException
int actions
boolean active
true
if the DropTarget is accepting Drag & Drop operations.java.awt.Component component
DropTargetContext dropTargetContext
DropTarget dropTarget
int actions
int dropAction
java.awt.Point location
int actions
int dropAction
boolean isLocalTx
true
if the source is in the same JVM as the target.java.awt.Point location
DropTargetContext context
DropTargetContext
associated with this
DropTargetEvent
.String actionCommand
ActionEvent.getActionCommand()
int modifiers
ActionEvent.getModifiers()
long when
ActionEvent.getWhen()
java.awt.Adjustable adjustable
AdjustmentEvent.getAdjustable()
int adjustmentType
adjustmentType
describes how the adjustable
object value has changed.
This value can be increased/decreased by a block or unit amount
where the block is associated with page increments/decrements,
and a unit is associated with line increments/decrements.AdjustmentEvent.getAdjustmentType()
boolean isAdjusting
isAdjusting
is true if the event is one
of the series of multiple adjustment events.AdjustmentEvent.getValueIsAdjusting()
int value
value
will contain the new value of the
adjustable object. This value will always be in a
range associated adjustable object.AdjustmentEvent.getValue()
java.awt.Component child
ContainerEvent.getChild()
Object readResolve() throws ObjectStreamException
FocusEvent
instance is compatible
with the current specification which implies that focus event has
non-null cause
value. If the check fails a new FocusEvent
instance is returned which cause
field equals to
FocusEvent.Cause.UNKNOWN
and its other fields have the same values as in
this FocusEvent
instance.ObjectStreamException
FocusEvent.cause
FocusEvent.Cause cause
FocusEvent.getCause()
boolean temporary
FocusEvent.isTemporary()
java.awt.Component changed
java.awt.Container changedParent
long changeFlags
int modifiers
long when
InputEvent.getWhen()
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
when
field if it is not present in the
object input stream. In that case, the field will be initialized by
invoking EventQueue.getMostRecentEventTime()
.ClassNotFoundException
IOException
long when
InputMethodEvent.getWhen()
boolean catchExceptions
boolean dispatched
run()
method of the runnable
was executed or not.InvocationEvent.isDispatched()
Exception exception
Runnable listener
InvocationEvent.isDispatched()
Object notifier
InvocationEvent.isDispatched()
Runnable runnable
Throwable throwable
long when
InvocationEvent.getWhen()
Object item
ItemEvent.getItem()
int stateChange
stateChange
indicates whether the item
was selected or deselected.ItemEvent.getStateChange()
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
boolean isProxyActive
char keyChar
keyChar
is a valid unicode character
that is fired by a key or a key combination on
a keyboard.KeyEvent.getKeyChar()
,
KeyEvent.setKeyChar(char)
int keyCode
KeyEvent.getKeyCode()
,
KeyEvent.setKeyCode(int)
int keyLocation
KEY_LOCATION_UNKNOWN
,
KEY_LOCATION_STANDARD
, KEY_LOCATION_LEFT
,
KEY_LOCATION_RIGHT
, and KEY_LOCATION_NUMPAD
.KeyEvent.getKeyLocation()
java.awt.Component originalSource
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
int button
MouseInfo.getNumberOfButtons()
method.
This range already includes constants NOBUTTON
, BUTTON1
,
BUTTON2
, and BUTTON3
if these buttons are present. So it is allowed to use these constants too.
For example, for a mouse with two buttons this field may contain the following values:
NOBUTTON
)
BUTTON1
)
BUTTON2
)
NOBUTTON
)
BUTTON1
)
BUTTON2
)
BUTTON3
)
Toolkit.areExtraMouseButtonsEnabled()
disabled by Java
then the field may not contain the value larger than BUTTON3
.MouseEvent.getButton()
,
Toolkit.areExtraMouseButtonsEnabled()
int clickCount
MOUSE_CLICKED
,
MOUSE_PRESSED
and
MOUSE_RELEASED
.
For the above, the clickCount
will be at least 1.
For all other events the count will be 0.MouseEvent.getClickCount()
boolean popupTrigger
popupTrigger
= false
,
no popup menu should appear. If it is true
then a popup menu should appear.PopupMenu
,
MouseEvent.isPopupTrigger()
int x
MouseEvent.getX()
int xAbs
int y
MouseEvent.getY()
int yAbs
double preciseWheelRotation
int scrollAmount
int scrollType
MouseWheelEvent.getScrollType()
int wheelRotation
MouseWheelEvent.getWheelRotation()
java.awt.Rectangle updateRect
Rectangle
,
PaintEvent.setUpdateRect(Rectangle)
,
PaintEvent.getUpdateRect()
int newState
int oldState
private void writeObject(ObjectOutputStream stream) throws IOException
NumericShaper.Range
enum-based parameters,
if any, to the bit mask-based counterparts and writes this
object to the stream
. Any enum constants that have no
bit mask-based counterparts are ignored in the conversion.IOException
- if an I/O error occurs while writing to stream
int key
int mask
NumericShaper.Range shapingRange
Range
for contextual shaping or the
Range
for non-contextual shaping. null
for the bit
mask-based API.protected Object readResolve() throws InvalidObjectException
InvalidObjectException
- if the object to resolve is not
an instance of Attribute
private Object readResolve() throws ObjectStreamException
ObjectStreamException
private void writeObject(ObjectOutputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
AffineTransform transform
AffineTransform
for this
TransformAttribute
, or null
if AffineTransform
is the identity transform.private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
double m00
double m01
double m02
double m10
double m11
double m12
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream
followed by a byte
indicating the arc type of this Arc2D
instance.byte
indicating the arc type
Arc2D.OPEN
, Arc2D.CHORD
, or Arc2D.PIE
.
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
ObjectOutputStream
followed by a byte
indicating the arc type of this Arc2D
instance.byte
indicating the arc type
Arc2D.OPEN
, Arc2D.CHORD
, or Arc2D.PIE
.
IOException
double extent
double height
double start
double width
double x
double y
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream
followed by a byte
indicating the arc type of this Arc2D
instance.byte
indicating the arc type
Arc2D.OPEN
, Arc2D.CHORD
, or Arc2D.PIE
.
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
ObjectOutputStream
followed by a byte
indicating the arc type of this Arc2D
instance.byte
indicating the arc type
Arc2D.OPEN
, Arc2D.CHORD
, or Arc2D.PIE
.
IOException
float extent
float height
float start
float width
float x
float y
double ctrlx1
double ctrlx2
double ctrly1
double ctrly2
double x1
double x2
double y1
double y2
float ctrlx1
float ctrlx2
float ctrly1
float ctrly2
float x1
float x2
float y1
float y2
double height
Ellipse2D
.double width
Ellipse2D
.double x
Ellipse2D
.double y
Ellipse2D
.float height
Ellipse2D
.float width
Ellipse2D
.float x
Ellipse2D
.float y
Ellipse2D
.double x1
double x2
double y1
double y2
float x1
float x2
float y1
float y2
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream
followed by an explicit
serialization of the path segments stored in this
path.
There are no default serializable fields as of 1.6.
The serial data for this object is described in the writeObject method.
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
ObjectOutputStream
followed by an explicit
serialization of the path segments stored in this
path.WIND_EVEN_ODD
or
WIND_NON_ZERO
)
NP
(or unlimited if NP < 0
) sets of values consisting of
a single byte indicating a path segment type
followed by one or more pairs of float or double
values representing the coordinates of the path segment
The following byte value constants are used in the serialized form
of Path2D
objects:
Constant Name | Byte Value | Followed by | Description |
---|---|---|---|
SERIAL_STORAGE_FLT_ARRAY |
0x30 | A hint that the original Path2D object stored
the coordinates in a Java array of floats. |
|
SERIAL_STORAGE_DBL_ARRAY |
0x31 | A hint that the original Path2D object stored
the coordinates in a Java array of doubles. |
|
SERIAL_SEG_FLT_MOVETO |
0x40 | 2 floats | A moveTo path segment follows. |
SERIAL_SEG_FLT_LINETO |
0x41 | 2 floats | A lineTo path segment follows. |
SERIAL_SEG_FLT_QUADTO |
0x42 | 4 floats | A quadTo path segment follows. |
SERIAL_SEG_FLT_CUBICTO |
0x43 | 6 floats | A curveTo path segment follows. |
SERIAL_SEG_DBL_MOVETO |
0x50 | 2 doubles | A moveTo path segment follows. |
SERIAL_SEG_DBL_LINETO |
0x51 | 2 doubles | A lineTo path segment follows. |
SERIAL_SEG_DBL_QUADTO |
0x52 | 4 doubles | A curveTo path segment follows. |
SERIAL_SEG_DBL_CUBICTO |
0x53 | 6 doubles | A curveTo path segment follows. |
SERIAL_SEG_CLOSE |
0x60 | A closePath path segment. |
|
SERIAL_PATH_END |
0x61 | There are no more path segments following. |
IOException
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream
followed by an explicit
serialization of the path segments stored in this
path.
There are no default serializable fields as of 1.6.
The serial data for this object is described in the writeObject method.
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
ObjectOutputStream
followed by an explicit
serialization of the path segments stored in this
path.WIND_EVEN_ODD
or
WIND_NON_ZERO
)
NP
(or unlimited if NP < 0
) sets of values consisting of
a single byte indicating a path segment type
followed by one or more pairs of float or double
values representing the coordinates of the path segment
The following byte value constants are used in the serialized form
of Path2D
objects:
Constant Name | Byte Value | Followed by | Description |
---|---|---|---|
SERIAL_STORAGE_FLT_ARRAY |
0x30 | A hint that the original Path2D object stored
the coordinates in a Java array of floats. |
|
SERIAL_STORAGE_DBL_ARRAY |
0x31 | A hint that the original Path2D object stored
the coordinates in a Java array of doubles. |
|
SERIAL_SEG_FLT_MOVETO |
0x40 | 2 floats | A moveTo path segment follows. |
SERIAL_SEG_FLT_LINETO |
0x41 | 2 floats | A lineTo path segment follows. |
SERIAL_SEG_FLT_QUADTO |
0x42 | 4 floats | A quadTo path segment follows. |
SERIAL_SEG_FLT_CUBICTO |
0x43 | 6 floats | A curveTo path segment follows. |
SERIAL_SEG_DBL_MOVETO |
0x50 | 2 doubles | A moveTo path segment follows. |
SERIAL_SEG_DBL_LINETO |
0x51 | 2 doubles | A lineTo path segment follows. |
SERIAL_SEG_DBL_QUADTO |
0x52 | 4 doubles | A curveTo path segment follows. |
SERIAL_SEG_DBL_CUBICTO |
0x53 | 6 doubles | A curveTo path segment follows. |
SERIAL_SEG_CLOSE |
0x60 | A closePath path segment. |
|
SERIAL_PATH_END |
0x61 | There are no more path segments following. |
IOException
double x
Point2D
.double y
Point2D
.float x
Point2D
.float y
Point2D
.double ctrlx
double ctrly
double x1
double x2
double y1
double y2
float ctrlx
float ctrly
float x1
float x2
float y1
float y2
double height
Rectangle2D
.double width
Rectangle2D
.double x
Rectangle2D
.double y
Rectangle2D
.float height
Rectangle2D
.float width
Rectangle2D
.float x
Rectangle2D
.float y
Rectangle2D
.double archeight
double arcwidth
double height
RoundRectangle2D
.double width
RoundRectangle2D
.double x
RoundRectangle2D
.double y
RoundRectangle2D
.float archeight
float arcwidth
float height
RoundRectangle2D
.float width
RoundRectangle2D
.float x
RoundRectangle2D
.float y
RoundRectangle2D
.IOException mException
int index
Object newValue
Object oldValue
Object propagationId
PropertyChangeEvent.getPropagationId()
String propertyName
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
PropertyChangeListeners
.
At serialization time we skip non-serializable listeners and only serialize the serializable listeners.
IOException
PropertyChangeEvent evt
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
VetoableChangeListeners
.
At serialization time we skip non-serializable listeners and only serialize the serializable listeners.
IOException
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
IOException
BeanContextChild beanContextChildPeer
BeanContext
in which
this BeanContextChild
is nested.PropertyChangeSupport pcSupport
PropertyChangeSupport
associated with this
BeanContextChildSupport
.VetoableChangeSupport vcSupport
VetoableChangeSupport
associated with this
BeanContextChildSupport
.BeanContext propagatedFrom
BeanContext
from which this event was propagatedCollection<E> children
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
IOException
BeanContextServiceProvider serviceProvider
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
boolean designTime
boolean
indicating whether or not
this object is currently in design time mode.Locale locale
boolean okToUseGui
boolean
indicating if this
instance may now render a GUI.int serializable
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
int bytesTransferred
String classname
boolean eof
int length
String actions
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
InvalidObjectException
- if the object is invalid or has a cause that is not
an IOException
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
Throwable exception
float value
int value
Integer
.long value
Long
.short value
Short
.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
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.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
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.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
String foundType
private void readObject(ObjectInputStream s) throws 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.IOException
- if there is a problem reading the objectClassNotFoundException
- if one of the component classes cannot be resolvedMethodType()
,
MethodType.readResolve()
,
MethodType.writeObject(java.io.ObjectOutputStream)
private Object readResolve()
MethodType
object
after serialization.private void writeObject(ObjectOutputStream s) throws 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.
IOException
- if there is a problem writing the objectMethodType
.private Object readResolve() throws ReflectiveOperationException
ReflectiveOperationException
Object[] capturedArgs
Class<T> capturingClass
String functionalInterfaceClass
String functionalInterfaceMethodName
String functionalInterfaceMethodSignature
String implClass
int implMethodKind
String implMethodName
String implMethodSignature
String instantiatedMethodType
Throwable target
InvocationHandler h
Throwable undeclaredThrowable
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, bitCountPlusOne,
bitLengthPlusOne and lowestSetBitPlusTwo, 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 by
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.
To maintain compatibility with older implementations, the integers
-1, -1, -2, and -2 are written as the values of the obsolete fields
bitCount
, bitLength
, lowestSetBit
, and
firstNonzeroByteNum
, respectively. These values are compatible
with older implementations, but will be ignored by current
implementations.IOException
int bitCount
int bitLength
int firstNonzeroByteNum
int lowestSetBit
byte[] 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
String location
int responseCode
private Object writeReplace() throws ObjectStreamException
ObjectStreamException
- if a new object replacing this
object could not be createdprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String ifname
byte[] ipaddress
int scope_id
boolean scope_id_set
boolean scope_ifname_set
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObjectNoData(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private Object readResolve() throws ObjectStreamException
ObjectStreamException
- if a new object replacing this
object could not be createdprivate void writeObject(ObjectOutputStream s) throws IOException
IOException
int address
int family
String hostName
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObjectNoData() throws ObjectStreamException
ObjectStreamException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
InetAddress addr
String hostname
int port
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream is) throws ClassNotFoundException, IOException
The ObjectInputStream.defaultReadObject()
method is
invoked to read the value of the string
field. The result is
then parsed in the usual way.
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream os) throws IOException
The only serializable field of a URI instance is its string
field. That field is given a value, if it does not have one already,
and then the ObjectOutputStream.defaultWriteObject()
method of the given object-output stream is invoked.
IOException
String string
int index
String input
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private Object readResolve() throws ObjectStreamException
ObjectStreamException
- if a new object replacing this
object could not be createdprivate void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
String actions
String charsetName
int inputLength
int inputLength
String charsetName
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
InvalidObjectException
- if the object is invalid or has a cause that is not
an IOException
IOException
ClassNotFoundException
int index
String input
String name
int hash
MarshalledObject.hashCode()
byte[] locBytes
equals
. If locBytes
is null, there were no
non-null
annotations during marshalling.byte[] objBytes
objBytes
is
null
then the object marshalled was a null
reference.Throwable detail
This field predates the general-purpose exception chaining facility.
The Throwable.getCause()
method is now the preferred means of
obtaining this information.
String className
MarshalledObject<T> data
ActivationGroupID groupID
String location
boolean restart
Throwable detail
This field predates the general-purpose exception chaining facility.
The Throwable.getCause()
method is now the preferred means of
obtaining this information.
ActivationGroupID groupID
long incarnation
ActivationMonitor monitor
String className
MarshalledObject<T> data
ActivationGroupDesc.CommandEnvironment env
String location
Properties props
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
readObject
for custom serialization.
This method reads this object's serialized form for this class as follows:
This method first invokes defaultReadObject
on
the specified object input stream, and if options
is null
, then options
is set to a
zero-length array of String
.
IOException
ClassNotFoundException
ActivationSystem system
UID uid
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
readObject
for custom serialization.
This method reads this object's serialized form for this class as follows:
The readObject
method is invoked on
in
to read this object's unique identifier
(a UID
instance).
Next, the readUTF
method is invoked on
in
to read the external ref type name of the
RemoteRef
instance for this object's
activator. Next, the RemoteRef
instance is created of an implementation-specific class
corresponding to the external ref type name (returned by
readUTF
), and the readExternal
method is invoked on that RemoteRef
instance
to read the external form corresponding to the external
ref type name.
Note: If the external ref type name is
"UnicastRef"
, "UnicastServerRef"
,
"UnicastRef2"
, "UnicastServerRef2"
,
or "ActivatableRef"
, a corresponding
implementation-specific class must be found, and its
readExternal
method must read the serial data
for that external ref type name as specified to be written
in the serialData documentation for this class.
If the external ref type name is any other string (of non-zero
length), a ClassNotFoundException
will be thrown,
unless the implementation provides an implementation-specific
class corresponding to that external ref type name, in which
case the RemoteRef
will be an instance of
that implementation-specific class.
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException, ClassNotFoundException
writeObject
for custom serialization.
This method writes this object's serialized form for this class as follows:
The writeObject
method is invoked on
out
passing this object's unique identifier
(a UID
instance) as the argument.
Next, the getRefClass
method is invoked on the activator's
RemoteRef
instance to obtain its external ref
type name. Next, the writeUTF
method is
invoked on out
with the value returned by
getRefClass
, and then the
writeExternal
method is invoked on the
RemoteRef
instance passing out
as the argument.
java.rmi.server.UID
(written with
ObjectOutput.writeObject
) followed by the
external ref type name of the activator's
RemoteRef
instance (a string written with
ObjectOutput.writeUTF
), followed by the
external form of the RemoteRef
instance as
written by its writeExternal
method.
The external ref type name of the
RemoteRef
instance is
determined using the definitions of external ref type
names specified in the RemoteObject
writeObject
method
serialData specification. Similarly, the data
written by the writeExternal
method and read
by the readExternal
method of
RemoteRef
implementation classes
corresponding to each of the defined external ref type
names is specified in the RemoteObject
writeObject
method serialData
specification.
IOException
ClassNotFoundException
long value
Lease.getValue()
VMID vmid
Lease.getVMID()
byte[] addr
UID uid
long objNum
ObjID.hashCode()
UID space
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
readObject
for custom serialization.
This method reads this object's serialized form for this class as follows:
The readUTF
method is invoked on in
to read the external ref type name for the RemoteRef
instance to be filled in to this object's ref
field.
If the string returned by readUTF
has length zero,
the readObject
method is invoked on in
,
and than the value returned by readObject
is cast to
RemoteRef
and this object's ref
field is
set to that value.
Otherwise, this object's ref
field is set to a
RemoteRef
instance that is created of an
implementation-specific class corresponding to the external ref
type name returned by readUTF
, and then
the readExternal
method is invoked on
this object's ref
field.
If the external ref type name is
"UnicastRef"
, "UnicastServerRef"
,
"UnicastRef2"
, "UnicastServerRef2"
,
or "ActivatableRef"
, a corresponding
implementation-specific class must be found, and its
readExternal
method must read the serial data
for that external ref type name as specified to be written
in the serialData documentation for this class.
If the external ref type name is any other string (of non-zero
length), a ClassNotFoundException
will be thrown,
unless the implementation provides an implementation-specific
class corresponding to that external ref type name, in which
case this object's ref
field will be set to an
instance of that implementation-specific class.
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException, ClassNotFoundException
writeObject
for custom serialization.
This method writes this object's serialized form for this class as follows:
The getRefClass
method is invoked on this object's ref
field
to obtain its external ref type name.
If the value returned by getRefClass
was
a non-null
string of length greater than zero,
the writeUTF
method is invoked on out
with the value returned by getRefClass
, and then
the writeExternal
method is invoked on
this object's ref
field passing out
as the argument; otherwise,
the writeUTF
method is invoked on out
with a zero-length string (""
), and then
the writeObject
method is invoked on out
passing this object's ref
field as the argument.
ObjectOutput.writeUTF
) that is either the external
ref type name of the contained RemoteRef
instance
(the ref
field) or a zero-length string, followed by
either the external form of the ref
field as written by
its writeExternal
method if the string was of non-zero
length, or the serialized form of the ref
field as
written by passing it to the serialization stream's
writeObject
if the string was of zero length.
If this object is an instance of
RemoteStub
or RemoteObjectInvocationHandler
that was returned from any of
the UnicastRemoteObject.exportObject
methods
and custom socket factories are not used,
the external ref type name is "UnicastRef"
.
If this object is an instance of
RemoteStub
or RemoteObjectInvocationHandler
that was returned from any of
the UnicastRemoteObject.exportObject
methods
and custom socket factories are used,
the external ref type name is "UnicastRef2"
.
If this object is an instance of
RemoteStub
or RemoteObjectInvocationHandler
that was returned from any of
the java.rmi.activation.Activatable.exportObject
methods,
the external ref type name is "ActivatableRef"
.
If this object is an instance of
RemoteStub
or RemoteObjectInvocationHandler
that was returned from
the RemoteObject.toStub
method (and the argument passed
to toStub
was not itself a RemoteStub
),
the external ref type name is a function of how the remote object
passed to toStub
was exported, as described above.
If this object is an instance of
RemoteStub
or RemoteObjectInvocationHandler
that was originally created via deserialization,
the external ref type name is the same as that which was read
when this object was deserialized.
If this object is an instance of
java.rmi.server.UnicastRemoteObject
that does not
use custom socket factories,
the external ref type name is "UnicastServerRef"
.
If this object is an instance of
UnicastRemoteObject
that does
use custom socket factories,
the external ref type name is "UnicastServerRef2"
.
Following is the data that must be written by the
writeExternal
method and read by the
readExternal
method of RemoteRef
implementation classes that correspond to the each of the
defined external ref type names:
For "UnicastRef"
:
DataOutput.writeUTF(String)
DataOutput.writeInt(int)
ObjID
instance contained in the reference
false
,
written by DataOutput.writeBoolean(boolean)
For "UnicastRef2"
with a
null
client socket factory:
0x00
(indicating null
client socket factory),
written by DataOutput.writeByte(int)
DataOutput.writeUTF(String)
DataOutput.writeInt(int)
ObjID
instance contained in the reference
false
,
written by DataOutput.writeBoolean(boolean)
For "UnicastRef2"
with a
non-null
client socket factory:
0x01
(indicating non-null
client socket factory),
written by DataOutput.writeByte(int)
DataOutput.writeUTF(String)
DataOutput.writeInt(int)
java.rmi.server.RMIClientSocketFactory
),
written by passing it to an invocation of
writeObject
on the stream instance
ObjID
instance contained in the reference
false
,
written by DataOutput.writeBoolean(boolean)
For "ActivatableRef"
with a
null
nested remote reference:
java.rmi.activation.ActivationID
,
written by passing it to an invocation of
writeObject
on the stream instance
""
),
written by DataOutput.writeUTF(String)
For "ActivatableRef"
with a
non-null
nested remote reference:
java.rmi.activation.ActivationID
,
written by passing it to an invocation of
writeObject
on the stream instance
"UnicastRef2"
,
written by DataOutput.writeUTF(String)
writeExternal
method
with the stream instance
(see the description of the external form for
"UnicastRef2"
above)
For "UnicastServerRef"
and
"UnicastServerRef2"
, no data is written by the
writeExternal
method or read by the
readExternal
method.
IOException
ClassNotFoundException
private void readObjectNoData() throws InvalidObjectException
InvalidObjectException
- unconditionallyException detail
This field predates the general-purpose exception chaining facility.
The Throwable.getCause()
method is now the preferred means of
obtaining this information.
short count
UID
instances created
in the same VM with the same time valuelong time
System.currentTimeMillis()
) at which
the VM that this UID
was generated in was aliveint unique
UID
was generated in with respect to its host and at the given timeprivate void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
RMIClientSocketFactory csf
int port
RMIServerSocketFactory ssf
Permission perm
boolean all_allowed
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
boolean all_allowed
true
if this BasicPermissionCollection
contains a BasicPermission with '*' as its permission name.Class<T> permClass
Hashtable<K,V> permissions
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
URL
is followed by an
int
indicating the number of certificates to follow
(a value of "zero" denotes that there are no certificates associated
with this object).
Each certificate is written out starting with a String
denoting the certificate type, followed by an
int
specifying the length of the certificate encoding,
followed by the certificate encoding itself which is written out as an
array of bytes. Finally, if any code signers are present then the array
of code signers is serialized and written out too.IOException
URL location
private void writeObject(ObjectOutputStream oos) throws IOException
IOException
Vector<E> certificates
String info
String name
PublicKey publicKey
IdentityScope scope
PrivateKey privateKey
PublicKey publicKey
protected Object readResolve() throws ObjectStreamException
This method supports three Type/format combinations:
ObjectStreamException
- if the Type/format
combination is unrecognized, if the algorithm, key format, or
encoded key bytes are unrecognized/invalid, of if the
resolution of the key fails for any reasonString algorithm
byte[] encoded
String format
KeyRep.Type type
String name
boolean readOnly
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
Exception exception
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
ObjectInputStream
for the default serializable fields.
If the serialized field versionStr
is found in the STREAM FIELDS,
its String value will be used to populate both the version string and
version number. If versionStr
is not found, but version
is, then its double value will be used to populate both fields.IOException
ClassNotFoundException
String algorithm
long counter
MessageDigest digest
Provider provider
byte[] randomBytes
SecureRandom
class itself.int randomBytesUsed
SecureRandomSpi secureRandomSpi
byte[] state
boolean threadSafe
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
byte[] content
byte[] signature
String thealgorithm
PrivateKey privateKey
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
String
denoting the
type
is followed by a String
denoting the
name
is followed by a String
denoting the
actions
is followed by an int
indicating the
number of certificates to follow
(a value of "zero" denotes that there are no certificates associated
with this object).
Each certificate is written out starting with a String
denoting the certificate type, followed by an
int
specifying the length of the certificate encoding,
followed by the certificate encoding itself which is written out as an
array of bytes.IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException
- if a new object representing
this Certificate could not be createdint hash
String type
protected Object readResolve() throws ObjectStreamException
ObjectStreamException
- if the Certificate
could not be resolvedbyte[] data
String type
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
CertificateRevokedException
instance.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
CertificateRevokedException
instance.IOException
X500Principal authority
X500Principal
that represents the name of the
authority that signed the certificate's revocation status informationCRLReason reason
Date revocationDate
protected Object writeReplace() throws ObjectStreamException
CertPath
to be serialized with a
CertPathRep
object.ObjectStreamException
- if a CertPathRep
object
representing this certification path could not be createdString type
protected Object readResolve() throws ObjectStreamException
CertPath
constructed from the type and data.ObjectStreamException
- if a CertPath
could not
be constructedbyte[] data
String type
private void readObject(ObjectInputStream stream) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
CertPath certPath
CertPath
that was being validated when
the exception was thrownint index
CertPathValidatorException.Reason reason
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
BatchUpdateException
from a stream.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException, ClassNotFoundException
BatchUpdateException
to a stream.IOException
ClassNotFoundException
long[] longUpdateCounts
int[] updateCounts
int dataSize
int index
boolean parameter
boolean read
int transferSize
SQLException next
String SQLState
int vendorCode
int nanos
protected Object readResolve() throws InvalidObjectException
InvalidObjectException
- if the object to resolve is not
an instance of Attribute
String name
Attribute
. The name is used primarily by readResolve
to look up the corresponding predefined instance when deserializing
an instance.private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
InvalidObjectException
- if the objects read from the stream is invalid.IOException
ClassNotFoundException
String[] choiceFormats
choiceFormats[i]
if the number being formatted is greater than or equal to
choiceLimits[i]
and less than choiceLimits[i+1]
.double[] choiceLimits
choiceFormats[i]
if the number being formatted is greater than or equal to
choiceLimits[i]
and less than choiceLimits[i+1]
.Calendar calendar
NumberFormat numberFormat
DateFormat
uses to format numbers
in dates and times. Subclasses should initialize this to a number format
appropriate for the locale associated with this DateFormat
.protected Object readResolve() throws InvalidObjectException
InvalidObjectException
- if the constant could not be
resolved.int calendarField
private void writeObject(ObjectOutputStream stream) throws IOException
zoneStrings
field is initialized in order to make
sure the backward compatibility.IOException
String[] ampms
Calendar.AM
and
Calendar.PM
.String[] eras
Calendar.BC
and Calendar.AD
.Locale locale
String localPatternChars
DateFormat.ERA_FIELD
,
DateFormat.YEAR_FIELD
, etc. Thus, if the string were
"Xz...", then localized patterns would use 'X' for era and 'z' for year.String[] months
Calendar.JANUARY
, Calendar.FEBRUARY
, etc.String[] shortMonths
Calendar.JANUARY
, Calendar.FEBRUARY
, etc.String[] shortWeekdays
Calendar.SUNDAY
,
Calendar.MONDAY
, etc.
The element shortWeekdays[0]
is ignored.String[] weekdays
Calendar.SUNDAY
,
Calendar.MONDAY
, etc.
The element weekdays[0]
is ignored.String[][] zoneStrings
TimeZone
.
Each such row contains (with i
ranging from
0..n-1):
zoneStrings[i][0]
- time zone IDzoneStrings[i][1]
- long name of zone in standard
timezoneStrings[i][2]
- short name of zone in
standard timezoneStrings[i][3]
- long name of zone in daylight
saving timezoneStrings[i][4]
- short name of zone in daylight
saving timeTimeZone
class that are not
custom IDs.
All other entries are localized names.TimeZone
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
BigInteger
and BigDecimal
objects. These
limits are stored in the superclass for serialization compatibility
with older versions, while the limits for BigInteger
and
BigDecimal
objects are kept in this class.
If, in the superclass, the minimum or maximum integer digit count is
larger than DOUBLE_INTEGER_DIGITS
or if the minimum or
maximum fraction digit count is larger than
DOUBLE_FRACTION_DIGITS
, then the stream data is invalid
and this method throws an InvalidObjectException
.
serialVersionOnStream
is less than 4, initialize
roundingMode
to RoundingMode.HALF_EVEN
. This field is new with version 4.
serialVersionOnStream
is less than 3, then call
the setters for the minimum and maximum integer and fraction digits with
the values of the corresponding superclass getters to initialize the
fields in this class. The fields in this class are new with version 3.
serialVersionOnStream
is less than 1, indicating that
the stream was written by JDK 1.1, initialize
useExponentialNotation
to false, since it was not present in JDK 1.1.
serialVersionOnStream
to the maximum allowed value so
that default serialization will work properly if this object is streamed
out again.
Stream versions older than 2 will not have the affix pattern variables
posPrefixPattern
etc. As a result, they will be initialized
to null
, which means the affix strings will be taken as
literal values. This is exactly what we want, since that corresponds to
the pre-version-2 behavior.
IOException
ClassNotFoundException
boolean decimalSeparatorAlwaysShown
byte groupingSize
NumberFormat.groupingUsed
is true.int maximumFractionDigits
BigInteger
or BigDecimal
number.
maximumFractionDigits
must be greater than or equal to
minimumFractionDigits
.DecimalFormat.getMaximumFractionDigits()
int maximumIntegerDigits
BigInteger
or BigDecimal
number.
maximumIntegerDigits
must be greater than or equal to
minimumIntegerDigits
.DecimalFormat.getMaximumIntegerDigits()
byte minExponentDigits
useExponentialNotation
is not true.int minimumFractionDigits
BigInteger
or BigDecimal
number.
minimumFractionDigits
must be less than or equal to
maximumFractionDigits
.DecimalFormat.getMinimumFractionDigits()
int minimumIntegerDigits
BigInteger
or BigDecimal
number.
minimumIntegerDigits
must be less than or equal to
maximumIntegerDigits
.DecimalFormat.getMinimumIntegerDigits()
int multiplier
DecimalFormat.getMultiplier()
String negativePrefix
DecimalFormat.getNegativePrefix()
String negativeSuffix
DecimalFormat.getNegativeSuffix()
String negPrefixPattern
negativePrefix
. This variable is analogous to
posPrefixPattern
; see that variable for further
documentation.String negSuffixPattern
negativeSuffix
. This variable is analogous to
posPrefixPattern
; see that variable for further
documentation.boolean parseBigDecimal
DecimalFormat.isParseBigDecimal()
String positivePrefix
DecimalFormat.getPositivePrefix()
String positiveSuffix
DecimalFormat.getPositiveSuffix()
String posPrefixPattern
positivePrefix
.
This pattern is expanded by the method expandAffix()
to
positivePrefix
to update the latter to reflect changes in
symbols
. If this variable is null
then
positivePrefix
is taken as a literal value that does not
change when symbols
changes. This variable is always
null
for DecimalFormat
objects older than
stream version 2 restored from stream.
String posSuffixPattern
positiveSuffix
. This variable is analogous to
posPrefixPattern
; see that variable for further
documentation.RoundingMode roundingMode
RoundingMode
used in this DecimalFormat.int serialVersionOnStream
useExponentialNotation
and
minExponentDigits
.
posPrefixPattern
, posSuffixPattern
,
negPrefixPattern
, and negSuffixPattern
.
maximumIntegerDigits
,
minimumIntegerDigits
,
maximumFractionDigits
,
minimumFractionDigits
, and
parseBigDecimal
.
roundingMode
.
DecimalFormatSymbols symbols
DecimalFormatSymbols
object used by this format.
It contains the symbols used to format numbers, e.g. the grouping separator,
decimal separator, and so on.boolean useExponentialNotation
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
serialVersionOnStream
is less than 1, initializes monetarySeparator
to be
the same as decimalSeparator
and exponential
to be 'E'.
If serialVersionOnStream
is less than 2,
initializes locale
to the root locale, and initializes
If serialVersionOnStream
is less than 3, it initializes
exponentialSeparator
using exponential
.
Sets serialVersionOnStream
back to the maximum allowed value so that
default serialization will work properly if this object is streamed out again.
Initializes the currency from the intlCurrencySymbol field.IOException
ClassNotFoundException
String currencySymbol
DecimalFormatSymbols.getCurrencySymbol()
char decimalSeparator
char digit
DecimalFormatSymbols.getDigit()
char exponential
Note that the public API provides no way to set this field, even though it is supported by the implementation and the stream format. The intent is that this will be added to the API in the future.
String exponentialSeparator
If both exponential
and exponentialSeparator
exist, this exponentialSeparator
has the precedence.
char groupingSeparator
String infinity
DecimalFormatSymbols.getInfinity()
String intlCurrencySymbol
Locale locale
char minusSign
DecimalFormatSymbols.getMinusSign()
char monetarySeparator
DecimalFormatSymbols.getMonetaryDecimalSeparator()
String NaN
DecimalFormatSymbols.getNaN()
char patternSeparator
char percent
DecimalFormatSymbols.getPercent()
char perMill
DecimalFormatSymbols.getPerMill()
int serialVersionOnStream
DecimalFormatSymbols
present on the stream.
Possible values are:
monetarySeparator
and exponential
.
locale
field.
exponentialSeparator
field.
DecimalFormatSymbols
, the most recent format
(corresponding to the highest allowable serialVersionOnStream
)
is always written.char zeroDigit
DecimalFormatSymbols.getZeroDigit()
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
InvalidObjectException
- if the objects read from the stream is invalid.IOException
ClassNotFoundException
int[] argumentNumbers
Format[] formats
Locale locale
int maxOffset
offsets
. Can also be thought of
as the index of the highest-numbered element in offsets
that is being used.
All of these arrays should have the same number of elements being used as offsets
does, and so this variable suffices to tell us how many entries are in all of them.int[] offsets
String pattern
protected Object readResolve() throws InvalidObjectException
InvalidObjectException
- if the constant could not be
resolved.private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
serialVersionOnStream
is less than 1, indicating that
the stream was written by JDK 1.1,
set the int
fields such as maximumIntegerDigits
to be equal to the byte
fields such as maxIntegerDigits
,
since the int
fields were not present in JDK 1.1.
Finally, set serialVersionOnStream back to the maximum allowed value so that
default serialization will work properly if this object is streamed out again.
If minimumIntegerDigits
is greater than
maximumIntegerDigits
or minimumFractionDigits
is greater than maximumFractionDigits
, then the stream data
is invalid and this method throws an InvalidObjectException
.
In addition, if any of these values is negative, then this method throws
an InvalidObjectException
.
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream stream) throws IOException
byte
fields such as maxIntegerDigits
to be
equal to the int
fields such as maximumIntegerDigits
(or to Byte.MAX_VALUE
, whichever is smaller), for compatibility
with the JDK 1.1 version of the stream format.IOException
boolean groupingUsed
NumberFormat.isGroupingUsed()
byte maxFractionDigits
maximumFractionDigits
must be greater than or equal to
minimumFractionDigits
.
Note: This field exists only for serialization
compatibility with JDK 1.1. In Java platform 2 v1.2 and higher, the new
int
field maximumFractionDigits
is used instead.
When writing to a stream, maxFractionDigits
is set to
maximumFractionDigits
or Byte.MAX_VALUE
,
whichever is smaller. When reading from a stream, this field is used
only if serialVersionOnStream
is less than 1.
NumberFormat.getMaximumFractionDigits()
int maximumFractionDigits
maximumFractionDigits
must be greater than or equal to
minimumFractionDigits
.NumberFormat.getMaximumFractionDigits()
int maximumIntegerDigits
maximumIntegerDigits
must be greater than or equal to
minimumIntegerDigits
.NumberFormat.getMaximumIntegerDigits()
byte maxIntegerDigits
maxIntegerDigits
must be greater than or equal to
minIntegerDigits
.
Note: This field exists only for serialization
compatibility with JDK 1.1. In Java platform 2 v1.2 and higher, the new
int
field maximumIntegerDigits
is used instead.
When writing to a stream, maxIntegerDigits
is set to
maximumIntegerDigits
or Byte.MAX_VALUE
,
whichever is smaller. When reading from a stream, this field is used
only if serialVersionOnStream
is less than 1.
NumberFormat.getMaximumIntegerDigits()
byte minFractionDigits
minimumFractionDigits
must be less than or equal to
maximumFractionDigits
.
Note: This field exists only for serialization
compatibility with JDK 1.1. In Java platform 2 v1.2 and higher, the new
int
field minimumFractionDigits
is used instead.
When writing to a stream, minFractionDigits
is set to
minimumFractionDigits
or Byte.MAX_VALUE
,
whichever is smaller. When reading from a stream, this field is used
only if serialVersionOnStream
is less than 1.
NumberFormat.getMinimumFractionDigits()
int minimumFractionDigits
minimumFractionDigits
must be less than or equal to
maximumFractionDigits
.NumberFormat.getMinimumFractionDigits()
int minimumIntegerDigits
minimumIntegerDigits
must be less than or equal to
maximumIntegerDigits
.NumberFormat.getMinimumIntegerDigits()
byte minIntegerDigits
minimumIntegerDigits
must be less than or equal to
maximumIntegerDigits
.
Note: This field exists only for serialization
compatibility with JDK 1.1. In Java platform 2 v1.2 and higher, the new
int
field minimumIntegerDigits
is used instead.
When writing to a stream, minIntegerDigits
is set to
minimumIntegerDigits
or Byte.MAX_VALUE
,
whichever is smaller. When reading from a stream, this field is used
only if serialVersionOnStream
is less than 1.
NumberFormat.getMinimumIntegerDigits()
boolean parseIntegerOnly
NumberFormat.isParseIntegerOnly()
int serialVersionOnStream
NumberFormat
present on the stream.
Possible values are:
int
fields such as
maximumIntegerDigits
were not present, and the byte
fields such as maxIntegerDigits
are used instead.
byte
fields such as maxIntegerDigits
are ignored,
and the int
fields such as maximumIntegerDigits
are used instead.
NumberFormat
, the most recent format
(corresponding to the highest allowable serialVersionOnStream
)
is always written.protected Object readResolve() throws InvalidObjectException
InvalidObjectException
- if the constant could not be resolved.int errorOffset
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
InvalidObjectException
- if the pattern is invalidIOException
ClassNotFoundException
Date defaultCenturyStart
defaultCenturyStart
, which may be any date. May
not be null.DateFormatSymbols formatData
DateFormatSymbols
Locale locale
SimpleDateFormat
. The value may be null if this object
has been created by an older SimpleDateFormat
and
deserialized.String pattern
int serialVersionOnStream
defaultCenturyStart
on stream.
defaultCenturyStart
.
serialVersionOnStream
is written.private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(1); // identifies a Duration out.writeLong(seconds); out.writeInt(nanos);
int nanos
long seconds
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(2); // identifies an Instant out.writeLong(seconds); out.writeInt(nanos);
int nanos
long seconds
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(3); // identifies a LocalDate out.writeInt(year); out.writeByte(month); out.writeByte(day);
short day
short month
int year
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(4); // identifies a LocalTime if (nano == 0) { if (second == 0) { if (minute == 0) { out.writeByte(~hour); } else { out.writeByte(hour); out.writeByte(~minute); } } else { out.writeByte(hour); out.writeByte(minute); out.writeByte(~second); } } else { out.writeByte(hour); out.writeByte(minute); out.writeByte(second); out.writeInt(nano); }
byte hour
byte minute
int nano
byte second
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(13); // identifies a MonthDay out.writeByte(month); out.writeByte(day);
int day
int month
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
LocalDateTime dateTime
ZoneOffset offset
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
ZoneOffset offset
LocalTime time
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(14); // identifies a Period out.writeInt(years); out.writeInt(months); out.writeInt(days);
int days
int months
int years
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Externalizable
interface to read the object.writeReplace
method are read and passed to the corresponding static factory for the type
to create a new instance. That instance is returned as the de-serialized
Ser
object.
Duration.ofSeconds(seconds, nanos);
Instant.ofEpochSecond(seconds, nanos);
LocalDate.of(year, month, day);
LocalDateTime.of(date, time);
LocalTime.of(hour, minute, second, nano);
MonthDay.of(month, day);
OffsetTime.of(time, offset);
OffsetDateTime.of(dateTime, offset);
Period.of(years, months, days);
Year.of(year);
YearMonth.of(year, month);
ZonedDateTime.ofLenient(dateTime, offset, zone);
ZoneId.of(id);
(offsetByte == 127 ? ZoneOffset.ofTotalSeconds(in.readInt()) : ZoneOffset.ofTotalSeconds(offsetByte * 900));
IOException
- if I/O errors occurClassNotFoundException
- If the class for an object being
restored cannot be found.public void writeExternal(ObjectOutput out) throws IOException
Externalizable
interface to write the object.writeReplace
serialized form for the value of the type and sequence of values for the type.
IOException
- Includes any I/O exceptions that may occurprivate void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(11); // identifies a Year out.writeInt(year);
int year
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(12); // identifies a YearMonth out.writeInt(year); out.writeByte(month);
int month
int year
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
LocalDateTime dateTime
ZoneOffset offset
ZoneId zone
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(7); // identifies a ZoneId (not ZoneOffset) out.writeUTF(getId());
When read back in, the ZoneId
will be created as though using
ZoneId.of(String)
, but without any exception in the case where the
ID has a valid format, but is not in the known set of region-based IDs.
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(8); // identifies a ZoneOffset int offsetByte = totalSeconds % 900 == 0 ? totalSeconds / 900 : 127; out.writeByte(offsetByte); if (offsetByte == 127) { out.writeInt(totalSeconds); }
int totalSeconds
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(2); // identifies a ChronoLocalDateTime out.writeObject(toLocalDate()); out.witeObject(toLocalTime());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(3); // identifies a ChronoZonedDateTime out.writeObject(toLocalDateTime()); out.writeObject(getOffset()); out.writeObject(getZone());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysObject writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(6); // identifies a HijrahDate out.writeObject(chrono); // the HijrahChronology variant out.writeInt(get(YEAR)); out.writeByte(get(MONTH_OF_YEAR)); out.writeByte(get(DAY_OF_MONTH));
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysObject writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysObject writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(4); // identifies a JapaneseDate out.writeInt(get(YEAR)); out.writeByte(get(MONTH_OF_YEAR)); out.writeByte(get(DAY_OF_MONTH));
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(5); // identifies a JapaneseEra out.writeInt(getValue());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysObject writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(8); // identifies a MinguoDate out.writeInt(get(YEAR)); out.writeByte(get(MONTH_OF_YEAR)); out.writeByte(get(DAY_OF_MONTH));
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Externalizable
interface to read the object.writeReplace
method are read and passed to the corresponding static factory for the type
to create a new instance. That instance is returned as the de-serialized
Ser
object.
IOException
- if I/O errors occurClassNotFoundException
- If the class for an object being
restored cannot be found.public void writeExternal(ObjectOutput out) throws IOException
Externalizable
interface to write the object.writeReplace
serialized form for the value of the type and sequence of values for the type.
IOException
- Includes any I/O exceptions that may occurprivate void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysObject writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(10); // identifies a ThaiBuddhistDate out.writeInt(get(YEAR)); out.writeByte(get(MONTH_OF_YEAR)); out.writeByte(get(DAY_OF_MONTH));
int errorIndex
String parsedString
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException, InvalidObjectException
InvalidObjectException
- if
the smallest minimum is greater than the smallest maximum,
or the smallest maximum is greater than the largest maximum
or the largest minimum is greater than the largest maximumClassNotFoundException
- if a class cannot be resolvedIOException
long maxLargest
long maxSmallest
long minLargest
long minSmallest
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException, InvalidObjectException
InvalidObjectException
- if the serialized object has an invalid
value for firstDayOfWeek or minimalDays.ClassNotFoundException
- if a class cannot be resolvedIOException
private Object readResolve() throws InvalidObjectException
firstDayOfWeek
and minimalDays
.InvalidObjectException
- if the serialized object has invalid
values for firstDayOfWeek or minimalDays.DayOfWeek firstDayOfWeek
int minimalDays
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Externalizable
interface to read the object.writeReplace
method are read and passed to the corresponding static factory for the type
to create a new instance. That instance is returned as the de-serialized
Ser
object.
ZoneRules.of(standardTransitions, standardOffsets, savingsInstantTransitions, wallOffsets, lastRules);
ZoneOffsetTransition of(LocalDateTime.ofEpochSecond(epochSecond), offsetBefore, offsetAfter);
ZoneOffsetTransitionRule.of(month, dom, dow, time, timeEndOfDay, timeDefinition, standardOffset, offsetBefore, offsetAfter);
IOException
- if I/O errors occurClassNotFoundException
- If the class for an object being
restored cannot be found.public void writeExternal(ObjectOutput out) throws IOException
Externalizable
interface to write the object.writeReplace
serialized form for the value of the type and sequence of values for the type.
IOException
- Includes any I/O exceptions that may occurprivate void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(2); // identifies a ZoneOffsetTransition
out.writeEpochSec(toEpochSecond);
out.writeOffset(offsetBefore);
out.writeOffset(offsetAfter);
long epochSecond
ZoneOffset offsetAfter
ZoneOffset offsetBefore
LocalDateTime transition
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(3); // identifies a ZoneOffsetTransition
final int timeSecs = (timeEndOfDay ? 86400 : time.toSecondOfDay());
final int stdOffset = standardOffset.getTotalSeconds();
final int beforeDiff = offsetBefore.getTotalSeconds() - stdOffset;
final int afterDiff = offsetAfter.getTotalSeconds() - stdOffset;
final int timeByte = (timeSecs % 3600 == 0 ? (timeEndOfDay ? 24 : time.getHour()) : 31);
final int stdOffsetByte = (stdOffset % 900 == 0 ? stdOffset / 900 + 128 : 255);
final int beforeByte = (beforeDiff == 0 || beforeDiff == 1800 || beforeDiff == 3600 ? beforeDiff / 1800 : 3);
final int afterByte = (afterDiff == 0 || afterDiff == 1800 || afterDiff == 3600 ? afterDiff / 1800 : 3);
final int dowByte = (dow == null ? 0 : dow.getValue());
int b = (month.getValue() << 28) + // 4 bits
((dom + 32) << 22) + // 6 bits
(dowByte << 19) + // 3 bits
(timeByte << 14) + // 5 bits
(timeDefinition.ordinal() << 12) + // 2 bits
(stdOffsetByte << 4) + // 8 bits
(beforeByte << 2) + // 2 bits
afterByte; // 2 bits
out.writeInt(b);
if (timeByte == 31) {
out.writeInt(timeSecs);
}
if (stdOffsetByte == 255) {
out.writeInt(stdOffset);
}
if (beforeByte == 3) {
out.writeInt(offsetBefore.getTotalSeconds());
}
if (afterByte == 3) {
out.writeInt(offsetAfter.getTotalSeconds());
}
byte dom
-1
is the last day of the month, -2
is the second
to last day, and so on.DayOfWeek dow
Month month
ZoneOffset offsetAfter
ZoneOffset offsetBefore
ZoneOffset standardOffset
LocalTime time
ZoneOffsetTransitionRule.TimeDefinition timeDefinition
boolean timeEndOfDay
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(1); // identifies a ZoneRules
out.writeInt(standardTransitions.length);
for (long trans : standardTransitions) {
Ser.writeEpochSec(trans, out);
}
for (ZoneOffset offset : standardOffsets) {
Ser.writeOffset(offset, out);
}
out.writeInt(savingsInstantTransitions.length);
for (long trans : savingsInstantTransitions) {
Ser.writeEpochSec(trans, out);
}
for (ZoneOffset offset : wallOffsets) {
Ser.writeOffset(offset, out);
}
out.writeByte(lastRules.length);
for (ZoneOffsetTransitionRule rule : lastRules) {
rule.writeExternal(out);
}
Epoch second values used for offsets are encoded in a variable length form to make the common cases put fewer bytes in the stream.
static void writeEpochSec(long epochSec, DataOutput out) throws IOException {
if (epochSec >= -4575744000L && epochSec < 10413792000L && epochSec % 900 == 0) { // quarter hours between 1825 and 2300
int store = (int) ((epochSec + 4575744000L) / 900);
out.writeByte((store >>> 16) & 255);
out.writeByte((store >>> 8) & 255);
out.writeByte(store & 255);
} else {
out.writeByte(255);
out.writeLong(epochSec);
}
}
ZoneOffset values are encoded in a variable length form so the common cases put fewer bytes in the stream.
static void writeOffset(ZoneOffset offset, DataOutput out) throws IOException {
final int offsetSecs = offset.getTotalSeconds();
int offsetByte = offsetSecs % 900 == 0 ? offsetSecs / 900 : 127; // compress to -72 to +72
out.writeByte(offsetByte);
if (offsetByte == 127) {
out.writeInt(offsetSecs);
}
}
ZoneOffsetTransitionRule[] lastRules
long[] savingsInstantTransitions
LocalDateTime[] savingsLocalTransitions
ZoneOffset[] standardOffsets
long[] standardTransitions
ZoneOffset[] wallOffsets
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
int
) of the deque,
followed by all of its elements (each an object reference) in
first-to-last order.IOException
- if an I/O error occursprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ArrayList
instance from a stream (that is,
deserializes it).ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
ArrayList
instance to a stream
(that is, serializes it).ArrayList
instance is emitted (int), followed by all of its elements
(each an Object
) in the proper order.IOException
- if an I/O error occursint size
Object[] a
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
BitSet
instance from a stream (i.e.,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
BitSet
instance to a stream (i.e.,
serialize it).IOException
long[] bits
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream stream) throws IOException
Calendar
would only write out its state data and
the current time, and not write any field data out, such as
fields[]
, isTimeSet
, areFieldsSet
,
and isSet[]
. nextStamp
also should not be part
of the persistent state. Unfortunately, this didn't happen before JDK 1.1
shipped. To be compatible with JDK 1.1, we will always have to write out
the field values and state flags. However, nextStamp
can be
removed from the serialization stream; this will probably happen in the
near future.IOException
boolean areFieldsSet
fields[]
are in sync with the currently set time.
If false, then the next attempt to get the value of a field will
force a recomputation of all fields from the current value of
time
.int[] fields
FIELD_COUNT
integers, with index values
ERA
through DST_OFFSET
.int firstDayOfWeek
SUNDAY
,
MONDAY
, etc. This is a locale-dependent value.boolean[] isSet
FIELD_COUNT
booleans, with index values
ERA
through DST_OFFSET
.boolean isTimeSet
time
is valid.
The time is made invalid by a change to an item of field[]
.Calendar.time
boolean lenient
True
if this calendar allows out-of-range field values during computation
of time
from fields[]
.Calendar.setLenient(boolean)
,
Calendar.isLenient()
int minimalDaysInFirstWeek
int nextStamp
stamp[]
, an internal array.
This actually should not be written out to the stream, and will probably
be removed from the stream in the near future. In the meantime,
a value of MINIMUM_USER_STAMP
should be used.int serialVersionOnStream
serialVersionOnStream
is written.long time
Calendar.isTimeSet
TimeZone zone
TimeZone
used by this calendar. Calendar
uses the time zone data to translate between locale and GMT time.Collection<E> c
Class<T> type
Object[] zeroLengthElementArray
NavigableMap<K,V> nm
NavigableSet<E> ns
Object element
int n
private Object readResolve()
private Object readResolve()
private Object readResolve()
private Object readResolve()
Comparator<T> cmp
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Object element
Object element
private void writeObject(ObjectOutputStream s) throws IOException
IOException
Collection<E> c
Object mutex
private Object readResolve()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
NavigableMap<K,V> nm
NavigableSet<E> ns
private Object writeReplace()
Collection<E> c
private Object readResolve()
NavigableMap<K,V> nm
NavigableSet<E> ns
private Object writeReplace()
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
Object[] array
field.IOException
- if an I/O error occursClassNotFoundException
- if a serialized class cannot be loadedInvalidObjectException
- if the count is negativeprivate Object readResolve() throws ObjectStreamException
InvalidObjectException
- if the tag value is illegal or if an exception
is thrown during creation of the collectionObjectStreamException
- if another serialization error has occurredprivate void writeObject(ObjectOutputStream oos) throws IOException
Object[] array
field.IOException
- if an I/O error occursint tag
List
, 2 for an immutable Set
, and 3 for
an immutable Map
. Any other value causes an
InvalidObjectException
to be thrown. The high
order 24 bits are zero when an instance is serialized,
and they are ignored when an instance is deserialized.
They can thus be used by future implementations without
causing compatibility issues.
The tag value also determines the interpretation of the
transient Object[] array
field.
For List
and Set
, the array's length is the size
of the collection, and the array contains the elements of the collection.
Null elements are not allowed. For Set
, duplicate elements
are not allowed.
For Map
, the array's length is twice the number of mappings
present in the map. The array length is necessarily even.
The array contains a succession of key and value pairs:
k1, v1, k2, v2, ..., kN, vN.
Nulls are not allowed,
and duplicate keys are not allowed.
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
getTime()
is emitted (long). This represents the offset from
January 1, 1970, 00:00:00 GMT in milliseconds.IOException
String flags
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
EnumMap
instance from a stream (i.e.,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
EnumMap
instance to a stream (i.e.,
serialize it).IOException
char c
String f
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
long gregorianCutover
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
HashMap
instance from a stream (i.e.,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
HashMap
instance to a stream (i.e.,
serialize it).IOException
float loadFactor
int threshold
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
HashSet
instance from a stream (that is,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
HashSet
instance to a stream (that is,
serialize it).HashMap
instance
(int), and its load factor (float) are emitted, followed by
the size of the set (the number of elements it contains)
(int), followed by all of its elements (each an Object) in
no particular order.IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
float loadFactor
int threshold
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IdentityHashMap
instance from a stream (i.e.,
deserializes it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IdentityHashMap
instance to a stream
(i.e., serializes it).int
), followed by the key (Object) and
value (Object) for each key-value mapping represented by the
IdentityHashMap. The key-value mappings are emitted in no
particular order.IOException
int size
int c
String flags
int p
int w
int _errIdx
boolean accessOrder
true
for access-order, false
for insertion-order.private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
LinkedList
instance from a stream
(that is, deserializes it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
LinkedList
instance to a stream
(that is, serializes it).IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
Locale
.IOException
ClassNotFoundException
IllformedLocaleException
private Object readResolve() throws ObjectStreamException
Locale
instance equivalent to
the deserialized Locale
. When serialized
language, country and variant fields read from the object data stream
are exactly "ja", "JP", "JP" or "th", "TH", "TH" and script/extensions
fields are empty, this method supplies UNICODE_LOCALE_EXTENSION
"ca"/"japanese" (calendar type is "japanese") or "nu"/"thai" (number script
type is "thai"). See Special Cases
for more information.ObjectStreamException
private void writeObject(ObjectOutputStream out) throws IOException
Locale
to the specified ObjectOutputStream
.IOException
String country
String extensions
int hashcode
String language
String script
String variant
String s
String s
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
PriorityQueue
instance from a stream
(that is, deserializes it).ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
Object
) in the proper order.IOException
- if an I/O error occursComparator<T> comparator
int size
Properties defaults
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
Random
instance from a stream (that is,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
Random
instance to a stream.IOException
boolean haveNextNextGaussian
double nextNextGaussian
long seed
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream stream) throws IOException
DOW_IN_MONTH_MODE
rules, in the required section, followed
by the full rules, in packed format, in the optional section. The
optional section will be ignored by JDK 1.1 code upon stream in.
Contents of the optional section: The length of a byte array is
emitted (int); this is 4 as of this release. The byte array of the given
length is emitted. The contents of the byte array are the true values of
the fields startDay
, startDayOfWeek
,
endDay
, and endDayOfWeek
. The values of these
fields in the required section are approximate values suited to the rule
mode DOW_IN_MONTH_MODE
, which is the only mode recognized by
JDK 1.1.
IOException
int dstSavings
If useDaylight
is false, this value is ignored.
int endDay
endMode == DOW_IN_MONTH
endDay
indicates the day of the month of
endMonth
on which daylight
saving time ends, from 1 to 28, 30, or 31, depending on the
endMonth
.
endMode != DOW_IN_MONTH
endDay
indicates which endDayOfWeek
in th
month endMonth
daylight
saving time ends on. For example, a value of +1 and a
endDayOfWeek
of Calendar.SUNDAY
indicates the
first Sunday of endMonth
. Likewise, +2 would indicate the
second Sunday, and -1 the last Sunday. A value of 0 is illegal.
If useDaylight
is false, this value is ignored.
int endDayOfWeek
Calendar.SUNDAY
and
Calendar.SATURDAY
inclusive.
If useDaylight
is false or
endMode == DAY_OF_MONTH
, this value is ignored.
int endMode
DOM_MODE
DOW_IN_MONTH_MODE
DOW_GE_DOM_MODE
DOW_LE_DOM_MODE
endDay
field.
If useDaylight
is false, this value is ignored.
int endMonth
Calendar.JANUARY
and
Calendar.UNDECIMBER
. This value must not equal
startMonth
.
If useDaylight
is false, this value is ignored.
int endTime
endTimeMode
.
If useDaylight
is false, this value is ignored.
int endTimeMode
WALL_TIME
,
STANDARD_TIME
, or UTC_TIME
.byte[] monthLength
int rawOffset
dstSavings
.int serialVersionOnStream
startMode
,
endMode
, and dstSavings
.
startTimeMode
and endTimeMode
.
serialVersionOnStream
is written.int startDay
startMode == DOW_IN_MONTH
startDay
indicates the day of the month of
startMonth
on which daylight
saving time starts, from 1 to 28, 30, or 31, depending on the
startMonth
.
startMode != DOW_IN_MONTH
startDay
indicates which startDayOfWeek
in the
month startMonth
daylight
saving time starts on. For example, a value of +1 and a
startDayOfWeek
of Calendar.SUNDAY
indicates the
first Sunday of startMonth
. Likewise, +2 would indicate the
second Sunday, and -1 the last Sunday. A value of 0 is illegal.
If useDaylight
is false, this value is ignored.
int startDayOfWeek
Calendar.SUNDAY
and
Calendar.SATURDAY
inclusive.
If useDaylight
is false or
startMode == DAY_OF_MONTH
, this value is ignored.
int startMode
DOM_MODE
DOW_IN_MONTH_MODE
DOW_GE_DOM_MODE
DOW_LE_DOM_MODE
startDay
field.
If useDaylight
is false, this value is ignored.
int startMonth
Calendar.JANUARY
and
Calendar.DECEMBER
inclusive. This value must not equal
endMonth
.
If useDaylight
is false, this value is ignored.
int startTime
startTimeMode
.
If useDaylight
is false, this value is ignored.
int startTimeMode
int startYear
AD
value. If this value is less than 1 then daylight saving time is observed
for all AD
years.
If useDaylight
is false, this value is ignored.
boolean useDaylight
String ID
TimeZone
. This is a
programmatic identifier used internally to look up TimeZone
objects from the system table and also to map them to their localized
display names. ID
values are unique in the system
table but may not be for dynamically created zones.private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
TreeMap
instance from a stream (i.e.,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
TreeMap
instance to a stream (i.e.,
serialize it).IOException
Comparator<T> comparator
Comparator<T> reverseComparator
boolean fromStart
Object hi
boolean hiInclusive
Object lo
boolean loInclusive
TreeMap<K,V> m
boolean toEnd
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
TreeSet
instance from a stream (that is,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
TreeSet
instance to a stream (that is,
serialize it).null
if it obeys its elements' natural ordering
(Object), followed by the size of the set (the number of
elements it contains) (int), followed by all of its
elements (each an Object) in order (as determined by the
set's Comparator, or by the elements' natural ordering if
the set has no Comparator).IOException
String s
String flags
long leastSigBits
long mostSigBits
private void writeObject(ObjectOutputStream s) throws IOException
Vector
instance to a stream
(that is, serializes it).
This method performs synchronization to ensure the consistency
of the serialized data.IOException
- if an I/O error occursint capacityIncrement
int elementCount
Vector
object.
Components elementData[0]
through
elementData[elementCount-1]
are the actual items.Object[] elementData
Any array elements following the last element in the Vector are null.
int count
Object[] items
ReentrantLock lock
Condition notEmpty
Condition notFull
int putIndex
int takeIndex
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
ConcurrentHashMap
instance to a
stream (i.e., serializes it).IOException
- if an I/O error occursint segmentMask
int segmentShift
Segment[] segments
Object value
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
E
) in
the proper order, followed by a nullIOException
- if an I/O error occursprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
E
) in
the proper order, followed by a nullIOException
- if an I/O error occursprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
null
. The key-value mappings are emitted in key-order
(as determined by the Comparator, or by the keys' natural
ordering if no Comparator).IOException
- if an I/O error occursComparator<T> comparator
Object hi
boolean hiInclusive
boolean isDescending
Object lo
boolean loInclusive
ConcurrentSkipListMap<K,V> m
ConcurrentNavigableMap<K,V> m
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
IOException
- if an I/O error occursCopyOnWriteArrayList<E> al
CountedCompleter<T> completer
int pending
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
null
if noneIOException
- if an I/O error occursint status
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
Object
) in the proper order, followed by a nullIOException
- if an I/O error occursint capacity
ReentrantLock lock
Condition notEmpty
Condition notFull
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
Object
) in the proper order,
followed by a nullIOException
- if an I/O error occursint capacity
AtomicInteger count
Condition notEmpty
Condition notFull
ReentrantLock putLock
ReentrantLock takeLock
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
E
) in
the proper order, followed by a nullIOException
- if an I/O error occursprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
IOException
- if an I/O error occursReentrantLock lock
Condition notEmpty
PriorityQueue<E> q
Object result
java.util.concurrent.Semaphore.Sync sync
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
IOException
- if an I/O error occursReentrantLock qlock
java.util.concurrent.SynchronousQueue.WaitQueue waitingConsumers
java.util.concurrent.SynchronousQueue.WaitQueue waitingProducers
private Object readResolve()
current
thread's ThreadLocalRandom
.private void writeObject(ObjectOutputStream s) throws IOException
ThreadLocalRandom
to a stream (that is, serializes it).IOException
- if an I/O error occursboolean initialized
long rnd
int value
int value
int[] array
long value
long[] array
Object value
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursObject[] array
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
DoubleBinaryOperator function
long identity
private Object readResolve()
DoubleAccumulator
object with initial state
held by this proxy.DoubleBinaryOperator function
long identity
Double.doubleToRawLongBits(double)
. The original identity
can be recovered using Double.longBitsToDouble(long)
.double value
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
private Object readResolve()
DoubleAdder
object with initial state
held by this proxy.double value
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
LongBinaryOperator function
long identity
private Object readResolve()
LongAccumulator
object with initial state
held by this proxy.LongBinaryOperator function
long identity
long value
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
private Object readResolve()
LongAdder
object with initial state
held by this proxy.long value
long state
int state
java.util.concurrent.locks.ReentrantLock.Sync sync
ReentrantReadWriteLock.ReadLock readerLock
java.util.concurrent.locks.ReentrantReadWriteLock.Sync sync
ReentrantReadWriteLock.WriteLock writerLock
java.util.concurrent.locks.ReentrantReadWriteLock.Sync sync
java.util.concurrent.locks.ReentrantReadWriteLock.Sync sync
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
Level level
String loggerName
String message
long millis
Instant.ofEpochSecond(millis/1000, (millis % 1000) * 1000_000 + nanoAdjustment)
int nanoAdjustment
Instant.ofEpochSecond(millis/1000, (millis % 1000) * 1000_000 + nanoAdjustment)
Since: 9
String resourceBundleName
long sequenceNumber
String sourceClassName
String sourceMethodName
int threadID
Throwable thrown
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
int flags
String pattern
public void readExternal(ObjectInput is) throws IOException, ClassNotFoundException
DataFlavor
from a Serialized state.IOException
- if I/O errors occurClassNotFoundException
- If the class for an object being
restored cannot be found.public void writeExternal(ObjectOutput os) throws IOException
DataFlavor
.IOException
- Includes any I/O exceptions that may occurpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
ClassNotFoundException
- If the class for an object being
restored cannot be found.IOException
- if I/O errors occurpublic void writeExternal(ObjectOutput out) throws IOException
IOException
- Includes any I/O exceptions that may occurprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
NullPointerException
- if s is null.IOException
ClassNotFoundException
byte[] encodedParams
That is, cipher.getParameters().getEncoded()
.
byte[] encryptedContent
String paramsAlg
String sealAlg
String algorithm
byte[] key
Node offendingNode
Node
that led to the parsing error, or
null
.private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- for a missing class during
deserializationIOException
- for an IO problem during deserializationprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- for a missing class during
deserializationIOException
- for an IO problem during deserializationString attr
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Object val
attribute.toString()
String op
boolean val
String attr
The serialVersionUID of this class is -1081892073854801359L
.
private Object readResolve() throws InvalidObjectException
ImmutableDescriptor.EMPTY_DESCRIPTOR
.InvalidObjectException
- if the read object has invalid fields.String[] names
String.CASE_INSENSITIVE_ORDER
.Object[] values
names
array.StringValueExp classNameValue
StringValueExp
returning the name of the class
of which selected MBeans should be instances.Object val
AttributeValueExp exp
String pattern
String attributeType
boolean is
boolean isRead
boolean isWrite
MBeanParameterInfo[] signature
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
MBeanFeatureInfo
from an ObjectInputStream
.
The method defaultReadObject()
is called first to deserialize the object except the field
descriptor
, which is not serialized in the default way. Then the method
read()
is called to read a byte, the field
descriptor
is deserialized according to the value of the byte value:
readObject()
is called twice to obtain the field names (a String[]
) and
the field values (an Object[]
) of the descriptor
.
The two obtained values then are used to construct
an ImmutableDescriptor
instance for the field
descriptor
;descriptor
is obtained directly
by calling the method readObject()
.
If the obtained value is null, the field descriptor
is set to
EMPTY_DESCRIPTOR
;descriptor
is set
to EMPTY_DESCRIPTOR
StreamCorruptedException
is thrown.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
MBeanFeatureInfo
to an ObjectOutputStream
.
The method defaultWriteObject()
is called first to serialize the object except the field descriptor
which is declared as transient. The field descriptor
is serialized
as follows:
descriptor
is an instance of the class
ImmutableDescriptor
, the method write(int val)
is called to write a byte with the value 1
,
then the method writeObject(Object obj)
is called twice to serialize the field names and the field values of the
descriptor
, respectively as a String[]
and an
Object[]
;write(int val)
is called to write a byte with the value 0
, then the method
writeObject(Object obj)
is called
to serialize directly the field descriptor
.
IOException
String description
MBeanFeatureInfo.getDescription()
rather
than reading this field, and that they not change it.String name
MBeanFeatureInfo.getName()
rather than reading this field, and that they
not change it.private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
MBeanInfo
from an ObjectInputStream
.
The method defaultReadObject()
is called first to deserialize the object except the field
descriptor
, which is not serialized in the default way. Then the method
read()
is called to read a byte, the field
descriptor
is deserialized according to the value of the byte value:
readObject()
is called twice to obtain the field names (a String[]
) and
the field values (an Object[]
) of the descriptor
.
The two obtained values then are used to construct
an ImmutableDescriptor
instance for the field
descriptor
;descriptor
is obtained directly
by calling the method readObject()
.
If the obtained value is null, the field descriptor
is set to
EMPTY_DESCRIPTOR
;descriptor
is set to
EMPTY_DESCRIPTOR
.StreamCorruptedException
is thrown.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
MBeanInfo
to an ObjectOutputStream
.
The method defaultWriteObject()
is called first to serialize the object except the field descriptor
which is declared as transient. The field descriptor
is serialized
as follows:
descriptor
is an instance of the class
ImmutableDescriptor
, the method write(int val)
is called to write a byte with the value 1
,
then the method writeObject(Object obj)
is called twice to serialize the field names and the field values of the
descriptor
, respectively as a String[]
and an
Object[]
;write(int val)
is called to write a byte with the value 0
, then the method
writeObject(Object obj)
is called
to serialize the field descriptor
directly.
IOException
MBeanAttributeInfo[] attributes
String className
MBeanConstructorInfo[] constructors
String description
MBeanNotificationInfo[] notifications
MBeanOperationInfo[] operations
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
String[] types
int impact
INFO, ACTION, ACTION_INFO, UNKNOWN
.MBeanParameterInfo[] signature
String type
String type
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
String actions
ObjectName objectName
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
MBeanServerPermission collectionPermission
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
Notification
from an ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
Notification
to an ObjectOutputStream
.IOException
String message
long sequenceNumber
Object source
long timeStamp
String type
Object userData
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
NumericValueExp
from an ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
NumericValueExp
to an ObjectOutputStream
.IOException
Number val
The serialVersionUID of this class is -4679739485102359104L
.
String className
ObjectName name
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
ObjectName
from an ObjectInputStream
.jmx.serial.form
differs from
1.0
): the string
"<domain>:<properties><wild>",
where: ObjectName
ObjectName.getKeyPropertyListString()
isPropertyPattern
, or
is the character "*
" if
isPropertyPattern
and <properties> is empty, or
is ",*
" if
isPropertyPattern
and
<properties> is not empty.
ObjectName(String)
constructor to
produce an equivalent ObjectName
.
jmx.serial.form
is
1.0
): <domain> <propertyList>
<propertyListString> <canonicalName>
<pattern> <propertyPattern>,
where: ObjectName
Hashtable
that contains all the
pairs (key,value) for this
ObjectName
String
representation of the
list of properties in any order (not
mandatorily a canonical representation)
String
containing this
ObjectName
's canonical nametrue
if this
ObjectName
contains a patterntrue
if this
ObjectName
contains a pattern in
the list of propertiesIOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
ObjectName
to an ObjectOutputStream
.jmx.serial.form
differs from
1.0
): the string
"<domain>:<properties><wild>",
where: ObjectName
ObjectName.getKeyPropertyListString()
isPropertyPattern
, or
is the character "*
" if
this isPropertyPattern
and <properties> is empty, or
is ",*
" if
isPropertyPattern
and
<properties> is not empty.
ObjectName(String)
constructor to
produce an equivalent ObjectName
.
jmx.serial.form
is
1.0
): <domain> <propertyList>
<propertyListString> <canonicalName>
<pattern> <propertyPattern>,
where: ObjectName
Hashtable
that contains all the
pairs (key,value) for this
ObjectName
String
representation of the
list of properties in any order (not
mandatorily a canonical representation)
String
containing this
ObjectName
's canonical nametrue
if this
ObjectName
contains a patterntrue
if this
ObjectName
contains a pattern in
the list of propertiesIOException
String className
RuntimeException runtimeException
RuntimeException
RuntimeException runtimeException
RuntimeException
String val
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException, UnsupportedOperationException
Restore this MLet's contents from the given ObjectInput
.
Not all implementations support this method. Those that do not
throw UnsupportedOperationException
. A subclass may
override this method to support it or to change the format of
the read data.
The format of the read data is not specified, but if an
implementation supports MLet.readExternal(java.io.ObjectInput)
it must also
support MLet.writeExternal(java.io.ObjectOutput)
in such a way that what is
written by the latter can be read by the former.
IOException
- if a problem occurred while reading.ClassNotFoundException
- if the class for the object
being restored cannot be found.UnsupportedOperationException
- if this
implementation does not support this operation.public void writeExternal(ObjectOutput out) throws IOException, UnsupportedOperationException
Save this MLet's contents to the given ObjectOutput
.
Not all implementations support this method. Those that do not
throw UnsupportedOperationException
. A subclass may
override this method to support it or to change the format of
the written data.
The format of the written data is not specified, but if
an implementation supports MLet.writeExternal(java.io.ObjectOutput)
it must
also support MLet.readExternal(java.io.ObjectInput)
in such a way that what is
written by the former can be read by the latter.
IOException
- If a problem occurred while writing.UnsupportedOperationException
- If this
implementation does not support this operation.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException, UnsupportedOperationException
Restore this MLet's contents from the given ObjectInput
.
Not all implementations support this method. Those that do not
throw UnsupportedOperationException
. A subclass may
override this method to support it or to change the format of
the read data.
The format of the read data is not specified, but if an
implementation supports MLet.readExternal(java.io.ObjectInput)
it must also
support MLet.writeExternal(java.io.ObjectOutput)
in such a way that what is
written by the latter can be read by the former.
IOException
- if a problem occurred while reading.ClassNotFoundException
- if the class for the object
being restored cannot be found.UnsupportedOperationException
- if this
implementation does not support this operation.public void writeExternal(ObjectOutput out) throws IOException, UnsupportedOperationException
Save this MLet's contents to the given ObjectOutput
.
Not all implementations support this method. Those that do not
throw UnsupportedOperationException
. A subclass may
override this method to support it or to change the format of
the written data.
The format of the written data is not specified, but if
an implementation supports MLet.writeExternal(java.io.ObjectOutput)
it must
also support MLet.readExternal(java.io.ObjectInput)
in such a way that what is
written by the former can be read by the latter.
IOException
- If a problem occurred while writing.UnsupportedOperationException
- If this
implementation does not support this operation.private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
DescriptorSupport
from an ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
DescriptorSupport
to an ObjectOutputStream
.IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
InvalidTargetObjectTypeException
from an ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
InvalidTargetObjectTypeException
to an ObjectOutputStream
.IOException
Exception exception
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
ModelMBeanAttributeInfo
from an ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
ModelMBeanAttributeInfo
to an ObjectOutputStream
.IOException
Descriptor attrDescriptor
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
ModelMBeanConstructorInfo
from an ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
ModelMBeanConstructorInfo
to an ObjectOutputStream
.IOException
Descriptor consDescriptor
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
ModelMBeanInfoSupport
from an ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
ModelMBeanInfoSupport
to an ObjectOutputStream
.IOException
ModelMBeanAttributeInfo[] modelMBeanAttributes
MBeanConstructorInfo[] modelMBeanConstructors
Descriptor modelMBeanDescriptor
MBeanNotificationInfo[] modelMBeanNotifications
MBeanOperationInfo[] modelMBeanOperations
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
ModelMBeanNotificationInfo
from an
ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
ModelMBeanNotificationInfo
to an
ObjectOutputStream
.IOException
Descriptor notificationDescriptor
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
ModelMBeanOperationInfo
from an ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
ModelMBeanOperationInfo
to an ObjectOutputStream
.IOException
Descriptor operationDescriptor
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
XMLParseException
from an ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
XMLParseException
to an ObjectOutputStream
.IOException
Object derivedGauge
String observedAttribute
ObjectName observedObject
Object trigger
private Object readResolve() throws ObjectStreamException
boolean
field primitiveArray
. In order to guarantee the
interoperability with previous versions of this class the new serial
form must continue to refer to primitive wrapper types even when the
ArrayType
instance describes a primitive type array. So when
primitiveArray
is true
the className
,
typeName
and description
serializable fields
are converted into primitive types before the deserialized
ArrayType
instance is return to the caller. The
elementType
field always returns the SimpleType
corresponding to the primitive wrapper type of the array's
primitive type.
Therefore the following serializable fields are deserialized as follows:
primitiveArray
is true
the className
field is deserialized by replacing the array's component primitive
wrapper type by the corresponding array's component primitive type,
e.g. "[[Ljava.lang.Integer;"
will be deserialized as
"[[I"
.primitiveArray
is true
the typeName
field is deserialized by replacing the array's component primitive
wrapper type by the corresponding array's component primitive type,
e.g. "[[Ljava.lang.Integer;"
will be deserialized as
"[[I"
.primitiveArray
is true
the description
field is deserialized by replacing the array's component primitive
wrapper type by the corresponding array's component primitive type,
e.g. "2-dimension array of java.lang.Integer"
will be
deserialized as "2-dimension array of int"
.ObjectStreamException
private Object writeReplace() throws ObjectStreamException
boolean
field primitiveArray
. In order to guarantee the
interoperability with previous versions of this class the new serial
form must continue to refer to primitive wrapper types even when the
ArrayType
instance describes a primitive type array. So when
primitiveArray
is true
the className
,
typeName
and description
serializable fields
are converted into wrapper types before the serialized
ArrayType
instance is written to the stream. The
elementType
field always returns the SimpleType
corresponding to the primitive wrapper type of the array's
primitive type.
Therefore the following serializable fields are serialized as follows:
primitiveArray
is true
the className
field is serialized by replacing the array's component primitive
type by the corresponding array's component primitive wrapper type,
e.g. "[[I"
will be serialized as
"[[Ljava.lang.Integer;"
.primitiveArray
is true
the typeName
field is serialized by replacing the array's component primitive
type by the corresponding array's component primitive wrapper type,
e.g. "[[I"
will be serialized as
"[[Ljava.lang.Integer;"
.primitiveArray
is true
the description
field is serialized by replacing the array's component primitive
type by the corresponding array's component primitive wrapper type,
e.g. "2-dimension array of int"
will be serialized as
"2-dimension array of java.lang.Integer"
.ObjectStreamException
int dimension
ArrayType
instance.OpenType<T> elementType
ArrayType
instance.boolean primitiveArray
ArrayType
describes a primitive array.CompositeType compositeType
SortedMap<K,V> contents
SortedMap
is used for faster retrieval of elements.private Object readResolve()
Object defaultValue
Set<E> legalValues
Set
is unmodifiableComparable<T> maxValue
Comparable<T> minValue
OpenType<T> openType
private Object readResolve()
OpenType<T> returnOpenType
OpenMBeanOperationInfo
instanceprivate Object readResolve()
Object defaultValue
Set<E> legalValues
Set
is unmodifiableComparable<T> maxValue
Comparable<T> minValue
OpenType<T> openType
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
OpenType
from an ObjectInputStream
.IOException
ClassNotFoundException
public Object readResolve() throws ObjectStreamException
ObjectInputStream
with the unique instance for that
value.ObjectStreamException
- if the read object cannot be
resolved.private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
TabularDataSupport
from an ObjectInputStream
.IOException
ClassNotFoundException
Map<K,V> dataMap
HashMap
TabularType tabularType
List<E> indexNames
ArrayList
CompositeType rowType
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
MBeanServerNotificationFilter
from an ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
MBeanServerNotificationFilter
to an ObjectOutputStream
.IOException
List<E> deselectedNames
null
means that all ObjectNames are implicitly deselected
(check for explicit selections))List<E> selectedNames
null
means that all ObjectNames are implicitly selected
(check for explicit deselections)private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
RelationNotification
from an ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
RelationNotification
to an ObjectOutputStream
.IOException
List<E> newRoleValue
List<E> oldRoleValue
String relationId
ObjectName relationObjName
String relationTypeName
String roleName
List<E> unregisterMBeanList
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
RelationTypeSupport
from an ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
RelationTypeSupport
to an ObjectOutputStream
.IOException
boolean isInRelationService
Map<K,V> roleName2InfoMap
String typeName
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
Role
from an ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
Role
to an ObjectOutputStream
.IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
RoleInfo
from an ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
RoleInfo
to an ObjectOutputStream
.IOException
String description
boolean isReadable
true
if role is readableboolean isWritable
true
if role is writableint maxDegree
int minDegree
String name
String referencedMBeanClassName
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
RoleResult
from an ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
RoleResult
to an ObjectOutputStream
.IOException
RoleList roleList
RoleUnresolvedList unresolvedRoleList
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
RoleUnresolved
from an ObjectInputStream
.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
RoleUnresolved
to an ObjectOutputStream
.IOException
String connectionId
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
String name
JMXPrincipal
object.JMXPrincipal.getName()
Throwable cause
JMXProviderException.getCause()
Error cause
Error
that caused this exception to be thrown.JMXServerErrorException.getCause()
private void readObject(ObjectInputStream inputStream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
String host
JMXServiceURL.getHost()
.int port
JMXServiceURL.getPort()
.String protocol
JMXServiceURL.getProtocol()
.String urlPath
JMXServiceURL.getURLPath()
.private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
long earliestSequenceNumber
long nextSequenceNumber
TargetedNotification[] targetedNotifications
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Integer id
TargetedNotification.getListenerID()
Notification notif
TargetedNotification.getNotification()
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ObjectInputStream
.
Calls s.defaultReadObject()
and then initializes
all transient variables that need initializing.InvalidObjectException
- if none of rmiServer stub
or jmxServiceURL are set.IOException
ClassNotFoundException
RMIConnector(JMXServiceURL,Map)
,
RMIConnector(RMIServer,Map)
private void writeObject(ObjectOutputStream s) throws IOException
ObjectOutputStream
.
Connects the underlying RMIServer stub to an ORB, if needed,
before serializing it. This is done using the environment
map that was provided to the constructor, if any, and as documented
in javax.management.remote.rmi
.
This method then calls s.defaultWriteObject()
.
Usually, rmiServer is null if this object
was constructed with a JMXServiceURL, and jmxServiceURL
is null if this object is constructed with a RMIServer stub.
Note that the environment Map is not serialized, since the objects it contains are assumed to be contextual and relevant only with respect to the local environment (class loader, ORB, etc...).
After an RMIConnector is deserialized, it is assumed that the
user will call RMIConnector.connect(Map)
, providing a new Map that
can contain values which are contextually relevant to the new
local environment.
Since connection to the ORB is needed prior to serializing, and
since the ORB to connect to is one of those contextual parameters,
it is not recommended to re-serialize a just de-serialized object -
as the de-serialized object has no map. Thus, when an RMIConnector
object is needed for serialization or transmission to a remote
application, it is recommended to obtain a new RMIConnector stub
by calling RMIConnectorServer.toJMXConnector(Map)
.
InvalidObjectException
- if none of rmiServer stub
or jmxServiceURL are set.IOException
RMIConnector(JMXServiceURL,Map)
,
RMIConnector(RMIServer,Map)
JMXServiceURL jmxServiceURL
RMIConnector(JMXServiceURL,Map)
RMIServer rmiServer
RMIConnector(RMIServer,Map)
Integer notificationID
byte[] buf
Object boundObj
setObject
.Name altName
altNameCtx
. It is a composite name.
If null, then no name is specified.
See the javax.naming.spi.ObjectFactory.getObjectInstance
method for details on how this is used.
This field is initialized to null. It should not be manipulated directly: it should be accessed and updated using getAltName() and setAltName().
Context altNameCtx
altName
is specified. If null, then the default initial
context is implied.
See the javax.naming.spi.ObjectFactory.getObjectInstance
method for details on how this is used.
This field is initialized to null. It should not be manipulated directly: it should be accessed and updated using getAltNameCtx() and setAltNameCtx().
Hashtable<K,V> environment
This field is initialized to null. It should not be manipulated directly: it should be accessed and updated using getEnvironment() and setEnvironment().
Name remainingNewName
This field is initialized to null. It should not be manipulated directly: it should be accessed and updated using getRemainingName() and setRemainingName().
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
int
) followed by
the individual components (each a String
).IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
Properties
, followed by
the number of components (an int
), and the individual
components (each a String
).IOException
String linkExplanation
Name linkRemainingName
Name linkResolvedName
Object linkResolvedObj
String className
setClassName()
.String fullName
setNameInNamespace()
boolean isRel
NameClassPair
is relative to the target context.
It is initialized by the constructor and can be updated using
setRelative()
.String name
setName()
.Name remainingName
Name resolvedName
Object resolvedObj
Throwable rootException
This field predates the general-purpose exception chaining facility.
The NamingException.initCause(Throwable)
and NamingException.getCause()
methods
are now the preferred means of accessing this information.
String addrType
Vector<E> addrs
String classFactory
String classFactoryLocation
String className
Class.getName()
String contents
ModificationItem[] unexecs
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String attrID
boolean ordered
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
boolean ignoreCase
Attribute attr
int mod_op
String[] attributesToReturn
SearchResult
for each matching entry of search. null
indicates that all attributes are to be returned.long countLimit
boolean derefLink
boolean returnObj
SearchResult
.int searchScope
ONELEVEL_SCOPE
, OBJECT_SCOPE
, or
SUBTREE_SCOPE
.int timeLimit
Attributes attrs
Object changeInfo
Binding newBinding
Binding oldBinding
int type
NamingException exception
boolean criticality
String id
byte[] value
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
byte[] cookie
int resultSize
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String badAttrId
int resultCode
UnsolicitedNotification notice
Name remainingName
Object resolvedObj
String name
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
- if the class of a serialized object could
not be found.IOException
- if I/O errors occur while reading from the underlying
streamprivate void writeObject(ObjectOutputStream s) throws IOException
IOException
- if I/O errors occur while writing to the underlying
streamString myClassName
AttributeSet attrset
AttributeSet attrset
Date value
java.util.Date
value.protected Object readResolve() throws ObjectStreamException
ObjectStreamException
- if the stream can't be deserialisedInvalidObjectException
- Thrown if the enumeration value table is null, this enumeration
value's integer value does not correspond to an element in the
enumeration value table, or the corresponding element in the
enumeration value table is null. (Note: InvalidObjectException
is a subclass
of ObjectStreamException
, which
readResolve()
is declared to throw.)int value
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int value
int crossFeedResolution
int feedResolution
int[][] members
int x
int y
URI uri
int h
int units
int w
int x
int y
MediaSizeName mediaName
PrintJobAttributeSet attributes
int reason
PrintServiceAttributeSet attributes
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream stream) throws IOException
IOException
int columnNumber
String fileName
int lineNumber
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
IOException
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
IOException
LinkedList<E> elements
Subject this$0
String[] choices
int defaultChoice
boolean multipleSelectionsAllowed
String prompt
int[] selections
choices
list.Locale locale
boolean echoOn
char[] inputPassword
String prompt
String message
int messageType
Callback callback
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
javax.security.auth.kerberos.KeyImpl key
KeyImpl
is serialized by writing out the ASN.1 encoded bytes
of the encryption key.javax.security.auth.kerberos.KeyImpl key
KeyImpl
is serialized by writing out the ASN.1 encoded bytes
of the encryption key.KerberosPrincipal principal
int versionNum
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
KerberosPrincipal
object to a streamKerberosPrincipal
is serialized
by writing out the PrincipalName and the
Realm in their DER-encoded form as specified in Section 5.2.2 of
RFC4120.IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
byte[] asn1Encoding
Date authTime
KerberosPrincipal client
InetAddress[] clientAddresses
Date endTime
boolean[] flags
Date renewTill
KerberosPrincipal server
javax.security.auth.kerberos.KeyImpl sessionKey
KeyImpl
is serialized by writing out the ASN1 Encoded bytes
of the encryption key. The ASN1 encoding is defined in RFC4120 and as
follows:
EncryptionKey ::= SEQUENCE { keytype [0] Int32 -- actually encryption type --, keyvalue [1] OCTET STRING }
Date startTime
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream ois) throws IOException
KeyImpl
is serialized by
writing out the ASN1 Encoded bytes of the encryption key.
The ASN1 encoding is defined in RFC4120 and as follows:
EncryptionKey ::= SEQUENCE {
keytype [0] Int32 -- actually encryption type --,
keyvalue [1] OCTET STRING
}IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String actions
private void readObject(ObjectInputStream s) throws IOException, NotActiveException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
X500Principal
is serialized
by writing out its DER-encoded form
(the value of getEncoded
is serialized).IOException
String authenticationID
String authorizationID
boolean authorized
String authorizedID
Throwable _exception
SQLException ex
SQLException
that the driver will throw to the
application when an error occurs and the pooled connection is no
longer usable.SQLException exception
PreparedStatement statement
InputStream asciiStream
InputStream
object that will be
returned by the method getAsciiStream
,
which is specified in the ResultSet
interface.InputStream binaryStream
InputStream
object that will be
returned by the method getBinaryStream
, which is
specified in the ResultSet
interface.Reader charStream
Reader
object that will be
returned by the method getCharacterStream
,
which is specified in the ResultSet
interface.String command
execute
is called.int concurrency
RowSet
object. It must be one of the following ResultSet
constants: CONCUR_READ_ONLY
or
CONCUR_UPDATABLE
.String dataSource
DataSource
object from a Java
Directory and Naming Interface (JNDI) naming service.boolean escapeProcessing
boolean
indicating whether the reader for this
JDBC RowSet
object should perform escape processing.
true
means that escape processing is turned on;
false
that it is not. The default is true
.int fetchDir
RowSet
object is going
to be fetched. The following ResultSet
constants are
possible values:
FETCH_FORWARD
,
FETCH_REVERSE
,
FETCH_UNKNOWN
.
Unused at this time.
int fetchSize
RowSet
object .
Unused at this time.
int isolation
RowSet
object . It must be one of
the following Connection
constants:
TRANSACTION_NONE
,
TRANSACTION_READ_UNCOMMITTED
,
TRANSACTION_READ_COMMITTED
,
TRANSACTION_REPEATABLE_READ
or
TRANSACTION_SERIALIZABLE
.Vector<E> listeners
Vector
object that holds the list of listeners
that have registered with this RowSet
object.Map<K,V> map
java.util.Map
object that contains entries mapping
SQL type names to classes in the Java programming language for the
custom mapping of user-defined types.int maxFieldSize
int maxRows
Hashtable<K,V> params
Vector
object that holds the parameters set
for this RowSet
object's current command.int queryTimeout
RowSet
object is connected to its data
source, that is, while it is populating itself with
data and while it is writing data back to the data source.boolean readOnly
boolean
indicating whether this JDBC RowSet
object is read-only. true
indicates that it is read-only;
false
that it is writable.int rowSetType
RowSet
object. It must be one of the following ResultSet
constants: TYPE_FORWARD_ONLY
,
TYPE_SCROLL_INSENSITIVE
, or
TYPE_SCROLL_SENSITIVE
.boolean showDeleted
boolean
indicating whether deleted rows are visible in this
JDBC RowSet
object .InputStream unicodeStream
InputStream
object that will be
returned by the method getUnicodeStream
,
which is specified in the ResultSet
interface.String URL
DriverManager.getConnection
when the
DriverManager
is used to get a connection.
The JDBC URL identifies the driver to be used to make the connection. This URL can be found in the documentation supplied by the driver vendor.
int colCount
RowSet
object that created
this RowSetMetaDataImpl
object.javax.sql.rowset.RowSetMetaDataImpl.ColInfo[] colInfo
ColInfo
objects used to store information
about each column in the RowSet
object for which
this RowSetMetaDataImpl
object was created. The first
ColInfo
object in this array contains information about
the first column in the RowSet
object, the second element
contains information about the second column, and so on.private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
SerialArray
from
a stream.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException, ClassNotFoundException
SerialArray
to a stream.IOException
ClassNotFoundException
int baseType
SerialArray
object. The
type is expressed as one of the constants from the class
java.sql.Types
.String baseTypeName
ARRAY
value that this SerialArray
object represents.Object[] elements
Object
in the Java programming language that represents an element
in the SQL ARRAY
value.int len
SerialArray
object, which
is also the number of elements in the SQL ARRAY
value
that this SerialArray
object represents.private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Blob blob
Blob
object on which this
SerialBlob
object is based.byte[] buf
SerialBlob
object.long len
SerialBlob
object's
array of bytes.long origLen
SerialBlob
object's
array of bytes when it was first established.private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
char[] buf
CLOB
value that this SerialClob
object
represents.Clob clob
long len
SerialClob
object's
internal array of characters.long origLen
SerialClob
object's internal array of characters.int baseType
SerialDatalink
object. The type is expressed as one of the constants from the
class java.sql.Types
.String baseTypeName
DATALINK
value that this SerialDatalink object
represents.URL url
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
SerialJavaObject
from a stream.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
SerialJavaObject
to a stream.IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
SerialStruct
from
a stream.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException, ClassNotFoundException
SerialStruct
to a stream.IOException
ClassNotFoundException
Object[] attribs
Object
instances in which each
element is an attribute of the SQL structured type that this
SerialStruct
object represents. The attributes are
ordered according to their order in the definition of the
SQL structured type.String SQLTypeName
SerialStruct
object represents. This is the name
used in the SQL definition of the SQL structured type.SyncResolver syncResolver
javax.sql.rowset.spi.SyncResolver
that
this SyncProviderException
object will return when its
getSyncResolver
method is called.int errorCode
Class<T> declaredType
QName name
boolean nil
Class<T> scope
JAXBElement.GlobalScope
for global xml element declaration.
- local element declaration has a scope set to the Java class
representation of complex type defintion containing
xml element declaration.Object value
Throwable cause
null
if this exception was not caused by another throwable
or if the causative throwable is unknown.Throwable cause
Throwable cause
Throwable cause
URIReference uriReference
Throwable cause
Throwable cause
Exception exception
Exception
that represents the error.Throwable cause
Exception nested
Throwable containedException
SourceLocator locator
Exception exception
Exception
for the
TransformerFactoryConfigurationError
.Object value
int statusCode
SOAPFault fault
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
- thrown by ObjectInputStream
ClassNotFoundException
- thrown by ObjectInputStream
private void writeObject(ObjectOutputStream out) throws IOException
IOException
- thrown by ObjectOutputStream
private void readObject(ObjectInputStream s) throws IOException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
NameComponent[] binding_name
BindingType binding_type
int __value
short code
short code
short code
short code
Exception exception
int columnNumber
SAXParseException.getColumnNumber()
int lineNumber
SAXParseException.getLineNumber()
String publicId
SAXParseException.getPublicId()
String systemId
SAXParseException.getSystemId()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b151-2