private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException
- if
GraphicsEnvironment.isHeadless()
returns
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
AccessibleContext accessibleContext
byte[] bdata
int id
boolean consumed
AWTEvent.consume()
,
AWTEvent.isConsumed()
protected Object readResolve() throws ObjectStreamException
AWTKeyStroke
(or a subclass of
AWTKeyStroke
) which is equal to this instance.ObjectStreamException
char keyChar
int keyCode
int modifiers
boolean onKeyRelease
int hgap
hgap
.BorderLayout.getHgap()
,
BorderLayout.setHgap(int)
int vgap
vgap
.BorderLayout.getVgap()
,
BorderLayout.setVgap(int)
Component north
Component west
Component east
Component south
Component center
Component firstLine
NORTH
and BEFORE_FIRST_LINE
constants in a container whose
orientation is LEFT_TO_RIGHT
, only the
BEFORE_FIRST_LINE
will be layed out.
This will be the same for lastLine, firstItem, lastItem.Component lastLine
Component firstItem
Component lastItem
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream
and if
it isn't null
adds a listener to
receive action events fired by the button.
Unrecognized keys or values will be ignored.HeadlessException
- if
GraphicsEnvironment.isHeadless
returns
true
ClassNotFoundException
IOException
Button.removeActionListener(ActionListener)
,
Button.addActionListener(ActionListener)
,
GraphicsEnvironment.isHeadless()
,
Button.writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
ActionListeners
as optional data. The non-serializable
ActionListeners
are detected and
no attempt is made to serialize them.null
terminated sequence of 0 or
more pairs: the pair consists of a String
and an Object
; the String
indicates the type of object and is one of the following:
actionListenerK
indicating an
ActionListener
objectIOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
Component.actionListenerK
,
Button.readObject(ObjectInputStream)
String label
Button.getLabel()
,
Button.setLabel(String)
String actionCommand
int buttonSerializedDataVersion
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream
and if it
isn't null
adds a listener to receive
item events fired by the Checkbox
.
Unrecognized keys or values will be ignored.HeadlessException
- if
GraphicsEnvironment.isHeadless
returns
true
ClassNotFoundException
IOException
Checkbox.removeItemListener(ItemListener)
,
Checkbox.addItemListener(ItemListener)
,
GraphicsEnvironment.isHeadless()
,
Checkbox.writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
ItemListeners
as optional data. The non-serializable
ItemListeners
are detected and
no attempt is made to serialize them.null
terminated sequence of 0
or more pairs; the pair consists of a String
and an Object
; the String
indicates
the type of object and is one of the following:
itemListenerK
indicating an
ItemListener
objectIOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
Component.itemListenerK
,
Checkbox.readObject(ObjectInputStream)
String label
Checkbox.getLabel()
,
Checkbox.setLabel(String)
boolean state
Checkbox
.Checkbox.getState()
,
Checkbox.setState(boolean)
CheckboxGroup group
int checkboxSerializedDataVersion
Checkbox selectedCheckbox
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
ItemListeners
as optional data. The non-serializable
ItemListeners
are detected and
no attempt is made to serialize them.null
terminated sequence of
0 or more pairs; the pair consists of a String
and an Object
; the String
indicates
the type of object and is one of the following:
itemListenerK
indicating an
ItemListener
objectIOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
Component.itemListenerK
,
CheckboxMenuItem.readObject(ObjectInputStream)
boolean state
int checkboxMenuItemSerializedDataVersion
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream
and if it
isn't null
adds a listener to receive
item events fired by the Choice
item.
Unrecognized keys or values will be ignored.HeadlessException
- if
GraphicsEnvironment.isHeadless
returns
true
ClassNotFoundException
IOException
Choice.removeItemListener(ItemListener)
,
Choice.addItemListener(ItemListener)
,
GraphicsEnvironment.isHeadless()
,
Choice.writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
ItemListeners
as optional data. The non-serializable
ItemListeners
are detected and
no attempt is made to serialize them.null
terminated sequence of 0
or more pairs; the pair consists of a String
and an Object
; the String
indicates
the type of object and is one of the following:
itemListenerK
indicating an
ItemListener
objectIOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
Component.itemListenerK
,
Choice.readObject(ObjectInputStream)
Vector<E> pItems
Choice
.
This can be a null
value.int selectedIndex
Choice
or -1 if nothing is selected.Choice.getSelectedItem()
,
Choice.select(int)
int choiceSerializedDataVersion
int value
Color.getRGB()
float[] frgbvalue
ColorSpace
as
float
components (no alpha).
If null
after object construction, this must be an
sRGB color constructed with 8-bit precision, so compute from the
int
color value.float[] fvalue
ColorSpace
as
float
components (no alpha).
If null
after object construction, this must be an
sRGB color constructed with 8-bit precision, so compute from the
int
color value.float falpha
float
component.
If frgbvalue
is null
, this is not valid
data, so compute from the int
color value.ColorSpace cs
ColorSpace
. If null
, then it's
default is sRGB.private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream
and if it isn't
null
adds a listener to receive a variety
of events fired by the component.
Unrecognized keys or values will be ignored.ClassNotFoundException
IOException
Component.writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
null
terminated sequence of
0 or more pairs; the pair consists of a String
and an Object
; the String
indicates
the type of object and is one of the following (as of 1.4):
componentListenerK
indicating an
ComponentListener
object;
focusListenerK
indicating an
FocusListener
object;
keyListenerK
indicating an
KeyListener
object;
mouseListenerK
indicating an
MouseListener
object;
mouseMotionListenerK
indicating an
MouseMotionListener
object;
inputMethodListenerK
indicating an
InputMethodListener
object;
hierarchyListenerK
indicating an
HierarchyListener
object;
hierarchyBoundsListenerK
indicating an
HierarchyBoundsListener
object;
mouseWheelListenerK
indicating an
MouseWheelListener
object, an optional ComponentOrientation
(after inputMethodListener
, as of 1.2)IOException
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener)
,
Component.componentListenerK
,
Component.focusListenerK
,
Component.keyListenerK
,
Component.mouseListenerK
,
Component.mouseMotionListenerK
,
Component.inputMethodListenerK
,
Component.hierarchyListenerK
,
Component.hierarchyBoundsListenerK
,
Component.mouseWheelListenerK
,
Component.readObject(ObjectInputStream)
int x
Component.getLocation()
int y
Component.getLocation()
int width
Component.getSize()
int height
Component.getSize()
Color foreground
foreground
can be null
.Color background
background
can be null
.Font font
font
can be null
.Font peerFont
null
if no peer exists.)Cursor cursor
null
.Locale locale
boolean ignoreRepaint
Component.setIgnoreRepaint(boolean)
,
Component.getIgnoreRepaint()
boolean visible
boolean enabled
boolean valid
DropTarget dropTarget
DropTarget
associated with this component.Component.setDropTarget(java.awt.dnd.DropTarget)
,
Component.getDropTarget()
Vector<E> popups
Component.add(java.awt.PopupMenu)
String name
null
.Component.getName()
,
Component.setName(String)
boolean nameExplicitlySet
nameExplicitlySet
will
be false if the name has not been set and
true if it has.Component.getName()
,
Component.setName(String)
boolean focusable
Component.setFocusable(boolean)
,
Component.isFocusable()
int isFocusTraversableOverridden
Set<E>[] focusTraversalKeys
boolean focusTraversalKeysEnabled
Component.setFocusTraversalKeysEnabled(boolean)
,
Component.getFocusTraversalKeysEnabled()
Dimension minSize
boolean minSizeSet
Dimension prefSize
boolean prefSizeSet
Dimension maxSize
boolean maxSizeSet
boolean newEventsOnly
newEventsOnly
will be true if the event is
one of the event types enabled for the component.
It will then allow for normal processing to
continue. If it is false the event is passed
to the component's parent and up the ancestor
tree until the event has been consumed.long eventMask
eventMask
is ONLY set by subclasses via
enableEvents
.
The mask should NOT be set when listeners are registered
so that we can distinguish the difference between when
listeners request events and subclasses request them.
One bit is used to indicate whether input methods are
enabled; this bit is set by enableInputMethods
and is
on by default.Component.enableInputMethods(boolean)
,
AWTEvent
PropertyChangeSupport changeSupport
PropertyChangeListeners
have been registered,
the changeSupport
field describes them.boolean isPacked
int boundsOp
boolean autoFocusTransferOnDisposal
int componentSerializedDataVersion
AccessibleContext accessibleContext
AccessibleContext
associated with this Component
.ComponentListener accessibleAWTComponentHandler
FocusListener accessibleAWTFocusHandler
int orientation
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
Container
from the specified
ObjectInputStream
.
private void writeObject(ObjectOutputStream s) throws IOException
Container
to the specified
ObjectOutputStream
.
null
is written.null
terminated sequence of 0 or more pairs;
the pair consists of a String
and Object
;
the String
indicates the type of object and
is one of the following:
containerListenerK
indicating an
ContainerListener
object;
the Container
's FocusTraversalPolicy
,
or null
IOException
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener)
,
Component.containerListenerK
,
Container.readObject(ObjectInputStream)
Component[] component
int containerSerializedDataVersion
java.awt.LightweightDispatcher dispatcher
boolean focusCycleRoot
boolean focusTraversalPolicyProvider
LayoutManager layoutMgr
Dimension maxSize
int ncomponents
ContainerListener accessibleContainerHandler
int FORWARD_TRAVERSAL
int BACKWARD_TRAVERSAL
boolean implicitDownCycleTraversal
int type
DEFAULT_CURSOR
.Cursor.getType()
String name
Cursor.getName()
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
boolean resizable
Dialog.setResizable(boolean)
boolean undecorated
undecorated
will be true if the dialog is
undecorated, otherwise it will be false.Dialog.setUndecorated(boolean)
,
Dialog.isUndecorated()
,
Component.isDisplayable()
boolean modal
ModalityType
enum instead.Dialog.ModalityType modalityType
ModalityType.MODELESS
, it blocks all
user input to some application top-level windows.Dialog.ModalityType
,
Dialog.getModalityType()
,
Dialog.setModalityType(java.awt.Dialog.ModalityType)
String title
Dialog.getTitle()
,
Dialog.setTitle(String)
int width
Dimension.getSize()
,
Dimension.setSize(double, double)
int height
Dimension.getSize()
,
Dimension.setSize(double, double)
Object target
EventObject.getSource()
long when
InputEvent.getWhen()
int id
Event
variables are relevant for the event.
This has been replaced by AWTEvent.getID()AWTEvent.getID()
int x
MouseEvent.getX()
int y
MouseEvent.getY()
int key
KeyEvent.getKeyCode()
int modifiers
InputEvent.getModifiers()
int clickCount
MOUSE_DOWN
events, this field indicates the
number of consecutive clicks. For other events, its value is
0
.
This field has been replaced by MouseEvent.getClickCount().MouseEvent.getClickCount()
Object arg
arg
has been replaced by event specific property.Event evt
EventQueue
boolean consumed
Event.isConsumed()
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream
and performs
a backwards compatibility check by converting
either a dir
or a file
equal to an empty string to null
.ClassNotFoundException
IOException
int mode
String dir
String file
File[] files
FileDialog.getFiles()
boolean multipleMode
FileDialog.setMultipleMode(boolean)
,
FileDialog.isMultipleMode()
FilenameFilter filter
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
int align
align
is the property that determines
how each row distributes empty space.
It can be one of the following values:
LEFT
RIGHT
CENTER
int newAlign
newAlign
is the property that determines
how each row distributes empty space for the Java 2 platform,
v1.2 and greater.
It can be one of the following three values:
LEFT
RIGHT
CENTER
LEADING
TRAILING
FlowLayout.getAlignment()
,
FlowLayout.setAlignment(int)
int hgap
Container
.FlowLayout.getHgap()
,
FlowLayout.setHgap(int)
int vgap
Container
.FlowLayout.getHgap()
,
FlowLayout.setHgap(int)
boolean alignOnBaseline
int serialVersionOnStream
currentSerialVersion
which is bein used. It will be one of two values :
0
versions before Java 2 platform v1.2..
1
versions after Java 2 platform v1.2..private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream
.
Unrecognized keys or values will be ignored.ClassNotFoundException
IOException
Font.writeObject(java.io.ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws ClassNotFoundException, IOException
Hashtable<K,V> fRequestedAttributes
Font.getAttributes()
String name
Font
, as passed to the
constructor.Font.getName()
int style
Font
, as passed to the constructor.
This style can be PLAIN, BOLD, ITALIC, or BOLD+ITALIC.Font.getStyle()
int size
Font
, rounded to integer.Font.getSize()
float pointSize
Font
in float
.Font.getSize()
,
Font.getSize2D()
int fontSerializedDataVersion
Font
Serializable Data Form.Font font
Font
from which the font metrics are
created.
This cannot be null.FontMetrics.getFont()
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream
. Tries
to read an icon Image
, which is optional
data available as of 1.4. If an icon Image
is not available, but anything other than an EOF
is detected, an OptionalDataException
will be thrown.
Unrecognized keys or values will be ignored.OptionalDataException
- if an icon Image
is not available, but anything other than an EOF
is detectedHeadlessException
- if
GraphicsEnvironment.isHeadless
returns
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
,
Image
,
Frame.getIconImage()
,
Frame.setIconImage(Image)
,
Frame.writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
Image
, which is
available as of 1.4.Image
IOException
Image
,
Frame.getIconImage()
,
Frame.setIconImage(Image)
,
Frame.readObject(ObjectInputStream)
Rectangle maximizedBounds
Frame.setMaximizedBounds(Rectangle)
,
Frame.getMaximizedBounds()
String title
title
can be null and if
this is the case the title
= "".Frame.getTitle()
,
Frame.setTitle(String)
MenuBar menuBar
menuBar
= null
the frame will not have a menubar.Frame.getMenuBar()
,
Frame.setMenuBar(MenuBar)
boolean resizable
resizable
will be true if the frame is
resizable, otherwise it will be false.Frame.isResizable()
boolean undecorated
undecorated
will be true if the frame is
undecorated, otherwise it will be false.Frame.setUndecorated(boolean)
,
Frame.isUndecorated()
,
Component.isDisplayable()
boolean mbManagement
mbManagement
is only used by the Motif implementation.int state
Vector<E> ownedWindows
int frameSerializedDataVersion
Frame
's Serialized Data Version.int gridx
gridx=0
.
The leading edge of a component's display area is its left edge for
a horizontal, left-to-right container and its right edge for a
horizontal, right-to-left container.
The value
RELATIVE
specifies that the component be placed
immediately following the component that was added to the container
just before this component was added.
The default value is RELATIVE
.
gridx
should be a non-negative value.
int gridy
gridy=0
. The value
RELATIVE
specifies that the component be placed just
below the component that was added to the container just before
this component was added.
The default value is RELATIVE
.
gridy
should be a non-negative value.
int gridwidth
Use REMAINDER
to specify that the component's
display area will be from gridx
to the last
cell in the row.
Use RELATIVE
to specify that the component's
display area will be from gridx
to the next
to the last one in its row.
gridwidth
should be non-negative and the default
value is 1.
int gridheight
Use REMAINDER
to specify that the component's
display area will be from gridy
to the last
cell in the column.
Use RELATIVE
to specify that the component's
display area will be from gridy
to the next
to the last one in its column.
gridheight
should be a non-negative value and the
default value is 1.
double weightx
The grid bag layout manager calculates the weight of a column to
be the maximum weightx
of all the components in a
column. If the resulting layout is smaller horizontally than the area
it needs to fill, the extra space is distributed to each column in
proportion to its weight. A column that has a weight of zero receives
no extra space.
If all the weights are zero, all the extra space appears between the grids of the cell and the left and right edges.
The default value of this field is 0
.
weightx
should be a non-negative value.
double weighty
The grid bag layout manager calculates the weight of a row to be
the maximum weighty
of all the components in a row.
If the resulting layout is smaller vertically than the area it
needs to fill, the extra space is distributed to each row in
proportion to its weight. A row that has a weight of zero receives no
extra space.
If all the weights are zero, all the extra space appears between the grids of the cell and the top and bottom edges.
The default value of this field is 0
.
weighty
should be a non-negative value.
int anchor
There are three kinds of possible values: orientation
relative, baseline relative and absolute. Orientation relative
values are interpreted relative to the container's component
orientation property, baseline relative values are interpreted
relative to the baseline and absolute values are not. The
absolute values are:
CENTER
, NORTH
, NORTHEAST
,
EAST
, SOUTHEAST
, SOUTH
,
SOUTHWEST
, WEST
, and NORTHWEST
.
The orientation relative values are: PAGE_START
,
PAGE_END
,
LINE_START
, LINE_END
,
FIRST_LINE_START
, FIRST_LINE_END
,
LAST_LINE_START
and LAST_LINE_END
. The
baseline relative values are:
BASELINE
, BASELINE_LEADING
,
BASELINE_TRAILING
,
ABOVE_BASELINE
, ABOVE_BASELINE_LEADING
,
ABOVE_BASELINE_TRAILING
,
BELOW_BASELINE
, BELOW_BASELINE_LEADING
,
and BELOW_BASELINE_TRAILING
.
The default value is CENTER
.
GridBagConstraints.clone()
,
ComponentOrientation
int fill
The following values are valid for fill
:
NONE
: Do not resize the component.
HORIZONTAL
: Make the component wide enough to fill
its display area horizontally, but do not change its height.
VERTICAL
: Make the component tall enough to fill its
display area vertically, but do not change its width.
BOTH
: Make the component fill its display area
entirely.
The default value is NONE
.
GridBagConstraints.clone()
Insets insets
The default value is new Insets(0, 0, 0, 0)
.
GridBagConstraints.clone()
int ipadx
ipadx
pixels.
The default value is 0
.
int ipady
ipady
pixels.
The default value is 0.
int tempX
int tempY
int tempWidth
int tempHeight
int minWidth
ipady
, where the default will be 0.GridBagConstraints.ipady
int minHeight
ipadx
, where the default will be 0.GridBagConstraints.ipadx
Hashtable<K,V> comptable
comptable
are the components and the
values are the instances of GridBagConstraints
.GridBagConstraints
GridBagConstraints defaultConstraints
defaultConstraints
.GridBagLayoutInfo layoutInfo
layoutInfo
is null
this indicates that there are no components in
the gridbag or if there are components, they have
not yet been validated.int[] columnWidths
null
the values are
applied to the gridbag after all of the minimum columns
widths have been calculated.
If columnWidths has more elements than the number of
columns, columns are added to the gridbag to match
the number of elements in columnWidth.GridBagLayout.getLayoutDimensions()
int[] rowHeights
null
the values are
applied to the gridbag after all of the minimum row
heights have been calculated.
If rowHeights
has more elements than the number of
rows, rows are added to the gridbag to match
the number of elements in rowHeights
.GridBagLayout.getLayoutDimensions()
double[] columnWeights
null
the values are
applied to the gridbag after all of the columns
weights have been calculated.
If columnWeights[i]
> weight for column i, then
column i is assigned the weight in columnWeights[i]
.
If columnWeights
has more elements than the number
of columns, the excess elements are ignored - they do
not cause more columns to be created.double[] rowWeights
null
the values are
applied to the gridbag after all of the rows
weights have been calculated.
If rowWeights[i]
> weight for row i, then
row i is assigned the weight in rowWeights[i]
.
If rowWeights
has more elements than the number
of rows, the excess elements are ignored - they do
not cause more rows to be created.Component componentAdjusting
adjustForGravity
.int width
int height
int startx
int starty
int[] minWidth
int[] minHeight
double[] weightX
double[] weightY
boolean hasBaseline
short[] baselineType
int[] maxAscent
int[] maxDescent
int hgap
GridLayout.getHgap()
,
GridLayout.setHgap(int)
int vgap
GridLayout.getVgap()
,
GridLayout.setVgap(int)
int rows
GridLayout.getRows()
,
GridLayout.setRows(int)
int cols
int top
Insets.clone()
int left
Insets.clone()
int bottom
Insets.clone()
int right
Insets.clone()
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException
- if
GraphicsEnvironment.isHeadless()
returns
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
String text
Label.getText()
,
Label.setText(String)
int alignment
Label.getAlignment()
,
Label.setAlignment(int)
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream
and if it
isn't null
adds a listener to receive
both item events and action events (as specified
by the key stored in the stream) fired by the
List
.
Unrecognized keys or values will be ignored.HeadlessException
- if
GraphicsEnvironment.isHeadless
returns
true
ClassNotFoundException
IOException
List.removeItemListener(ItemListener)
,
List.addItemListener(ItemListener)
,
GraphicsEnvironment.isHeadless()
,
List.writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
ItemListeners
and ActionListeners
as optional data.
The non-serializable listeners are detected and
no attempt is made to serialize them.null
terminated sequence of 0
or more pairs; the pair consists of a String
and an Object
; the String
indicates the type of object and is one of the
following:
itemListenerK
indicating an
ItemListener
object;
actionListenerK
indicating an
ActionListener
objectIOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
Component.itemListenerK
,
Component.actionListenerK
,
List.readObject(ObjectInputStream)
Vector<E> items
List.addItem(String)
,
List.getItem(int)
int rows
List
Component. It is specified only once, and
that is when the list component is actually
created. It will never change.List.getRows()
boolean multipleMode
multipleMode
is a variable that will
be set to true
if a list component is to be set to
multiple selection mode, that is where the user can
select more than one item in a list at one time.
multipleMode
will be set to false if the
list component is set to single selection, that is where
the user can only select one item on the list at any
one time.int[] selected
selected
is an array that will contain
the indices of items that have been selected.List.getSelectedIndexes()
,
List.getSelectedIndex()
int visibleIndex
List.makeVisible(int)
int listSerializedDataVersion
List
component's
Serialized Data Version.List parent
int indexInParent
Component target
Component
that will be
tracked by a media tracker where the image will
eventually be drawn.MediaTracker.MediaTracker(Component)
java.awt.MediaEntry head
Images
that is being
tracked by the MediaTracker
.private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException, HeadlessException
ObjectInputStream
.
Unrecognized keys or values will be ignored.HeadlessException
- if
GraphicsEnvironment.isHeadless
returns
true
IOException
ClassNotFoundException
GraphicsEnvironment.isHeadless()
,
Menu.writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
Vector<E> items
Menu.countItems()
boolean tearOff
true
if the menu has the tear off
property and it will be set to false
if it does not.
A torn off menu can be deleted by a user when
it is no longer needed.Menu.isTearOff()
boolean isHelpMenu
true
if the Menu in question is actually a help
menu. Otherwise it will be set to
false
.int menuSerializedDataVersion
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream
.
Unrecognized keys or values will be ignored.HeadlessException
- if
GraphicsEnvironment.isHeadless
returns
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
,
MenuBar.writeObject(java.io.ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws ClassNotFoundException, IOException
Vector<E> menus
MenuBar.countMenus()
Menu helpMenu
MenuBar.getHelpMenu()
,
MenuBar.setHelpMenu(Menu)
int menuBarSerializedDataVersion
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException
- if
GraphicsEnvironment.isHeadless
returns
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
Font font
null
at which point a default will be used.
This defaults to null
.String name
null
.boolean nameExplicitlySet
true
the name will be set explicitly.
This defaults to false
.MenuComponent.setName(String)
boolean newEventsOnly
false
.MenuComponent.dispatchEvent(AWTEvent)
AccessibleContext accessibleContext
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream
and if it
isn't null
adds a listener to receive
action events fired by the Menu
Item.
Unrecognized keys or values will be ignored.HeadlessException
- if
GraphicsEnvironment.isHeadless
returns
true
ClassNotFoundException
IOException
MenuItem.removeActionListener(ActionListener)
,
MenuItem.addActionListener(ActionListener)
,
MenuItem.writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
ActionListeners
as optional data. The non-serializable listeners are
detected and no attempt is made to serialize them.null
terminated sequence of 0
or more pairs; the pair consists of a String
and an Object
; the String
indicates the type of object and is one of the following:
actionListenerK
indicating an
ActionListener
objectIOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
MenuItem.readObject(ObjectInputStream)
boolean enabled
enabled
will
be set to true. Else enabled
will
be set to false.MenuItem.isEnabled()
,
MenuItem.setEnabled(boolean)
String label
label
is the label of a menu item.
It can be any string.MenuItem.getLabel()
,
MenuItem.setLabel(String)
String actionCommand
actionCommand
is the label of the menu item, unless it has been
set using setActionCommand.long eventMask
MenuShortcut shortcut
int menuItemSerializedDataVersion
int key
MenuShortcut.getKey()
,
MenuShortcut.usesShiftModifier()
,
KeyEvent
boolean usesShift
MenuShortcut.usesShiftModifier()
int x
Point
.
If no X coordinate is set it will default to 0.Point.getLocation()
,
Point.move(int, int)
int y
Point
.
If no Y coordinate is set it will default to 0.Point.getLocation()
,
Point.move(int, int)
int npoints
npoints
represents the number of valid points in this Polygon
and might be less than the number of elements in
xpoints
or ypoints
.
This value can be NULL.Polygon.addPoint(int, int)
int[] xpoints
Polygon
. The extra elements allow new points
to be added to this Polygon
without re-creating this
array. The value of npoints
is equal to the
number of valid points in this Polygon
.Polygon.addPoint(int, int)
int[] ypoints
Polygon
. The extra elements allow new points
to be added to this Polygon
without re-creating this
array. The value of npoints
is equal to the
number of valid points in this Polygon
.Polygon.addPoint(int, int)
Rectangle bounds
Polygon
.
This value can be null.Polygon.getBoundingBox()
,
Polygon.getBounds()
int x
Rectangle
.Rectangle.setLocation(int, int)
,
Rectangle.getLocation()
int y
Rectangle
.Rectangle.setLocation(int, int)
,
Rectangle.getLocation()
int width
Rectangle
.Rectangle.setSize(int, int)
,
Rectangle.getSize()
int height
Rectangle
.Rectangle.setSize(int, int)
,
Rectangle.getSize()
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream
and if
it isn't null
adds a listener to
receive adjustment events fired by the
Scrollbar
.
Unrecognized keys or values will be ignored.HeadlessException
- if
GraphicsEnvironment.isHeadless
returns
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
,
Scrollbar.writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
AdjustmentListeners
as optional data. The non-serializable listeners are
detected and no attempt is made to serialize them.null
terminated sequence of 0
or more pairs; the pair consists of a String
and an Object
; the String
indicates
the type of object and is one of the following:
adjustmentListenerK
indicating an
AdjustmentListener
objectIOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
Component.adjustmentListenerK
,
Scrollbar.readObject(ObjectInputStream)
int value
Scrollbar
.
This property must be greater than or equal to minimum
and less than or equal to
maximum - visibleAmount
Scrollbar.getValue()
,
Scrollbar.setValue(int)
int maximum
Scrollbar
.
This value must be greater than the minimum
value.Scrollbar.getMaximum()
,
Scrollbar.setMaximum(int)
int minimum
Scrollbar
.
This value must be less than the maximum
value.Scrollbar.getMinimum()
,
Scrollbar.setMinimum(int)
int visibleAmount
Scrollbar
's bubble.
When a scroll bar is used to select a range of values,
the visibleAmount represents the size of this range.
Depending on platform, this may be visually indicated
by the size of the bubble.int orientation
Scrollbar
's orientation--being either horizontal
or vertical.
This value should be specified when the scrollbar is created.VERTICAL
or
HORIZONTAL
only.int lineIncrement
int pageIncrement
int scrollbarSerializedDataVersion
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException
- if
GraphicsEnvironment.isHeadless()
returns
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int scrollbarDisplayPolicy
ScrollPane.getScrollbarDisplayPolicy()
ScrollPaneAdjustable vAdjustable
Adjustable
methods, namely:
setMinimum()
, setMaximum()
,
setVisibleAmount()
.ScrollPane.getVAdjustable()
ScrollPaneAdjustable hAdjustable
Adjustable
methods, namely:
setMinimum()
, setMaximum()
,
setVisibleAmount()
.ScrollPane.getHAdjustable()
boolean wheelScrollingEnabled
ScrollPane sp
ScrollPane
this object is a scrollbar of.int orientation
int value
value
should be greater than minimum
and less than maximum
int minimum
ScrollPane
.
ATTN: In current implementation
minimum
is always 0
. This field can
only be altered via setSpan
method and
ScrollPane
always calls that method with
0
for the minimum. getMinimum
method
always returns 0
without checking this field.
int maximum
ScrollPane
.int visibleAmount
ScrollPane
.int unitIncrement
int blockIncrement
AdjustmentListener adjustmentListener
private Object readResolve()
SystemColor
class assumes that
the SystemColor
object instances stored in the
static final fields above are the only instances that can
be used by developers.
This method helps maintain those limits on instantiation
by using the index stored in the value field of the
serialized form of the object to replace the serialized
object with the equivalent static object constant field
of SystemColor
.
See the SystemColor.writeReplace()
method for more information
on the serialized form of these objects.private Object writeReplace() throws ObjectStreamException
SystemColor
object for writing to the serialized stream.SystemColor
object
contains the array index of the system color instead of the
rgb data for the system color.
This index is used by the SystemColor.readResolve()
method to
resolve the deserialized objects back to the original
static constant versions to ensure unique instances of
each SystemColor
object.ObjectStreamException
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException
- if
GraphicsEnvironment.isHeadless()
returns
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
int rows
TextArea
.
This parameter will determine the text area's height.
Guaranteed to be non-negative.TextArea.getRows()
,
TextArea.setRows(int)
int columns
TextArea
.
A column is an approximate average character
width that is platform-dependent.
This parameter will determine the text area's width.
Guaranteed to be non-negative.TextArea.setColumns(int)
,
TextArea.getColumns()
int scrollbarVisibility
SCROLLBARS_BOTH
= both scrollbars.SCROLLBARS_HORIZONTAL_ONLY
= Horizontal bar only.SCROLLBARS_VERTICAL_ONLY
= Vertical bar only.SCROLLBARS_NONE
= No scrollbars.TextArea.getScrollbarVisibility()
int textAreaSerializedDataVersion
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException
- if
GraphicsEnvironment.isHeadless()
returns
true
ClassNotFoundException
IOException
TextComponent.removeTextListener(java.awt.event.TextListener)
,
TextComponent.addTextListener(java.awt.event.TextListener)
,
GraphicsEnvironment.isHeadless()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
Component.textListenerK
String text
null
value is the same as "".boolean editable
TextComponent
is editable.
It will be true
if the text component
is editable and false
if not.TextComponent.isEditable()
int selectionStart
selectionStart
is the start position
of the selected text.int selectionEnd
selectionEnd
is the end position of the selected text.boolean backgroundSetByClientCode
int textComponentSerializedDataVersion
boolean checkForEnableIM
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException
- if
GraphicsEnvironment.isHeadless()
returns
true
ClassNotFoundException
IOException
TextField.removeActionListener(ActionListener)
,
TextField.addActionListener(ActionListener)
,
GraphicsEnvironment.isHeadless()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
Component.actionListenerK
int columns
TextField.setColumns(int)
,
TextField.getColumns()
char echoChar
0
.int textFieldSerializedDataVersion
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream
and an optional
list of listeners to receive various events fired by
the component; also reads a list of
(possibly null
) child windows.
Unrecognized keys or values will be ignored.HeadlessException
- if
GraphicsEnvironment.isHeadless
returns
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
,
Window.writeObject(java.io.ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
WindowListener
s and
WindowFocusListener
s as optional data.
Writes a list of child windows as optional data.
Writes a list of icon images as optional datanull
terminated sequence of
0 or more pairs; the pair consists of a String
and Object
; the String
indicates the type of object and is one of the following:
windowListenerK
indicating a
WindowListener
object;
windowFocusWindowK
indicating a
WindowFocusListener
object;
ownedWindowK
indicating a child
Window
objectIOException
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener)
,
Component.windowListenerK
,
Component.windowFocusListenerK
,
Component.ownedWindowK
,
Window.readObject(ObjectInputStream)
String warningString
AWTPermission("showWindowWithoutWarningBanner")
.
This message can be displayed anywhere in the window.Window.getWarningString()
boolean syncLWRequests
int state
Window.show()
boolean alwaysOnTop
Window.setAlwaysOnTop(boolean)
,
Window.isAlwaysOnTop()
Dialog.ModalExclusionType modalExclusionType
java.awt.FocusManager focusMgr
boolean focusableWindowState
Window.getFocusableWindowState()
,
Window.setFocusableWindowState(boolean)
boolean autoRequestFocus
setVisible(true)
), or
being moved to the front (with a call to toFront()
).Window.setAutoRequestFocus(boolean)
,
Window.isAutoRequestFocus()
float opacity
Window.setOpacity(float)
,
Window.getOpacity()
Shape shape
null
if
no shape is set (rectangular window).Window.getShape()
,
Window.setShape(Shape)
Window.Type type
int windowSerializedDataVersion
boolean locationByPlatform
int type
int numComponents
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
ICC_Profile thisProfile
float[] minVal
float[] maxVal
float[] diffMinMax
float[] invDiffMinMax
boolean needScaleInit
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[])
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
.protected Object readResolve() throws ObjectStreamException
ObjectStreamException
- never thrown, but mandated by the serialization spec.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 occurprivate 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
DragSource dragSource
Component component
Point origin
int action
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
DragSource dragSource
DragSource
associated with this
DragGestureRecognizer
.Component component
Component
associated with this DragGestureRecognizer
.int sourceActions
int
representing
the type(s) of action(s) used
in this Drag and Drop operation.ArrayList<E> events
DragGestureRecognizer
"recognized" as a "gesture" that triggers a drag.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
DragGestureEvent trigger
Cursor cursor
boolean useCustomCursor
true
if the custom drag cursor is used instead of the
default one.int sourceActions
DnDConstants
that represents the set of
drop actions supported by the drag source for the drag operation associated
with this DragSourceContext.
int targetActions
int dropAction
int gestureModifiers
boolean invalidModifiers
gestureModifiers
are invalid.boolean dropSuccess
true
if the drop was successful.int dropAction
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
DropTargetContext dropTargetContext
Component component
int actions
boolean active
true
if the DropTarget is accepting Drag & Drop operations.DropTarget dropTarget
Point location
int actions
int dropAction
Point location
int actions
int dropAction
boolean isLocalTx
true
if the source is in the same JVM as the target.DropTargetContext context
DropTargetContext
associated with this
DropTargetEvent
.String actionCommand
ActionEvent.getActionCommand()
long when
ActionEvent.getWhen()
int modifiers
ActionEvent.getModifiers()
Adjustable adjustable
AdjustmentEvent.getAdjustable()
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()
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()
Component child
ContainerEvent.getChild()
boolean temporary
FocusEvent.isTemporary()
long when
InputEvent.getWhen()
int modifiers
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()
Runnable runnable
Object notifier
InvocationEvent.isDispatched()
Runnable listener
InvocationEvent.isDispatched()
boolean dispatched
run()
method of the runnable
was executed or not.InvocationEvent.isDispatched()
boolean catchExceptions
Exception exception
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
int keyCode
KeyEvent.getKeyCode()
,
KeyEvent.setKeyCode(int)
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 keyLocation
KEY_LOCATION_UNKNOWN
,
KEY_LOCATION_STANDARD
, KEY_LOCATION_LEFT
,
KEY_LOCATION_RIGHT
, and KEY_LOCATION_NUMPAD
.KeyEvent.getKeyLocation()
Component originalSource
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
int x
MouseEvent.getX()
int y
MouseEvent.getY()
int xAbs
int yAbs
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 causedByTouchEvent
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
.boolean popupTrigger
popupTrigger
= false
,
no popup menu should appear. If it is true
then a popup menu should appear.PopupMenu
,
MouseEvent.isPopupTrigger()
int scrollType
MouseWheelEvent.getScrollType()
int scrollAmount
int wheelRotation
MouseWheelEvent.getWheelRotation()
double preciseWheelRotation
Rectangle updateRect
int oldState
int newState
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 void writeObject(ObjectOutputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private Object readResolve() throws ObjectStreamException
ObjectStreamException
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 m10
double m01
double m11
double m02
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 x
double y
double width
double height
double start
double extent
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 x
float y
float width
float height
float start
float extent
double x1
double y1
double ctrlx1
double ctrly1
double ctrlx2
double ctrly2
double x2
double y2
float x1
float y1
float ctrlx1
float ctrly1
float ctrlx2
float ctrly2
float x2
float y2
double x
Ellipse2D
.double y
Ellipse2D
.double width
Ellipse2D
.double height
Ellipse2D
.float x
Ellipse2D
.float y
Ellipse2D
.float width
Ellipse2D
.float height
Ellipse2D
.double x1
double y1
double x2
double y2
float x1
float y1
float x2
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 x1
double y1
double ctrlx
double ctrly
double x2
double y2
float x1
float y1
float ctrlx
float ctrly
float x2
float y2
double x
Rectangle2D
.double y
Rectangle2D
.double width
Rectangle2D
.double height
Rectangle2D
.float x
Rectangle2D
.float y
Rectangle2D
.float width
Rectangle2D
.float height
Rectangle2D
.double x
RoundRectangle2D
.double y
RoundRectangle2D
.double width
RoundRectangle2D
.double height
RoundRectangle2D
.double arcwidth
double archeight
float x
RoundRectangle2D
.float y
RoundRectangle2D
.float width
RoundRectangle2D
.float height
RoundRectangle2D
.float arcwidth
float archeight
IOException mException
int index
String propertyName
Object newValue
Object oldValue
Object propagationId
PropertyChangeEvent.getPropagationId()
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
VetoableChangeSupport vcSupport
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
int serializable
Locale locale
boolean okToUseGui
boolean designTime
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
int length
boolean eof
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
String detailMessage
FileNotFoundException
, this contains the name of
the file that could not be found.Throwable cause
StackTraceElement[] stackTrace
Throwable.getStackTrace()
.
The field is initialized to a zero-length array. A null
value of this field indicates subsequent calls to Throwable.setStackTrace(StackTraceElement[])
and Throwable.fillInStackTrace()
will be be no-ops.List<E> suppressedExceptions
Throwable.getSuppressed()
. The list is initialized to a zero-element
unmodifiable sentinel list. When a serialized Throwable is
read in, if the suppressedExceptions
field points to a
zero-element list, the field is reset to the sentinel value.String typeName
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
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.readResolve()
,
MethodType.writeObject(java.io.ObjectOutputStream)
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 objectprivate Object readResolve()
MethodType
object
after serialization.MethodType
.private Object readResolve() throws ReflectiveOperationException
ReflectiveOperationException
Class<T> capturingClass
String functionalInterfaceClass
String functionalInterfaceMethodName
String functionalInterfaceMethodSignature
String implClass
String implMethodName
String implMethodSignature
int implMethodKind
String instantiatedMethodType
Object[] capturedArgs
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, bitCount,
bitLength and lowestSetBit, to 0 rather than some other marker value.
Therefore, no explicit action to set these fields needs to be taken in
readObject because those fields already have a 0 value be default since
defaultReadObject is not being used.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
BigInteger
instance to a stream.
The magnitude of a BigInteger is serialized as a byte array for
historical reasons.IOException
int bitCount
int bitLength
int lowestSetBit
int[] magnitude
int signum
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
MathContext
instance from a stream (that is,
deserialize it).IOException
ClassNotFoundException
int precision
precision
will always be non-negative.
RoundingMode roundingMode
RoundingMode
int responseCode
String location
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 writeObject(ObjectOutputStream s) throws IOException
IOException
private Object readResolve() throws ObjectStreamException
ObjectStreamException
- if a new object replacing this
object could not be createdprivate void readObjectNoData(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
int address
int family
String hostName
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObjectNoData() throws ObjectStreamException
ObjectStreamException
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
String input
int index
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private Object readResolve() throws ObjectStreamException
ObjectStreamException
- if a new object replacing this
object could not be createdString authority
String file
int hashCode
String host
int port
String protocol
String ref
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
String input
int index
String name
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
- if an I/O error occursClassNotFoundException
- if a class cannot be foundbyte[] objBytes
objBytes
is
null
then the object marshalled was a null
reference.byte[] locBytes
equals
. If locBytes
is null, there were no
non-null
annotations during marshalling.int hash
MarshalledObject.hashCode()
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
String className
String location
MarshalledObject<T> data
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
ActivationMonitor monitor
long incarnation
String className
String location
MarshalledObject<T> data
ActivationGroupDesc.CommandEnvironment env
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
VMID vmid
Lease.getVMID()
long value
Lease.getValue()
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.
int unique
UID
was generated in with respect to its host and at the given timelong time
System.currentTimeMillis()
) at which
the VM that this UID
was generated in was aliveshort count
UID
instances created
in the same VM with the same time valueprivate void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
int port
RMIClientSocketFactory csf
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
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
String name
PublicKey publicKey
String info
IdentityScope scope
Vector<E> certificates
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 reasonKeyRep.Type type
String algorithm
String format
byte[] encoded
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
IOException
ClassNotFoundException
Provider provider
SecureRandomSpi secureRandomSpi
String algorithm
byte[] state
MessageDigest digest
byte[] randomBytes
int randomBytesUsed
long counter
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 createdString type
int hash
protected Object readResolve() throws ObjectStreamException
ObjectStreamException
- if the Certificate
could not be resolvedString type
byte[] data
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
CertificateRevokedException
instance.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
CertificateRevokedException
instance.IOException
Date revocationDate
CRLReason reason
X500Principal authority
X500Principal
that represents the name of the
authority that signed the certificate's revocation status informationprotected 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 constructedString type
byte[] data
private void readObject(ObjectInputStream stream) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
int index
CertPath certPath
CertPath
that was being validated when
the exception was thrownCertPathValidatorException.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
int[] updateCounts
long[] longUpdateCounts
int index
boolean parameter
boolean read
int dataSize
int transferSize
String SQLState
int vendorCode
SQLException next
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
double[] choiceLimits
choiceFormats[i]
if the number being formatted is greater than or equal to
choiceLimits[i]
and less than choiceLimits[i+1]
.String[] choiceFormats
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[] eras
Calendar.BC
and Calendar.AD
.String[] months
Calendar.JANUARY
, Calendar.FEBRUARY
, etc.String[] shortMonths
Calendar.JANUARY
, Calendar.FEBRUARY
, etc.String[] weekdays
Calendar.SUNDAY
,
Calendar.MONDAY
, etc.
The element weekdays[0]
is ignored.String[] shortWeekdays
Calendar.SUNDAY
,
Calendar.MONDAY
, etc.
The element shortWeekdays[0]
is ignored.String[] ampms
Calendar.AM
and
Calendar.PM
.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
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.Locale locale
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
String positivePrefix
DecimalFormat.getPositivePrefix()
String positiveSuffix
DecimalFormat.getPositiveSuffix()
String negativePrefix
DecimalFormat.getNegativePrefix()
String negativeSuffix
DecimalFormat.getNegativeSuffix()
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.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.int multiplier
DecimalFormat.getMultiplier()
byte groupingSize
NumberFormat.groupingUsed
is true.boolean decimalSeparatorAlwaysShown
boolean parseBigDecimal
DecimalFormat.isParseBigDecimal()
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
byte minExponentDigits
useExponentialNotation
is not true.int maximumIntegerDigits
BigInteger
or BigDecimal
number.
maximumIntegerDigits
must be greater than or equal to
minimumIntegerDigits
.DecimalFormat.getMaximumIntegerDigits()
int minimumIntegerDigits
BigInteger
or BigDecimal
number.
minimumIntegerDigits
must be less than or equal to
maximumIntegerDigits
.DecimalFormat.getMinimumIntegerDigits()
int maximumFractionDigits
BigInteger
or BigDecimal
number.
maximumFractionDigits
must be greater than or equal to
minimumFractionDigits
.DecimalFormat.getMaximumFractionDigits()
int minimumFractionDigits
BigInteger
or BigDecimal
number.
minimumFractionDigits
must be less than or equal to
maximumFractionDigits
.DecimalFormat.getMinimumFractionDigits()
RoundingMode roundingMode
RoundingMode
used in this DecimalFormat.int serialVersionOnStream
useExponentialNotation
and
minExponentDigits
.
posPrefixPattern
, posSuffixPattern
,
negPrefixPattern
, and negSuffixPattern
.
maximumIntegerDigits
,
minimumIntegerDigits
,
maximumFractionDigits
,
minimumFractionDigits
, and
parseBigDecimal
.
roundingMode
.
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
char zeroDigit
DecimalFormatSymbols.getZeroDigit()
char groupingSeparator
char decimalSeparator
char perMill
DecimalFormatSymbols.getPerMill()
char percent
DecimalFormatSymbols.getPercent()
char digit
DecimalFormatSymbols.getDigit()
char patternSeparator
String infinity
DecimalFormatSymbols.getInfinity()
String NaN
DecimalFormatSymbols.getNaN()
char minusSign
DecimalFormatSymbols.getMinusSign()
String currencySymbol
DecimalFormatSymbols.getCurrencySymbol()
String intlCurrencySymbol
char monetarySeparator
DecimalFormatSymbols.getMonetaryDecimalSeparator()
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.
Locale locale
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.private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
InvalidObjectException
- if the objects read from the stream is invalid.IOException
ClassNotFoundException
Locale locale
String pattern
Format[] formats
int[] offsets
int[] argumentNumbers
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.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 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 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()
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()
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()
boolean parseIntegerOnly
NumberFormat.isParseIntegerOnly()
int maximumIntegerDigits
maximumIntegerDigits
must be greater than or equal to
minimumIntegerDigits
.NumberFormat.getMaximumIntegerDigits()
int minimumIntegerDigits
minimumIntegerDigits
must be less than or equal to
maximumIntegerDigits
.NumberFormat.getMinimumIntegerDigits()
int maximumFractionDigits
maximumFractionDigits
must be greater than or equal to
minimumFractionDigits
.NumberFormat.getMaximumFractionDigits()
int minimumFractionDigits
minimumFractionDigits
must be less than or equal to
maximumFractionDigits
.NumberFormat.getMinimumFractionDigits()
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
int serialVersionOnStream
defaultCenturyStart
on stream.
defaultCenturyStart
.
serialVersionOnStream
is written.String pattern
DateFormatSymbols formatData
DateFormatSymbols
Date defaultCenturyStart
defaultCenturyStart
, which may be any date. May
not be null.Locale locale
SimpleDateFormat
. The value may be null if this object
has been created by an older SimpleDateFormat
and
deserialized.private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(1); // identifies a Duration out.writeLong(seconds); out.writeInt(nanos);
long seconds
int nanos
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(2); // identifies an Instant out.writeLong(seconds); out.writeInt(nanos);
long seconds
int nanos
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);
int year
short month
short day
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
byte second
int nano
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(13); // identifies a MonthDay out.writeByte(month); out.writeByte(day);
int month
int day
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()
LocalTime time
ZoneOffset offset
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 years
int months
int days
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 year
int month
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));
String parsedString
int errorIndex
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 minSmallest
long minLargest
long maxSmallest
long maxLargest
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);
LocalDateTime transition
ZoneOffset offsetBefore
ZoneOffset offsetAfter
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());
}
Month month
byte dom
-1
is the last day of the month, -2
is the second
to last day, and so on.DayOfWeek dow
LocalTime time
boolean timeEndOfDay
ZoneOffsetTransitionRule.TimeDefinition timeDefinition
ZoneOffset standardOffset
ZoneOffset offsetBefore
ZoneOffset offsetAfter
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);
}
}
long[] standardTransitions
ZoneOffset[] standardOffsets
long[] savingsInstantTransitions
LocalDateTime[] savingsLocalTransitions
ZoneOffset[] wallOffsets
ZoneOffsetTransitionRule[] lastRules
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private 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
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int 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
int[] fields
FIELD_COUNT
integers, with index values
ERA
through DST_OFFSET
.boolean[] isSet
FIELD_COUNT
booleans, with index values
ERA
through DST_OFFSET
.long time
Calendar.isTimeSet
boolean isTimeSet
time
is valid.
The time is made invalid by a change to an item of field[]
.Calendar.time
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
.boolean lenient
True
if this calendar allows out-of-range field values during computation
of time
from fields[]
.Calendar.setLenient(boolean)
,
Calendar.isLenient()
TimeZone zone
TimeZone
used by this calendar. Calendar
uses the time zone data to translate between locale and GMT time.int firstDayOfWeek
SUNDAY
,
MONDAY
, etc. This is a locale-dependent value.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.Collection<E> c
Class<T> type
Object[] zeroLengthElementArray
NavigableMap<K,V> nm
NavigableSet<E> ns
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
int n
Object element
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 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
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String f
char c
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
long gregorianCutover
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
int threshold
float loadFactor
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int threshold
float loadFactor
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int size
int c
String flags
int p
int w
int _errIdx
boolean accessOrder
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 void writeObject(ObjectOutputStream out) throws IOException
Locale
to the specified ObjectOutputStream
.IOException
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
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).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
Object
) in the proper order.IOException
int size
Comparator<T> comparator
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 startMonth
Calendar.JANUARY
and
Calendar.DECEMBER
inclusive. This value must not equal
endMonth
.
If useDaylight
is false, this value is ignored.
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 startTime
startTimeMode
.
If useDaylight
is false, this value is ignored.
int startTimeMode
int endMonth
Calendar.JANUARY
and
Calendar.UNDECIMBER
. This value must not equal
startMonth
.
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 endTime
endTimeMode
.
If useDaylight
is false, this value is ignored.
int endTimeMode
WALL_TIME
,
STANDARD_TIME
, or UTC_TIME
.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.
int rawOffset
dstSavings
.boolean useDaylight
byte[] monthLength
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 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 dstSavings
If useDaylight
is false, this value is ignored.
int serialVersionOnStream
startMode
,
endMode
, and dstSavings
.
startTimeMode
and endTimeMode
.
serialVersionOnStream
is written.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
TreeMap<K,V> m
Object lo
Object hi
boolean fromStart
boolean toEnd
boolean loInclusive
boolean hiInclusive
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 mostSigBits
long leastSigBits
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
Vector
instance from a stream
(that is, deserializes it).
This method performs checks to ensure the consistency
of the fields.IOException
- if an I/O error occursClassNotFoundException
- if the stream contains data
of a non-existing classprivate void writeObject(ObjectOutputStream s) throws IOException
Vector
instance to a stream (that
is, serialize it).
This method performs synchronization to ensure the consistency
of the serialized data.IOException
Object[] elementData
Any array elements following the last element in the Vector are null.
int elementCount
Vector
object.
Components elementData[0]
through
elementData[elementCount-1]
are the actual items.int capacityIncrement
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundInvalidObjectException
- if invariants are violatedIOException
- if an I/O error occursObject[] items
int takeIndex
int putIndex
int count
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
ConcurrentHashMap
instance to a
stream (i.e., serializes it).IOException
- if an I/O error occursObject 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
ConcurrentSkipListMap<K,V> m
Object lo
Object hi
boolean loInclusive
boolean hiInclusive
boolean isDescending
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
ReentrantLock takeLock
Condition notEmpty
ReentrantLock putLock
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
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 waitingProducers
java.util.concurrent.SynchronousQueue.WaitQueue waitingConsumers
private void writeObject(ObjectOutputStream s) throws IOException
ThreadLocalRandom
to a stream (that is, serializes it).IOException
- if an I/O error occursprivate Object readResolve()
current
thread's ThreadLocalRandom
.boolean initialized
long rnd
int value
int value
int[] array
long value
long[] array
Object value
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException, InvalidObjectException
Object[] 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.double value
DoubleBinaryOperator function
long identity
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.long value
LongBinaryOperator function
long identity
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
ReentrantReadWriteLock.WriteLock writerLock
java.util.concurrent.locks.ReentrantReadWriteLock.Sync sync
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
long sequenceNumber
String sourceClassName
String sourceMethodName
String message
int threadID
long millis
Throwable thrown
String loggerName
String resourceBundleName
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
String pattern
int flags
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[] encryptedContent
String sealAlg
String paramsAlg
byte[] encodedParams
That is, cipher.getParameters().getEncoded()
.
byte[] key
String algorithm
Node offendingNode
Node
that led to the parsing error, or
null
.private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
String 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 isWrite
boolean isRead
boolean is
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 (a 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 name
MBeanFeatureInfo.getName()
rather than reading this field, and that they
not change it.String description
MBeanFeatureInfo.getDescription()
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 (a 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
String description
String className
MBeanAttributeInfo[] attributes
MBeanOperationInfo[] operations
MBeanConstructorInfo[] constructors
MBeanNotificationInfo[] notifications
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
String[] types
String type
MBeanParameterInfo[] signature
int impact
INFO
,
ACTION
,
ACTION_INFO
,
UNKNOWN
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
.
ObjectName name
String className
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.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.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
ObjectName observedObject
String observedAttribute
Object derivedGauge
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.SortedMap<K,V> contents
SortedMap
is used for faster retrieval of elements.CompositeType compositeType
private Object readResolve()
OpenType<T> openType
Object defaultValue
Set<E> legalValues
Set
is unmodifiableComparable<T> minValue
Comparable<T> maxValue
private Object readResolve()
OpenType<T> returnOpenType
OpenMBeanOperationInfo
instanceprivate Object readResolve()
OpenType<T> openType
Object defaultValue
Set<E> legalValues
Set
is unmodifiableComparable<T> minValue
Comparable<T> maxValue
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
CompositeType rowType
List<E> indexNames
ArrayList
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 {@link ObjectName}s are implicitly deselected
(check for explicit selections))List<E> selectedNames
null
means that all {@link ObjectName}s 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 protocol
JMXServiceURL.getProtocol()
.String host
JMXServiceURL.getHost()
.int port
JMXServiceURL.getPort()
.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
Notification notif
TargetedNotification.getNotification()
Integer id
TargetedNotification.getListenerID()
private void readObject(ObjectInputStream arg0) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream arg0) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
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.RMIConnector(JMXServiceURL,Map)
,
RMIConnector.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.RMIConnector(JMXServiceURL,Map)
,
RMIConnector.RMIConnector(RMIServer,Map)
RMIServer rmiServer
RMIConnector.RMIConnector(RMIServer,Map)
JMXServiceURL jmxServiceURL
Integer notificationID
byte[] buf
Object boundObj
Name remainingNewName
This field is initialized to null. It should not be manipulated directly: it should be accessed and updated using getRemainingName() and setRemainingName().
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 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().
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
Name linkResolvedName
Object linkResolvedObj
Name linkRemainingName
String linkExplanation
String name
String className
String fullName
boolean isRel
Name resolvedName
Object resolvedObj
Name remainingName
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
String className
Class.getName()
Vector<E> addrs
String classFactory
String classFactoryLocation
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
int mod_op
Attribute attr
int searchScope
int timeLimit
boolean derefLink
boolean returnObj
long countLimit
String[] attributesToReturn
Attributes attrs
Object changeInfo
int type
Binding oldBinding
Binding newBinding
NamingException exception
String id
boolean criticality
byte[] value
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int resultSize
byte[] cookie
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int resultCode
String badAttrId
UnsolicitedNotification notice
Object resolvedObj
Name remainingName
String name
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String 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 x
int y
int w
int h
int units
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
String fileName
int lineNumber
int columnNumber
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 prompt
String[] choices
int defaultChoice
boolean multipleSelectionsAllowed
int[] selections
choices
list.Locale locale
String prompt
boolean echoOn
char[] inputPassword
int messageType
String message
Callback callback
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
KerberosPrincipal principal
int versionNum
javax.security.auth.kerberos.KeyImpl key
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 }
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
KerberosPrincipal
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
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 }
boolean[] flags
Date authTime
Date startTime
Date endTime
Date renewTill
KerberosPrincipal client
KerberosPrincipal server
InetAddress[] clientAddresses
KerberosTicket proxy
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
String authorizedID
boolean authorized
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 binaryStream
InputStream
object that will be
returned by the method getBinaryStream
, which is
specified in the ResultSet
interface.InputStream unicodeStream
InputStream
object that will be
returned by the method getUnicodeStream
,
which is specified in the ResultSet
interface.InputStream asciiStream
InputStream
object that will be
returned by the method getAsciiStream
,
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.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 conndection. This URL can be found in the documentation supplied by the driver vendor.
String dataSource
DataSource
object from a Java
Directory and Naming Interface (JNDI) naming service.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 .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.int maxRows
int maxFieldSize
int concurrency
RowSet
object. It must be one of the following ResultSet
constants: CONCUR_READ_ONLY
or
CONCUR_UPDATABLE
.boolean readOnly
boolean
indicating whether this JDBC RowSet
object is read-only. true
indicates that it is read-only;
false
that it is writable.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 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
.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.
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.Vector<E> listeners
Vector
object that holds the list of listeners
that have registered with this RowSet
object.Hashtable<K,V> params
Vector
object that holds the parameters set
for this RowSet
object's current command.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
Object[] elements
Object
in the Java programming language that represents an element
in the SQL ARRAY
value.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.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
byte[] buf
SerialBlob
object.Blob blob
Blob
object on which this
SerialBlob
object is based.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.URL url
int baseType
SerialDatalink
object. The type is expressed as one of the contants from the
class java.sql.Types
.String baseTypeName
DATALINK
value that this SerialDatalink object
represents.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
String SQLTypeName
SerialStruct
object represents. This is the name
used in the SQL definition of the SQL structured type.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.SyncResolver syncResolver
javax.sql.rowset.spi.SyncResolver
that
this SyncProviderException
object will return when its
getSyncResolver
method is called.int errorCode
QName name
Class<T> declaredType
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
boolean nil
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
SourceLocator locator
Throwable containedException
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
Exception exception
String publicId
SAXParseException.getPublicId()
String systemId
SAXParseException.getSystemId()
int lineNumber
SAXParseException.getLineNumber()
int columnNumber
SAXParseException.getColumnNumber()
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, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.