private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException
- if
GraphicsEnvironment.isHeadless()
returns
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
AccessibleContext accessibleContext
byte[] bdata
boolean consumed
AWTEvent.consume()
,
AWTEvent.isConsumed()
int id
AWTEvent.getID()
,
AWTEvent(java.lang.Object, int)
protected Object readResolve() throws ObjectStreamException
AWTKeyStroke
(or a subclass of
AWTKeyStroke
) which is equal to this instance.ObjectStreamException
- if a serialization problem occurschar keyChar
int keyCode
int modifiers
boolean onKeyRelease
Component center
Component east
Component firstItem
Component firstLine
NORTH
and BEFORE_FIRST_LINE
constants in a container whose
orientation is LEFT_TO_RIGHT
, only the
BEFORE_FIRST_LINE
will be laid out.
This will be the same for lastLine, firstItem, lastItem.int hgap
hgap
.BorderLayout.getHgap()
,
BorderLayout.setHgap(int)
Component lastItem
Component lastLine
Component north
Component south
int vgap
vgap
.BorderLayout.getVgap()
,
BorderLayout.setVgap(int)
Component west
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 actionCommand
int buttonSerializedDataVersion
String label
Button.getLabel()
,
Button.setLabel(String)
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)
int checkboxSerializedDataVersion
CheckboxGroup group
String label
Checkbox.getLabel()
,
Checkbox.setLabel(String)
boolean state
Checkbox
.Checkbox.getState()
,
Checkbox.setState(boolean)
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)
int checkboxMenuItemSerializedDataVersion
boolean state
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)
int choiceSerializedDataVersion
Vector<E> pItems
Choice
.
This can be a null
value.int selectedIndex
Choice
or -1 if nothing is selected.Choice.getSelectedItem()
,
Choice.select(int)
ColorSpace cs
ColorSpace
. If null
, then it's
default is sRGB.float falpha
float
component.
If frgbvalue
is null
, this is not valid
data, so compute from the int
color value.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.int value
Color.getRGB()
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)
AccessibleContext accessibleContext
AccessibleContext
associated with this Component
.boolean autoFocusTransferOnDisposal
Color background
background
can be null
.int boundsOp
PropertyChangeSupport changeSupport
PropertyChangeListeners
have been registered,
the changeSupport
field describes them.int componentSerializedDataVersion
Cursor cursor
null
.DropTarget dropTarget
DropTarget
associated with this component.Component.setDropTarget(java.awt.dnd.DropTarget)
,
Component.getDropTarget()
boolean enabled
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
boolean focusable
Component.setFocusable(boolean)
,
Component.isFocusable()
Set<E>[] focusTraversalKeys
boolean focusTraversalKeysEnabled
Component.setFocusTraversalKeysEnabled(boolean)
,
Component.getFocusTraversalKeysEnabled()
Font font
font
can be null
.Color foreground
foreground
can be null
.int height
Component.getSize()
boolean ignoreRepaint
Component.setIgnoreRepaint(boolean)
,
Component.getIgnoreRepaint()
int isFocusTraversableOverridden
boolean isPacked
Locale locale
Dimension maxSize
boolean maxSizeSet
Dimension minSize
boolean minSizeSet
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 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.Font peerFont
null
if no peer exists.)Vector<E> popups
Component.add(java.awt.PopupMenu)
Dimension prefSize
boolean prefSizeSet
boolean valid
boolean visible
int width
Component.getSize()
int x
Component.getLocation()
int y
Component.getLocation()
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
PropertyChange
when children are added or removedint BACKWARD_TRAVERSAL
int FORWARD_TRAVERSAL
boolean implicitDownCycleTraversal
String name
Cursor.getName()
int type
DEFAULT_CURSOR
.Cursor.getType()
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
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)
boolean resizable
Dialog.setResizable(boolean)
String title
Dialog.getTitle()
,
Dialog.setTitle(String)
boolean undecorated
undecorated
will be true if the dialog is
undecorated, otherwise it will be false.Dialog.setUndecorated(boolean)
,
Dialog.isUndecorated()
,
Component.isDisplayable()
int height
Dimension.getSize()
,
Dimension.setSize(double, double)
int width
Dimension.getSize()
,
Dimension.setSize(double, double)
Object arg
arg
has been replaced by event specific property.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()
boolean consumed
Event.isConsumed()
Event evt
EventQueue
int id
Event
variables are relevant for the event.
This has been replaced by AWTEvent.getID()AWTEvent.getID()
int key
KeyEvent.getKeyCode()
int modifiers
InputEvent.getModifiers()
Object target
EventObject.getSource()
long when
InputEvent.getWhen()
int x
MouseEvent.getX()
int y
MouseEvent.getY()
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
String dir
String file
File[] files
FileDialog.getFiles()
FilenameFilter filter
int mode
boolean multipleMode
FileDialog.setMultipleMode(boolean)
,
FileDialog.isMultipleMode()
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
boolean alignOnBaseline
int hgap
Container
.FlowLayout.getHgap()
,
FlowLayout.setHgap(int)
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 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.int vgap
Container
.FlowLayout.getHgap()
,
FlowLayout.setHgap(int)
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
int fontSerializedDataVersion
Font
Serializable Data Form.Hashtable<K,V> fRequestedAttributes
Font.getAttributes()
String name
Font
, as passed to the
constructor.Font.getName()
float pointSize
Font
in float
.Font.getSize()
,
Font.getSize2D()
int size
Font
, rounded to integer.Font.getSize()
int style
Font
, as passed to the constructor.
This style can be PLAIN, BOLD, ITALIC, or BOLD+ITALIC.Font.getStyle()
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)
int frameSerializedDataVersion
Frame
's Serialized Data Version.Rectangle maximizedBounds
Frame.setMaximizedBounds(Rectangle)
,
Frame.getMaximizedBounds()
boolean mbManagement
mbManagement
is only used by the Motif implementation.MenuBar menuBar
menuBar
= null
the frame will not have a menubar.Frame.getMenuBar()
,
Frame.setMenuBar(MenuBar)
Vector<E> ownedWindows
boolean resizable
resizable
will be true if the frame is
resizable, otherwise it will be false.Frame.isResizable()
int state
String title
title
can be null and if
this is the case the title
= "".Frame.getTitle()
,
Frame.setTitle(String)
boolean undecorated
undecorated
will be true if the frame is
undecorated, otherwise it will be false.Frame.setUndecorated(boolean)
,
Frame.isUndecorated()
,
Component.isDisplayable()
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()
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.
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 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.
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 minHeight
ipadx
, where the default will be 0.GridBagConstraints.ipadx
int minWidth
ipady
, where the default will be 0.GridBagConstraints.ipady
int tempHeight
int tempWidth
int tempX
int tempY
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.
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.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()
Component componentAdjusting
adjustForGravity
.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[] 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[] 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.short[] baselineType
boolean hasBaseline
int height
int[] maxAscent
int[] maxDescent
int[] minHeight
int[] minWidth
int startx
int starty
double[] weightX
double[] weightY
int width
int cols
int hgap
GridLayout.getHgap()
,
GridLayout.setHgap(int)
int rows
GridLayout.getRows()
,
GridLayout.setRows(int)
int vgap
GridLayout.getVgap()
,
GridLayout.setVgap(int)
int bottom
Insets.clone()
int left
Insets.clone()
int right
Insets.clone()
int top
Insets.clone()
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException
- if
GraphicsEnvironment.isHeadless()
returns
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
int alignment
Label.getAlignment()
,
Label.setAlignment(int)
String text
Label.getText()
,
Label.setText(String)
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 listSerializedDataVersion
List
component's
Serialized Data Version.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 rows
List
Component. It is specified only once, and
that is when the list component is actually
created. It will never change.List.getRows()
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 indexInParent
List parent
java.awt.MediaEntry head
Images
that is being
tracked by the MediaTracker
.Component target
Component
that will be
tracked by a media tracker where the image will
eventually be drawn.MediaTracker(Component)
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
boolean isHelpMenu
true
if the Menu in question is actually a help
menu. Otherwise it will be set to
false
.Vector<E> items
Menu.countItems()
int menuSerializedDataVersion
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()
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
Menu helpMenu
MenuBar.getHelpMenu()
,
MenuBar.setHelpMenu(Menu)
int menuBarSerializedDataVersion
Vector<E> menus
MenuBar.countMenus()
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException
- if
GraphicsEnvironment.isHeadless
returns
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
AccessibleContext accessibleContext
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)
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)
String actionCommand
actionCommand
is the label of the menu item, unless it has been
set using setActionCommand.boolean enabled
enabled
will
be set to true. Else enabled
will
be set to false.MenuItem.isEnabled()
,
MenuItem.setEnabled(boolean)
long eventMask
String label
label
is the label of a menu item.
It can be any string.MenuItem.getLabel()
,
MenuItem.setLabel(String)
int menuItemSerializedDataVersion
MenuShortcut shortcut
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)
Rectangle bounds
Polygon
.
This value can be null.Polygon.getBoundingBox()
,
Polygon.getBounds()
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)
int height
Rectangle
.Rectangle.setSize(int, int)
,
Rectangle.getSize()
int width
Rectangle
.Rectangle.setSize(int, int)
,
Rectangle.getSize()
int x
Rectangle
.Rectangle.setLocation(int, int)
,
Rectangle.getLocation()
int y
Rectangle
.Rectangle.setLocation(int, int)
,
Rectangle.getLocation()
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 lineIncrement
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 orientation
Scrollbar
's orientation--being either horizontal
or vertical.
This value should be specified when the scrollbar is created.VERTICAL
or
HORIZONTAL
only.int pageIncrement
int scrollbarSerializedDataVersion
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 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.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
ScrollPaneAdjustable hAdjustable
Adjustable
methods, namely:
setMinimum()
, setMaximum()
,
setVisibleAmount()
.ScrollPane.getHAdjustable()
int scrollbarDisplayPolicy
ScrollPane.getScrollbarDisplayPolicy()
ScrollPaneAdjustable vAdjustable
Adjustable
methods, namely:
setMinimum()
, setMaximum()
,
setVisibleAmount()
.ScrollPane.getVAdjustable()
boolean wheelScrollingEnabled
AdjustmentListener adjustmentListener
int blockIncrement
int maximum
ScrollPane
.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 orientation
ScrollPane sp
ScrollPane
this object is a scrollbar of.int unitIncrement
int value
value
should be greater than minimum
and less than maximum
int visibleAmount
ScrollPane
.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 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 rows
TextArea
.
This parameter will determine the text area's height.
Guaranteed to be non-negative.TextArea.getRows()
,
TextArea.setRows(int)
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
boolean backgroundSetByClientCode
boolean checkForEnableIM
boolean editable
TextComponent
is editable.
It will be true
if the text component
is editable and false
if not.TextComponent.isEditable()
int selectionEnd
selectionEnd
is the end position of the selected text.int selectionStart
selectionStart
is the start position
of the selected text.String text
null
value is the same as "".int textComponentSerializedDataVersion
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)
boolean alwaysOnTop
Window.setAlwaysOnTop(boolean)
,
Window.isAlwaysOnTop()
boolean autoRequestFocus
setVisible(true)
), or
being moved to the front (with a call to toFront()
).Window.setAutoRequestFocus(boolean)
,
Window.isAutoRequestFocus()
boolean focusableWindowState
Window.getFocusableWindowState()
,
Window.setFocusableWindowState(boolean)
java.awt.FocusManager focusMgr
boolean locationByPlatform
Dialog.ModalExclusionType modalExclusionType
float opacity
Window.setOpacity(float)
,
Window.getOpacity()
Shape shape
null
if
no shape is set (rectangular window).Window.getShape()
,
Window.setShape(Shape)
int state
Window.show()
boolean syncLWRequests
Window.Type type
String warningString
AWTPermission("showWindowWithoutWarningBanner")
.
This message can be displayed anywhere in the window.Window.getWarningString()
int windowSerializedDataVersion
int numComponents
int type
float[] diffMinMax
float[] invDiffMinMax
float[] maxVal
float[] minVal
boolean needScaleInit
ICC_Profile thisProfile
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
String
is the name of one of
CS_*
constants defined in the
ColorSpace
class if the profile object is a profile
for a predefined color space (for example
"CS_sRGB"
). The string is null
otherwise.
The byte[]
array is the profile data for the
profile. It will usually be null
for the
predefined profiles.
If the string is recognized as a constant name for
predefined color space the object will be resolved into
profile obtained with
getInstance(int cspace)
and the profile
data are ignored. Otherwise the object will be resolved
into profile obtained with
getInstance(byte[] data)
.
IOException
- thrown by ObjectInputStream
.ClassNotFoundException
- thrown by ObjectInputStream
.ICC_Profile.readResolve()
,
ICC_Profile.getInstance(int)
,
ICC_Profile.getInstance(byte[])
protected Object readResolve() throws ObjectStreamException
ObjectStreamException
- never thrown, but mandated by the serialization spec.private void writeObject(ObjectOutputStream s) throws IOException
String
is the name of one of
CS_*
constants defined in the
ColorSpace
class if the profile object is a profile
for a predefined color space (for example
"CS_sRGB"
). The string is null
otherwise.
The byte[]
array is the profile data for the
profile. For predefined color spaces null
is
written instead of the profile data. If in the future
versions of Java API new predefined color spaces will be
added, future versions of this class may choose to write
for new predefined color spaces not only the color space
name, but the profile data as well so that older versions
could still deserialize the object.
IOException
- thrown by ObjectInputStream
.int iccProfileSerializedDataVersion
1
corresponds to Java 2
Platform, v1.3.public void readExternal(ObjectInput is) throws IOException, ClassNotFoundException
DataFlavor
from a Serialized state.IOException
- if I/O errors occurClassNotFoundException
- If the class for an object being
restored cannot be found.public void writeExternal(ObjectOutput os) throws IOException
DataFlavor
.IOException
- Includes any I/O exceptions that may occurString searchTerm
URI uri
UserSessionEvent.Reason reason
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
DragGestureEvent
. This method first
performs default deserialization for all non-transient
fields. An attempt is then made to deserialize this object's
List
of gesture events as well. This is first attempted
by deserializing the field events
, because, in releases
prior to 1.4, a non-transient
field of this name stored the
List
of gesture events. If this fails, the next object in
the stream is used instead. If the resulting List
is
null
, this object's List
of gesture events
is set to an empty List
.ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
DragGestureEvent
. Performs default
serialization and then writes out this object's List
of
gesture events if and only if the List
can be serialized.
If not, null
is written instead. In this case, a
DragGestureEvent
created from the resulting deserialized
stream will contain an empty List
of gesture events.List
instance, or
null
.IOException
int action
Component component
DragSource dragSource
Point origin
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
DragGestureRecognizer
. This method first
performs default deserialization for all non-transient
fields. This object's DragGestureListener
is then
deserialized as well by using the next object in the stream.ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
DragGestureRecognizer
. This method first
performs default serialization. Then, this object's
DragGestureListener
is written out if and only if it can be
serialized. If not, null
is written instead.DragGestureListener
, or
null
.IOException
Component component
Component
associated with this DragGestureRecognizer
.DragSource dragSource
DragSource
associated with this
DragGestureRecognizer
.ArrayList<E> events
DragGestureRecognizer
"recognized" as a "gesture" that triggers a drag.int sourceActions
int
representing
the type(s) of action(s) used
in this Drag and Drop operation.private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
DragSource
. This method first performs
default deserialization. Next, this object's FlavorMap
is
deserialized by using the next object in the stream.
If the resulting FlavorMap
is null
, this
object's FlavorMap
is set to the default FlavorMap for
this thread's ClassLoader
.
Next, this object's listeners are deserialized by reading a
null
-terminated sequence of 0 or more key/value pairs
from the stream:
String
equal to
dragSourceListenerK
, a DragSourceListener
is
deserialized using the corresponding value object and added to this
DragSource
.
String
equal to
dragSourceMotionListenerK
, a
DragSourceMotionListener
is deserialized using the
corresponding value object and added to this DragSource
.
ClassNotFoundException
IOException
SystemFlavorMap.getDefaultFlavorMap()
private void writeObject(ObjectOutputStream s) throws IOException
DragSource
. This method first performs
default serialization. Next, it writes out this object's
FlavorMap
if and only if it can be serialized. If not,
null
is written instead. Next, it writes out
Serializable
listeners registered with this
object. Listeners are written in a null
-terminated sequence
of 0 or more pairs. The pair consists of a String
and an
Object
; the String
indicates the type of the
Object
and is one of the following:
dragSourceListenerK
indicating a
DragSourceListener
object;
dragSourceMotionListenerK
indicating a
DragSourceMotionListener
object.
FlavorMap
instance, or
null
, followed by a null
-terminated
sequence of 0 or more pairs; the pair consists of a
String
and an Object
; the
String
indicates the type of the Object
and is one of the following:
dragSourceListenerK
indicating a
DragSourceListener
object;
dragSourceMotionListenerK
indicating a
DragSourceMotionListener
object.
IOException
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
DragSourceContext
. This method first
performs default deserialization for all non-transient
fields. This object's Transferable
and
DragSourceListener
are then deserialized as well by using
the next two objects in the stream. If the resulting
Transferable
is null
, this object's
Transferable
is set to a dummy Transferable
which supports no DataFlavor
s.ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
DragSourceContext
. This method first
performs default serialization. Next, this object's
Transferable
is written out if and only if it can be
serialized. If not, null
is written instead. In this case,
a DragSourceContext
created from the resulting deserialized
stream will contain a dummy Transferable
which supports no
DataFlavor
s. Finally, this object's
DragSourceListener
is written out if and only if it can be
serialized. If not, null
is written instead.Transferable
instance, or
null
, followed by either a
DragSourceListener
instance, or
null
.IOException
Cursor cursor
int sourceActions
DnDConstants
that represents the set of
drop actions supported by the drag source for the drag operation associated
with this DragSourceContext.
DragGestureEvent trigger
boolean useCustomCursor
true
if the custom drag cursor is used instead of the
default one.int dropAction
int gestureModifiers
boolean invalidModifiers
gestureModifiers
are invalid.int targetActions
int dropAction
boolean dropSuccess
true
if the drop was successful.boolean locationSpecified
boolean
indicating whether the cursor location
is specified for this event.int x
int y
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
DropTarget
. This method first performs
default deserialization for all non-transient
fields. An
attempt is then made to deserialize this object's
DropTargetListener
as well. This is first attempted by
deserializing the field dtListener
, because, in releases
prior to 1.4, a non-transient
field of this name stored the
DropTargetListener
. If this fails, the next object in the
stream is used instead.ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
DropTarget
. Performs default serialization,
and then writes out this object's DropTargetListener
if and
only if it can be serialized. If not, null
is written
instead.DropTargetListener
instance, or null
.IOException
int actions
boolean active
true
if the DropTarget is accepting Drag & Drop operations.Component component
DropTargetContext dropTargetContext
DropTarget dropTarget
int actions
int dropAction
Point location
int actions
int dropAction
boolean isLocalTx
true
if the source is in the same JVM as the target.Point location
DropTargetContext context
DropTargetContext
associated with this
DropTargetEvent
.String actionCommand
ActionEvent.getActionCommand()
int modifiers
ActionEvent.getModifiers()
long when
ActionEvent.getWhen()
Adjustable adjustable
AdjustmentEvent.getAdjustable()
int adjustmentType
adjustmentType
describes how the adjustable
object value has changed.
This value can be increased/decreased by a block or unit amount
where the block is associated with page increments/decrements,
and a unit is associated with line increments/decrements.AdjustmentEvent.getAdjustmentType()
boolean isAdjusting
isAdjusting
is true if the event is one
of the series of multiple adjustment events.AdjustmentEvent.getValueIsAdjusting()
int value
value
will contain the new value of the
adjustable object. This value will always be in a
range associated adjustable object.AdjustmentEvent.getValue()
Component child
ContainerEvent.getChild()
Object readResolve() throws ObjectStreamException
FocusEvent
instance is compatible
with the current specification which implies that focus event has
non-null cause
value. If the check fails a new FocusEvent
instance is returned which cause
field equals to
FocusEvent.Cause.UNKNOWN
and its other fields have the same values as in
this FocusEvent
instance.ObjectStreamException
FocusEvent.cause
FocusEvent.Cause cause
FocusEvent.getCause()
boolean temporary
FocusEvent.isTemporary()
int modifiers
long when
InputEvent.getWhen()
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
when
field if it is not present in the
object input stream. In that case, the field will be initialized by
invoking EventQueue.getMostRecentEventTime()
.ClassNotFoundException
IOException
long when
InputMethodEvent.getWhen()
boolean catchExceptions
boolean dispatched
run()
method of the runnable
was executed or not.InvocationEvent.isDispatched()
Exception exception
Runnable listener
InvocationEvent.isDispatched()
Object notifier
InvocationEvent.isDispatched()
Runnable runnable
Throwable throwable
long when
InvocationEvent.getWhen()
Object item
ItemEvent.getItem()
int stateChange
stateChange
indicates whether the item
was selected or deselected.ItemEvent.getStateChange()
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
boolean isProxyActive
char keyChar
keyChar
is a valid unicode character
that is fired by a key or a key combination on
a keyboard.KeyEvent.getKeyChar()
,
KeyEvent.setKeyChar(char)
int keyCode
KeyEvent.getKeyCode()
,
KeyEvent.setKeyCode(int)
int keyLocation
KEY_LOCATION_UNKNOWN
,
KEY_LOCATION_STANDARD
, KEY_LOCATION_LEFT
,
KEY_LOCATION_RIGHT
, and KEY_LOCATION_NUMPAD
.KeyEvent.getKeyLocation()
Component originalSource
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
int button
MouseInfo.getNumberOfButtons()
method.
This range already includes constants NOBUTTON
, BUTTON1
,
BUTTON2
, and BUTTON3
if these buttons are present. So it is allowed to use these constants too.
For example, for a mouse with two buttons this field may contain the following values:
NOBUTTON
)
BUTTON1
)
BUTTON2
)
NOBUTTON
)
BUTTON1
)
BUTTON2
)
BUTTON3
)
Toolkit.areExtraMouseButtonsEnabled()
disabled by Java
then the field may not contain the value larger than BUTTON3
.int clickCount
MOUSE_CLICKED
,
MOUSE_PRESSED
and
MOUSE_RELEASED
.
For the above, the clickCount
will be at least 1.
For all other events the count will be 0.MouseEvent.getClickCount()
boolean popupTrigger
popupTrigger
= false
,
no popup menu should appear. If it is true
then a popup menu should appear.PopupMenu
,
MouseEvent.isPopupTrigger()
int x
MouseEvent.getX()
int xAbs
int y
MouseEvent.getY()
int yAbs
double preciseWheelRotation
int scrollAmount
int scrollType
MouseWheelEvent.getScrollType()
int wheelRotation
MouseWheelEvent.getWheelRotation()
Rectangle updateRect
int newState
int oldState
private void writeObject(ObjectOutputStream stream) throws IOException
NumericShaper.Range
enum-based parameters,
if any, to the bit mask-based counterparts and writes this
object to the stream
. Any enum constants that have no
bit mask-based counterparts are ignored in the conversion.IOException
- if an I/O error occurs while writing to stream
int key
int mask
NumericShaper.Range shapingRange
Range
for contextual shaping or the
Range
for non-contextual shaping. null
for the bit
mask-based API.protected Object readResolve() throws InvalidObjectException
InvalidObjectException
- if the object to resolve is not
an instance of Attribute
private Object readResolve() throws ObjectStreamException
ObjectStreamException
private void writeObject(ObjectOutputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
AffineTransform transform
AffineTransform
for this
TransformAttribute
, or null
if AffineTransform
is the identity transform.private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
double m00
double m01
double m02
double m10
double m11
double m12
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream
followed by a byte
indicating the arc type of this Arc2D
instance.byte
indicating the arc type
Arc2D.OPEN
, Arc2D.CHORD
, or Arc2D.PIE
.
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
ObjectOutputStream
followed by a byte
indicating the arc type of this Arc2D
instance.byte
indicating the arc type
Arc2D.OPEN
, Arc2D.CHORD
, or Arc2D.PIE
.
IOException
double extent
double height
double start
double width
double x
double y
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream
followed by a byte
indicating the arc type of this Arc2D
instance.byte
indicating the arc type
Arc2D.OPEN
, Arc2D.CHORD
, or Arc2D.PIE
.
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
ObjectOutputStream
followed by a byte
indicating the arc type of this Arc2D
instance.byte
indicating the arc type
Arc2D.OPEN
, Arc2D.CHORD
, or Arc2D.PIE
.
IOException
float extent
float height
float start
float width
float x
float y
double ctrlx1
double ctrlx2
double ctrly1
double ctrly2
double x1
double x2
double y1
double y2
float ctrlx1
float ctrlx2
float ctrly1
float ctrly2
float x1
float x2
float y1
float y2
double height
Ellipse2D
.double width
Ellipse2D
.double x
Ellipse2D
.double y
Ellipse2D
.float height
Ellipse2D
.float width
Ellipse2D
.float x
Ellipse2D
.float y
Ellipse2D
.double x1
double x2
double y1
double y2
float x1
float x2
float y1
float y2
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream
followed by an explicit
serialization of the path segments stored in this
path.
There are no default serializable fields as of 1.6.
The serial data for this object is described in the writeObject method.
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
ObjectOutputStream
followed by an explicit
serialization of the path segments stored in this
path.WIND_EVEN_ODD
or
WIND_NON_ZERO
)
NP
(or unlimited if NP < 0
) sets of values consisting of
a single byte indicating a path segment type
followed by one or more pairs of float or double
values representing the coordinates of the path segment
The following byte value constants are used in the serialized form
of Path2D
objects:
Constant Name | Byte Value | Followed by | Description |
---|---|---|---|
SERIAL_STORAGE_FLT_ARRAY |
0x30 | A hint that the original Path2D object stored
the coordinates in a Java array of floats. |
|
SERIAL_STORAGE_DBL_ARRAY |
0x31 | A hint that the original Path2D object stored
the coordinates in a Java array of doubles. |
|
SERIAL_SEG_FLT_MOVETO |
0x40 | 2 floats | A moveTo path segment follows. |
SERIAL_SEG_FLT_LINETO |
0x41 | 2 floats | A lineTo path segment follows. |
SERIAL_SEG_FLT_QUADTO |
0x42 | 4 floats | A quadTo path segment follows. |
SERIAL_SEG_FLT_CUBICTO |
0x43 | 6 floats | A curveTo path segment follows. |
SERIAL_SEG_DBL_MOVETO |
0x50 | 2 doubles | A moveTo path segment follows. |
SERIAL_SEG_DBL_LINETO |
0x51 | 2 doubles | A lineTo path segment follows. |
SERIAL_SEG_DBL_QUADTO |
0x52 | 4 doubles | A curveTo path segment follows. |
SERIAL_SEG_DBL_CUBICTO |
0x53 | 6 doubles | A curveTo path segment follows. |
SERIAL_SEG_CLOSE |
0x60 | A closePath path segment. |
|
SERIAL_PATH_END |
0x61 | There are no more path segments following. |
IOException
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream
followed by an explicit
serialization of the path segments stored in this
path.
There are no default serializable fields as of 1.6.
The serial data for this object is described in the writeObject method.
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
ObjectOutputStream
followed by an explicit
serialization of the path segments stored in this
path.WIND_EVEN_ODD
or
WIND_NON_ZERO
)
NP
(or unlimited if NP < 0
) sets of values consisting of
a single byte indicating a path segment type
followed by one or more pairs of float or double
values representing the coordinates of the path segment
The following byte value constants are used in the serialized form
of Path2D
objects:
Constant Name | Byte Value | Followed by | Description |
---|---|---|---|
SERIAL_STORAGE_FLT_ARRAY |
0x30 | A hint that the original Path2D object stored
the coordinates in a Java array of floats. |
|
SERIAL_STORAGE_DBL_ARRAY |
0x31 | A hint that the original Path2D object stored
the coordinates in a Java array of doubles. |
|
SERIAL_SEG_FLT_MOVETO |
0x40 | 2 floats | A moveTo path segment follows. |
SERIAL_SEG_FLT_LINETO |
0x41 | 2 floats | A lineTo path segment follows. |
SERIAL_SEG_FLT_QUADTO |
0x42 | 4 floats | A quadTo path segment follows. |
SERIAL_SEG_FLT_CUBICTO |
0x43 | 6 floats | A curveTo path segment follows. |
SERIAL_SEG_DBL_MOVETO |
0x50 | 2 doubles | A moveTo path segment follows. |
SERIAL_SEG_DBL_LINETO |
0x51 | 2 doubles | A lineTo path segment follows. |
SERIAL_SEG_DBL_QUADTO |
0x52 | 4 doubles | A curveTo path segment follows. |
SERIAL_SEG_DBL_CUBICTO |
0x53 | 6 doubles | A curveTo path segment follows. |
SERIAL_SEG_CLOSE |
0x60 | A closePath path segment. |
|
SERIAL_PATH_END |
0x61 | There are no more path segments following. |
IOException
double x
Point2D
.double y
Point2D
.float x
Point2D
.float y
Point2D
.double ctrlx
double ctrly
double x1
double x2
double y1
double y2
float ctrlx
float ctrly
float x1
float x2
float y1
float y2
double height
Rectangle2D
.double width
Rectangle2D
.double x
Rectangle2D
.double y
Rectangle2D
.float height
Rectangle2D
.float width
Rectangle2D
.float x
Rectangle2D
.float y
Rectangle2D
.double archeight
double arcwidth
double height
RoundRectangle2D
.double width
RoundRectangle2D
.double x
RoundRectangle2D
.double y
RoundRectangle2D
.float archeight
float arcwidth
float height
RoundRectangle2D
.float width
RoundRectangle2D
.float x
RoundRectangle2D
.float y
RoundRectangle2D
.IOException mException
int index
Object newValue
Object oldValue
Object propagationId
PropertyChangeEvent.getPropagationId()
String propertyName
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
PropertyChangeListeners
.
At serialization time we skip non-serializable listeners and only serialize the serializable listeners.
IOException
PropertyChangeEvent evt
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
VetoableChangeListeners
.
At serialization time we skip non-serializable listeners and only serialize the serializable listeners.
IOException
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
IOException
BeanContextChild beanContextChildPeer
BeanContext
in which
this BeanContextChild
is nested.PropertyChangeSupport pcSupport
PropertyChangeSupport
associated with this
BeanContextChildSupport
.VetoableChangeSupport vcSupport
VetoableChangeSupport
associated with this
BeanContextChildSupport
.BeanContext propagatedFrom
BeanContext
from which this event was propagatedCollection<E> children
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
IOException
BeanContextServiceProvider serviceProvider
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
boolean designTime
boolean
indicating whether or not
this object is currently in design time mode.Locale locale
boolean okToUseGui
boolean
indicating if this
instance may now render a GUI.int serializable
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String path
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
int bytesTransferred
String classname
boolean eof
int length
String actions
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
InvalidObjectException
- if the object is invalid or has a cause that is not
an IOException
IOException
ClassNotFoundException
Exception detail
This field predates the general-purpose exception chaining facility.
The Throwable.getCause()
method is now the preferred means of
obtaining this information.
boolean value
byte value
Byte
.char value
Character
.A new handle is generated for the initial time the class descriptor is written into the stream. Future references to the class descriptor are written as references to the initial class descriptor instance.TC_CLASS
ClassDescriptor A ClassDescriptor is a special cased serialization of ajava.io.ObjectStreamClass
instance.
ObjectStreamClass
Throwable ex
double value
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObjectNoData() throws ObjectStreamException
ObjectStreamException
String name
Enum.toString()
method rather than
accessing this field.int ordinal
Throwable exception
float value
int value
Integer
.long value
Long
.short value
Short
.private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int count
boolean shared
char[] value
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
StringBuilder
instance to a stream
(that is, serialize it).int
), followed by the characters in the
string builder (char[]
). The length of the
char
array may be greater than the number of
characters currently stored in the string builder, in which
case extra characters are ignored.IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
Throwable
from a stream, enforcing
well-formedness constraints on fields. Null entries and
self-pointers are not allowed in the list of
suppressedExceptions
. Null entries are not allowed for stack
trace elements. A null stack trace in the serial form results
in a zero-length stack element array. A single-element stack
trace whose entry is equal to new StackTraceElement("",
"", null, Integer.MIN_VALUE)
results in a null
stackTrace
field.
Note that there are no constraints on the value the
cause
field can hold; both null
and this
are
valid values for the field.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
Throwable
object to a stream.
A null
stack trace field is represented in the serial
form as a one-element array whose element is equal to
new StackTraceElement("", "", null, Integer.MIN_VALUE)
.IOException
Throwable cause
String detailMessage
FileNotFoundException
, this contains the name of
the file that could not be found.StackTraceElement[] stackTrace
Throwable.getStackTrace()
.
The field is initialized to a zero-length array. A
null
value of this field indicates subsequent calls to Throwable.setStackTrace(StackTraceElement[])
and Throwable.fillInStackTrace()
will be no-ops.List<E> suppressedExceptions
Throwable.getSuppressed()
. The list is initialized to a zero-element
unmodifiable sentinel list. When a serialized Throwable is
read in, if the suppressedExceptions
field points to a
zero-element list, the field is reset to the sentinel value.String typeName
String foundType
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
MethodType
instance from a stream (that is,
deserialize it).
This instance is a scratch object with bogus final fields.
It provides the parameters to the factory method called by
readResolve
.
After that call it is discarded.IOException
- if there is a problem reading the objectClassNotFoundException
- if one of the component classes cannot be resolvedMethodType()
,
MethodType.readResolve()
,
MethodType.writeObject(java.io.ObjectOutputStream)
private Object readResolve()
MethodType
object
after serialization.private void writeObject(ObjectOutputStream s) throws IOException
MethodType
instance to a stream.writeObject
method, using two calls to s.writeObject
as follows:
s.writeObject(this.returnType()); s.writeObject(this.parameterArray());
The deserialized field values are checked as if they were
provided to the factory method methodType
.
For example, null values, or void
parameter types,
will lead to exceptions during deserialization.
IOException
- if there is a problem writing the objectMethodType
.private Object readResolve() throws ReflectiveOperationException
ReflectiveOperationException
Object[] capturedArgs
Class<T> capturingClass
String functionalInterfaceClass
String functionalInterfaceMethodName
String functionalInterfaceMethodSignature
String implClass
int implMethodKind
String implMethodName
String implMethodSignature
String instantiatedMethodType
Throwable target
InvocationHandler h
Throwable undeclaredThrowable
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
BigDecimal
instance from a stream (that is,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
BigDecimal
to the stream in questionIOException
BigInteger intVal
BigDecimal.unscaledValue()
.BigDecimal.unscaledValue()
int scale
BigDecimal.scale
.BigDecimal.scale
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
BigInteger
instance from a stream (that is,
deserialize it). The magnitude is read in as an array of bytes
for historical reasons, but it is converted to an array of ints
and the byte array is discarded.
Note:
The current convention is to initialize the cache fields, bitCountPlusOne,
bitLengthPlusOne and lowestSetBitPlusTwo, to 0 rather than some other
marker value. Therefore, no explicit action to set these fields needs to
be taken in readObject because those fields already have a 0 value by
default since defaultReadObject is not being used.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
BigInteger
instance to a stream. The magnitude of a
BigInteger
is serialized as a byte array for historical reasons.
To maintain compatibility with older implementations, the integers
-1, -1, -2, and -2 are written as the values of the obsolete fields
bitCount
, bitLength
, lowestSetBit
, and
firstNonzeroByteNum
, respectively. These values are compatible
with older implementations, but will be ignored by current
implementations.IOException
int bitCount
int bitLength
int firstNonzeroByteNum
int lowestSetBit
byte[] magnitude
int signum
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
MathContext
instance from a stream (that is,
deserialize it).IOException
ClassNotFoundException
int precision
precision
will always be non-negative.
RoundingMode roundingMode
RoundingMode
String location
int responseCode
private Object writeReplace() throws ObjectStreamException
ObjectStreamException
- if a new object replacing this
object could not be createdprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String ifname
byte[] ipaddress
int scope_id
boolean scope_id_set
boolean scope_ifname_set
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObjectNoData(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private Object readResolve() throws ObjectStreamException
ObjectStreamException
- if a new object replacing this
object could not be createdprivate void writeObject(ObjectOutputStream s) throws IOException
IOException
int address
int family
String hostName
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObjectNoData() throws ObjectStreamException
ObjectStreamException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
InetAddress addr
String hostname
int port
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream is) throws ClassNotFoundException, IOException
The ObjectInputStream.defaultReadObject()
method is
invoked to read the value of the string
field. The result is
then parsed in the usual way.
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream os) throws IOException
The only serializable field of a URI instance is its string
field. That field is given a value, if it does not have one already,
and then the ObjectOutputStream.defaultWriteObject()
method of the given object-output stream is invoked.
IOException
String string
int index
String input
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private Object readResolve() throws ObjectStreamException
ObjectStreamException
- if a new object replacing this
object could not be createdprivate void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
String actions
String charsetName
int inputLength
int inputLength
String charsetName
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
InvalidObjectException
- if the object is invalid or has a cause that is not
an IOException
IOException
ClassNotFoundException
int index
String input
String name
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
- if an I/O error occursClassNotFoundException
- if a class cannot be foundint hash
MarshalledObject.hashCode()
byte[] locBytes
equals
. If locBytes
is null, there were no
non-null
annotations during marshalling.byte[] objBytes
objBytes
is
null
then the object marshalled was a null
reference.Throwable detail
This field predates the general-purpose exception chaining facility.
The Throwable.getCause()
method is now the preferred means of
obtaining this information.
String className
MarshalledObject<T> data
ActivationGroupID groupID
String location
boolean restart
Throwable detail
This field predates the general-purpose exception chaining facility.
The Throwable.getCause()
method is now the preferred means of
obtaining this information.
ActivationGroupID groupID
long incarnation
ActivationMonitor monitor
String className
MarshalledObject<T> data
ActivationGroupDesc.CommandEnvironment env
String location
Properties props
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
readObject
for custom serialization.
This method reads this object's serialized form for this class as follows:
This method first invokes defaultReadObject
on
the specified object input stream, and if options
is null
, then options
is set to a
zero-length array of String
.
IOException
ClassNotFoundException
ActivationSystem system
UID uid
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
readObject
for custom serialization.
This method reads this object's serialized form for this class as follows:
The readObject
method is invoked on
in
to read this object's unique identifier
(a UID
instance).
Next, the readUTF
method is invoked on
in
to read the external ref type name of the
RemoteRef
instance for this object's
activator. Next, the RemoteRef
instance is created of an implementation-specific class
corresponding to the external ref type name (returned by
readUTF
), and the readExternal
method is invoked on that RemoteRef
instance
to read the external form corresponding to the external
ref type name.
Note: If the external ref type name is
"UnicastRef"
, "UnicastServerRef"
,
"UnicastRef2"
, "UnicastServerRef2"
,
or "ActivatableRef"
, a corresponding
implementation-specific class must be found, and its
readExternal
method must read the serial data
for that external ref type name as specified to be written
in the serialData documentation for this class.
If the external ref type name is any other string (of non-zero
length), a ClassNotFoundException
will be thrown,
unless the implementation provides an implementation-specific
class corresponding to that external ref type name, in which
case the RemoteRef
will be an instance of
that implementation-specific class.
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException, ClassNotFoundException
writeObject
for custom serialization.
This method writes this object's serialized form for this class as follows:
The writeObject
method is invoked on
out
passing this object's unique identifier
(a UID
instance) as the argument.
Next, the getRefClass
method is invoked on the activator's
RemoteRef
instance to obtain its external ref
type name. Next, the writeUTF
method is
invoked on out
with the value returned by
getRefClass
, and then the
writeExternal
method is invoked on the
RemoteRef
instance passing out
as the argument.
java.rmi.server.UID
(written with
ObjectOutput.writeObject
) followed by the
external ref type name of the activator's
RemoteRef
instance (a string written with
ObjectOutput.writeUTF
), followed by the
external form of the RemoteRef
instance as
written by its writeExternal
method.
The external ref type name of the
RemoteRef
instance is
determined using the definitions of external ref type
names specified in the RemoteObject
writeObject
method
serialData specification. Similarly, the data
written by the writeExternal
method and read
by the readExternal
method of
RemoteRef
implementation classes
corresponding to each of the defined external ref type
names is specified in the RemoteObject
writeObject
method serialData
specification.
IOException
ClassNotFoundException
long value
Lease.getValue()
VMID vmid
Lease.getVMID()
byte[] addr
UID uid
long objNum
ObjID.hashCode()
UID space
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
readObject
for custom serialization.
This method reads this object's serialized form for this class as follows:
The readUTF
method is invoked on in
to read the external ref type name for the RemoteRef
instance to be filled in to this object's ref
field.
If the string returned by readUTF
has length zero,
the readObject
method is invoked on in
,
and than the value returned by readObject
is cast to
RemoteRef
and this object's ref
field is
set to that value.
Otherwise, this object's ref
field is set to a
RemoteRef
instance that is created of an
implementation-specific class corresponding to the external ref
type name returned by readUTF
, and then
the readExternal
method is invoked on
this object's ref
field.
If the external ref type name is
"UnicastRef"
, "UnicastServerRef"
,
"UnicastRef2"
, "UnicastServerRef2"
,
or "ActivatableRef"
, a corresponding
implementation-specific class must be found, and its
readExternal
method must read the serial data
for that external ref type name as specified to be written
in the serialData documentation for this class.
If the external ref type name is any other string (of non-zero
length), a ClassNotFoundException
will be thrown,
unless the implementation provides an implementation-specific
class corresponding to that external ref type name, in which
case this object's ref
field will be set to an
instance of that implementation-specific class.
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException, ClassNotFoundException
writeObject
for custom serialization.
This method writes this object's serialized form for this class as follows:
The getRefClass
method is invoked on this object's ref
field
to obtain its external ref type name.
If the value returned by getRefClass
was
a non-null
string of length greater than zero,
the writeUTF
method is invoked on out
with the value returned by getRefClass
, and then
the writeExternal
method is invoked on
this object's ref
field passing out
as the argument; otherwise,
the writeUTF
method is invoked on out
with a zero-length string (""
), and then
the writeObject
method is invoked on out
passing this object's ref
field as the argument.
ObjectOutput.writeUTF
) that is either the external
ref type name of the contained RemoteRef
instance
(the ref
field) or a zero-length string, followed by
either the external form of the ref
field as written by
its writeExternal
method if the string was of non-zero
length, or the serialized form of the ref
field as
written by passing it to the serialization stream's
writeObject
if the string was of zero length.
If this object is an instance of
RemoteStub
or RemoteObjectInvocationHandler
that was returned from any of
the UnicastRemoteObject.exportObject
methods
and custom socket factories are not used,
the external ref type name is "UnicastRef"
.
If this object is an instance of
RemoteStub
or RemoteObjectInvocationHandler
that was returned from any of
the UnicastRemoteObject.exportObject
methods
and custom socket factories are used,
the external ref type name is "UnicastRef2"
.
If this object is an instance of
RemoteStub
or RemoteObjectInvocationHandler
that was returned from any of
the java.rmi.activation.Activatable.exportObject
methods,
the external ref type name is "ActivatableRef"
.
If this object is an instance of
RemoteStub
or RemoteObjectInvocationHandler
that was returned from
the RemoteObject.toStub
method (and the argument passed
to toStub
was not itself a RemoteStub
),
the external ref type name is a function of how the remote object
passed to toStub
was exported, as described above.
If this object is an instance of
RemoteStub
or RemoteObjectInvocationHandler
that was originally created via deserialization,
the external ref type name is the same as that which was read
when this object was deserialized.
If this object is an instance of
java.rmi.server.UnicastRemoteObject
that does not
use custom socket factories,
the external ref type name is "UnicastServerRef"
.
If this object is an instance of
UnicastRemoteObject
that does
use custom socket factories,
the external ref type name is "UnicastServerRef2"
.
Following is the data that must be written by the
writeExternal
method and read by the
readExternal
method of RemoteRef
implementation classes that correspond to the each of the
defined external ref type names:
For "UnicastRef"
:
DataOutput.writeUTF(String)
DataOutput.writeInt(int)
ObjID
instance contained in the reference
false
,
written by DataOutput.writeBoolean(boolean)
For "UnicastRef2"
with a
null
client socket factory:
0x00
(indicating null
client socket factory),
written by DataOutput.writeByte(int)
DataOutput.writeUTF(String)
DataOutput.writeInt(int)
ObjID
instance contained in the reference
false
,
written by DataOutput.writeBoolean(boolean)
For "UnicastRef2"
with a
non-null
client socket factory:
0x01
(indicating non-null
client socket factory),
written by DataOutput.writeByte(int)
DataOutput.writeUTF(String)
DataOutput.writeInt(int)
java.rmi.server.RMIClientSocketFactory
),
written by passing it to an invocation of
writeObject
on the stream instance
ObjID
instance contained in the reference
false
,
written by DataOutput.writeBoolean(boolean)
For "ActivatableRef"
with a
null
nested remote reference:
java.rmi.activation.ActivationID
,
written by passing it to an invocation of
writeObject
on the stream instance
""
),
written by DataOutput.writeUTF(String)
For "ActivatableRef"
with a
non-null
nested remote reference:
java.rmi.activation.ActivationID
,
written by passing it to an invocation of
writeObject
on the stream instance
"UnicastRef2"
,
written by DataOutput.writeUTF(String)
writeExternal
method
with the stream instance
(see the description of the external form for
"UnicastRef2"
above)
For "UnicastServerRef"
and
"UnicastServerRef2"
, no data is written by the
writeExternal
method or read by the
readExternal
method.
IOException
ClassNotFoundException
private void readObjectNoData() throws InvalidObjectException
InvalidObjectException
- unconditionallyException detail
This field predates the general-purpose exception chaining facility.
The Throwable.getCause()
method is now the preferred means of
obtaining this information.
short count
UID
instances created
in the same VM with the same time valuelong time
System.currentTimeMillis()
) at which
the VM that this UID
was generated in was aliveint unique
UID
was generated in with respect to its host and at the given timeprivate void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
RMIClientSocketFactory csf
int port
RMIServerSocketFactory ssf
Permission perm
boolean all_allowed
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
boolean all_allowed
true
if this BasicPermissionCollection
contains a BasicPermission with '*' as its permission name.Class<T> permClass
Hashtable<K,V> permissions
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
URL
is followed by an
int
indicating the number of certificates to follow
(a value of "zero" denotes that there are no certificates associated
with this object).
Each certificate is written out starting with a String
denoting the certificate type, followed by an
int
specifying the length of the certificate encoding,
followed by the certificate encoding itself which is written out as an
array of bytes. Finally, if any code signers are present then the array
of code signers is serialized and written out too.IOException
URL location
private void writeObject(ObjectOutputStream oos) throws IOException
IOException
Vector<E> certificates
String info
String name
PublicKey publicKey
IdentityScope scope
PrivateKey privateKey
PublicKey publicKey
protected Object readResolve() throws ObjectStreamException
This method supports three Type/format combinations:
ObjectStreamException
- if the Type/format
combination is unrecognized, if the algorithm, key format, or
encoded key bytes are unrecognized/invalid, of if the
resolution of the key fails for any reasonString algorithm
byte[] encoded
String format
KeyRep.Type type
String name
boolean readOnly
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
Exception exception
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
ObjectInputStream
for the default serializable fields.
If the serialized field versionStr
is found in the STREAM FIELDS,
its String value will be used to populate both the version string and
version number. If versionStr
is not found, but version
is, then its double value will be used to populate both fields.IOException
ClassNotFoundException
String algorithm
long counter
MessageDigest digest
Provider provider
byte[] randomBytes
SecureRandom
class itself.int randomBytesUsed
SecureRandomSpi secureRandomSpi
byte[] state
boolean threadSafe
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
byte[] content
byte[] signature
String thealgorithm
PrivateKey privateKey
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
String
denoting the
type
is followed by a String
denoting the
name
is followed by a String
denoting the
actions
is followed by an int
indicating the
number of certificates to follow
(a value of "zero" denotes that there are no certificates associated
with this object).
Each certificate is written out starting with a String
denoting the certificate type, followed by an
int
specifying the length of the certificate encoding,
followed by the certificate encoding itself which is written out as an
array of bytes.IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException
- if a new object representing
this Certificate could not be createdint hash
String type
protected Object readResolve() throws ObjectStreamException
ObjectStreamException
- if the Certificate
could not be resolvedbyte[] data
String type
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
CertificateRevokedException
instance.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
CertificateRevokedException
instance.IOException
X500Principal authority
X500Principal
that represents the name of the
authority that signed the certificate's revocation status informationCRLReason reason
Date revocationDate
protected Object writeReplace() throws ObjectStreamException
CertPath
to be serialized with a
CertPathRep
object.ObjectStreamException
- if a CertPathRep
object
representing this certification path could not be createdString type
protected Object readResolve() throws ObjectStreamException
CertPath
constructed from the type and data.ObjectStreamException
- if a CertPath
could not
be constructedbyte[] data
String type
private void readObject(ObjectInputStream stream) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
CertPath certPath
CertPath
that was being validated when
the exception was thrownint index
CertPathValidatorException.Reason reason
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
BatchUpdateException
from a stream.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException, ClassNotFoundException
BatchUpdateException
to a stream.IOException
ClassNotFoundException
long[] longUpdateCounts
int[] updateCounts
int dataSize
int index
boolean parameter
boolean read
int transferSize
SQLException next
String SQLState
int vendorCode
int nanos
protected Object readResolve() throws InvalidObjectException
InvalidObjectException
- if the object to resolve is not
an instance of Attribute
String name
Attribute
. The name is used primarily by readResolve
to look up the corresponding predefined instance when deserializing
an instance.private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
InvalidObjectException
- if the objects read from the stream is invalid.IOException
ClassNotFoundException
String[] choiceFormats
choiceFormats[i]
if the number being formatted is greater than or equal to
choiceLimits[i]
and less than choiceLimits[i+1]
.double[] choiceLimits
choiceFormats[i]
if the number being formatted is greater than or equal to
choiceLimits[i]
and less than choiceLimits[i+1]
.Calendar calendar
NumberFormat numberFormat
DateFormat
uses to format numbers
in dates and times. Subclasses should initialize this to a number format
appropriate for the locale associated with this DateFormat
.protected Object readResolve() throws InvalidObjectException
InvalidObjectException
- if the constant could not be
resolved.int calendarField
private void writeObject(ObjectOutputStream stream) throws IOException
zoneStrings
field is initialized in order to make
sure the backward compatibility.IOException
String[] ampms
Calendar.AM
and
Calendar.PM
.String[] eras
Calendar.BC
and Calendar.AD
.Locale locale
String localPatternChars
DateFormat.ERA_FIELD
,
DateFormat.YEAR_FIELD
, etc. Thus, if the string were
"Xz...", then localized patterns would use 'X' for era and 'z' for year.String[] months
Calendar.JANUARY
, Calendar.FEBRUARY
, etc.String[] shortMonths
Calendar.JANUARY
, Calendar.FEBRUARY
, etc.String[] shortWeekdays
Calendar.SUNDAY
,
Calendar.MONDAY
, etc.
The element shortWeekdays[0]
is ignored.String[] weekdays
Calendar.SUNDAY
,
Calendar.MONDAY
, etc.
The element weekdays[0]
is ignored.String[][] zoneStrings
TimeZone
.
Each such row contains (with i
ranging from
0..n-1):
zoneStrings[i][0]
- time zone IDzoneStrings[i][1]
- long name of zone in standard
timezoneStrings[i][2]
- short name of zone in
standard timezoneStrings[i][3]
- long name of zone in daylight
saving timezoneStrings[i][4]
- short name of zone in daylight
saving timeTimeZone
class that are not
custom IDs.
All other entries are localized names.TimeZone
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
BigInteger
and BigDecimal
objects. These
limits are stored in the superclass for serialization compatibility
with older versions, while the limits for BigInteger
and
BigDecimal
objects are kept in this class.
If, in the superclass, the minimum or maximum integer digit count is
larger than DOUBLE_INTEGER_DIGITS
or if the minimum or
maximum fraction digit count is larger than
DOUBLE_FRACTION_DIGITS
, then the stream data is invalid
and this method throws an InvalidObjectException
.
serialVersionOnStream
is less than 4, initialize
roundingMode
to RoundingMode.HALF_EVEN
. This field is new with version 4.
serialVersionOnStream
is less than 3, then call
the setters for the minimum and maximum integer and fraction digits with
the values of the corresponding superclass getters to initialize the
fields in this class. The fields in this class are new with version 3.
serialVersionOnStream
is less than 1, indicating that
the stream was written by JDK 1.1, initialize
useExponentialNotation
to false, since it was not present in JDK 1.1.
serialVersionOnStream
to the maximum allowed value so
that default serialization will work properly if this object is streamed
out again.
Stream versions older than 2 will not have the affix pattern variables
posPrefixPattern
etc. As a result, they will be initialized
to null
, which means the affix strings will be taken as
literal values. This is exactly what we want, since that corresponds to
the pre-version-2 behavior.
IOException
ClassNotFoundException
boolean decimalSeparatorAlwaysShown
byte groupingSize
NumberFormat.groupingUsed
is true.int maximumFractionDigits
BigInteger
or BigDecimal
number.
maximumFractionDigits
must be greater than or equal to
minimumFractionDigits
.DecimalFormat.getMaximumFractionDigits()
int maximumIntegerDigits
BigInteger
or BigDecimal
number.
maximumIntegerDigits
must be greater than or equal to
minimumIntegerDigits
.DecimalFormat.getMaximumIntegerDigits()
byte minExponentDigits
useExponentialNotation
is not true.int minimumFractionDigits
BigInteger
or BigDecimal
number.
minimumFractionDigits
must be less than or equal to
maximumFractionDigits
.DecimalFormat.getMinimumFractionDigits()
int minimumIntegerDigits
BigInteger
or BigDecimal
number.
minimumIntegerDigits
must be less than or equal to
maximumIntegerDigits
.DecimalFormat.getMinimumIntegerDigits()
int multiplier
DecimalFormat.getMultiplier()
String negativePrefix
DecimalFormat.getNegativePrefix()
String negativeSuffix
DecimalFormat.getNegativeSuffix()
String negPrefixPattern
negativePrefix
. This variable is analogous to
posPrefixPattern
; see that variable for further
documentation.String negSuffixPattern
negativeSuffix
. This variable is analogous to
posPrefixPattern
; see that variable for further
documentation.boolean parseBigDecimal
DecimalFormat.isParseBigDecimal()
String positivePrefix
DecimalFormat.getPositivePrefix()
String positiveSuffix
DecimalFormat.getPositiveSuffix()
String posPrefixPattern
positivePrefix
.
This pattern is expanded by the method expandAffix()
to
positivePrefix
to update the latter to reflect changes in
symbols
. If this variable is null
then
positivePrefix
is taken as a literal value that does not
change when symbols
changes. This variable is always
null
for DecimalFormat
objects older than
stream version 2 restored from stream.
String posSuffixPattern
positiveSuffix
. This variable is analogous to
posPrefixPattern
; see that variable for further
documentation.RoundingMode roundingMode
RoundingMode
used in this DecimalFormat.int serialVersionOnStream
useExponentialNotation
and
minExponentDigits
.
posPrefixPattern
, posSuffixPattern
,
negPrefixPattern
, and negSuffixPattern
.
maximumIntegerDigits
,
minimumIntegerDigits
,
maximumFractionDigits
,
minimumFractionDigits
, and
parseBigDecimal
.
roundingMode
.
DecimalFormatSymbols symbols
DecimalFormatSymbols
object used by this format.
It contains the symbols used to format numbers, e.g. the grouping separator,
decimal separator, and so on.boolean useExponentialNotation
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
serialVersionOnStream
is less than 1, initializes monetarySeparator
to be
the same as decimalSeparator
and exponential
to be 'E'.
If serialVersionOnStream
is less than 2,
initializes locale
to the root locale, and initializes
If serialVersionOnStream
is less than 3, it initializes
exponentialSeparator
using exponential
.
Sets serialVersionOnStream
back to the maximum allowed value so that
default serialization will work properly if this object is streamed out again.
Initializes the currency from the intlCurrencySymbol field.IOException
ClassNotFoundException
String currencySymbol
DecimalFormatSymbols.getCurrencySymbol()
char decimalSeparator
char digit
DecimalFormatSymbols.getDigit()
char exponential
Note that the public API provides no way to set this field, even though it is supported by the implementation and the stream format. The intent is that this will be added to the API in the future.
String exponentialSeparator
If both exponential
and exponentialSeparator
exist, this exponentialSeparator
has the precedence.
char groupingSeparator
String infinity
DecimalFormatSymbols.getInfinity()
String intlCurrencySymbol
Locale locale
char minusSign
DecimalFormatSymbols.getMinusSign()
char monetarySeparator
DecimalFormatSymbols.getMonetaryDecimalSeparator()
String NaN
DecimalFormatSymbols.getNaN()
char patternSeparator
char percent
DecimalFormatSymbols.getPercent()
char perMill
DecimalFormatSymbols.getPerMill()
int serialVersionOnStream
DecimalFormatSymbols
present on the stream.
Possible values are:
monetarySeparator
and exponential
.
locale
field.
exponentialSeparator
field.
DecimalFormatSymbols
, the most recent format
(corresponding to the highest allowable serialVersionOnStream
)
is always written.char zeroDigit
DecimalFormatSymbols.getZeroDigit()
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
InvalidObjectException
- if the objects read from the stream is invalid.IOException
ClassNotFoundException
int[] argumentNumbers
Format[] formats
Locale locale
int maxOffset
offsets
. Can also be thought of
as the index of the highest-numbered element in offsets
that is being used.
All of these arrays should have the same number of elements being used as offsets
does, and so this variable suffices to tell us how many entries are in all of them.int[] offsets
String pattern
protected Object readResolve() throws InvalidObjectException
InvalidObjectException
- if the constant could not be
resolved.private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
serialVersionOnStream
is less than 1, indicating that
the stream was written by JDK 1.1,
set the int
fields such as maximumIntegerDigits
to be equal to the byte
fields such as maxIntegerDigits
,
since the int
fields were not present in JDK 1.1.
Finally, set serialVersionOnStream back to the maximum allowed value so that
default serialization will work properly if this object is streamed out again.
If minimumIntegerDigits
is greater than
maximumIntegerDigits
or minimumFractionDigits
is greater than maximumFractionDigits
, then the stream data
is invalid and this method throws an InvalidObjectException
.
In addition, if any of these values is negative, then this method throws
an InvalidObjectException
.
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream stream) throws IOException
byte
fields such as maxIntegerDigits
to be
equal to the int
fields such as maximumIntegerDigits
(or to Byte.MAX_VALUE
, whichever is smaller), for compatibility
with the JDK 1.1 version of the stream format.IOException
boolean groupingUsed
NumberFormat.isGroupingUsed()
byte maxFractionDigits
maximumFractionDigits
must be greater than or equal to
minimumFractionDigits
.
Note: This field exists only for serialization
compatibility with JDK 1.1. In Java platform 2 v1.2 and higher, the new
int
field maximumFractionDigits
is used instead.
When writing to a stream, maxFractionDigits
is set to
maximumFractionDigits
or Byte.MAX_VALUE
,
whichever is smaller. When reading from a stream, this field is used
only if serialVersionOnStream
is less than 1.
NumberFormat.getMaximumFractionDigits()
int maximumFractionDigits
maximumFractionDigits
must be greater than or equal to
minimumFractionDigits
.NumberFormat.getMaximumFractionDigits()
int maximumIntegerDigits
maximumIntegerDigits
must be greater than or equal to
minimumIntegerDigits
.NumberFormat.getMaximumIntegerDigits()
byte maxIntegerDigits
maxIntegerDigits
must be greater than or equal to
minIntegerDigits
.
Note: This field exists only for serialization
compatibility with JDK 1.1. In Java platform 2 v1.2 and higher, the new
int
field maximumIntegerDigits
is used instead.
When writing to a stream, maxIntegerDigits
is set to
maximumIntegerDigits
or Byte.MAX_VALUE
,
whichever is smaller. When reading from a stream, this field is used
only if serialVersionOnStream
is less than 1.
NumberFormat.getMaximumIntegerDigits()
byte minFractionDigits
minimumFractionDigits
must be less than or equal to
maximumFractionDigits
.
Note: This field exists only for serialization
compatibility with JDK 1.1. In Java platform 2 v1.2 and higher, the new
int
field minimumFractionDigits
is used instead.
When writing to a stream, minFractionDigits
is set to
minimumFractionDigits
or Byte.MAX_VALUE
,
whichever is smaller. When reading from a stream, this field is used
only if serialVersionOnStream
is less than 1.
NumberFormat.getMinimumFractionDigits()
int minimumFractionDigits
minimumFractionDigits
must be less than or equal to
maximumFractionDigits
.NumberFormat.getMinimumFractionDigits()
int minimumIntegerDigits
minimumIntegerDigits
must be less than or equal to
maximumIntegerDigits
.NumberFormat.getMinimumIntegerDigits()
byte minIntegerDigits
minimumIntegerDigits
must be less than or equal to
maximumIntegerDigits
.
Note: This field exists only for serialization
compatibility with JDK 1.1. In Java platform 2 v1.2 and higher, the new
int
field minimumIntegerDigits
is used instead.
When writing to a stream, minIntegerDigits
is set to
minimumIntegerDigits
or Byte.MAX_VALUE
,
whichever is smaller. When reading from a stream, this field is used
only if serialVersionOnStream
is less than 1.
NumberFormat.getMinimumIntegerDigits()
boolean parseIntegerOnly
NumberFormat.isParseIntegerOnly()
int serialVersionOnStream
NumberFormat
present on the stream.
Possible values are:
int
fields such as
maximumIntegerDigits
were not present, and the byte
fields such as maxIntegerDigits
are used instead.
byte
fields such as maxIntegerDigits
are ignored,
and the int
fields such as maximumIntegerDigits
are used instead.
NumberFormat
, the most recent format
(corresponding to the highest allowable serialVersionOnStream
)
is always written.protected Object readResolve() throws InvalidObjectException
InvalidObjectException
- if the constant could not be resolved.int errorOffset
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
InvalidObjectException
- if the pattern is invalidIOException
ClassNotFoundException
Date defaultCenturyStart
defaultCenturyStart
, which may be any date. May
not be null.DateFormatSymbols formatData
DateFormatSymbols
Locale locale
SimpleDateFormat
. The value may be null if this object
has been created by an older SimpleDateFormat
and
deserialized.String pattern
int serialVersionOnStream
defaultCenturyStart
on stream.
defaultCenturyStart
.
serialVersionOnStream
is written.private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(1); // identifies a Duration out.writeLong(seconds); out.writeInt(nanos);
int nanos
long seconds
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(2); // identifies an Instant out.writeLong(seconds); out.writeInt(nanos);
int nanos
long seconds
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(3); // identifies a LocalDate out.writeInt(year); out.writeByte(month); out.writeByte(day);
short day
short month
int year
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(4); // identifies a LocalTime if (nano == 0) { if (second == 0) { if (minute == 0) { out.writeByte(~hour); } else { out.writeByte(hour); out.writeByte(~minute); } } else { out.writeByte(hour); out.writeByte(minute); out.writeByte(~second); } } else { out.writeByte(hour); out.writeByte(minute); out.writeByte(second); out.writeInt(nano); }
byte hour
byte minute
int nano
byte second
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(13); // identifies a MonthDay out.writeByte(month); out.writeByte(day);
int day
int month
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
LocalDateTime dateTime
ZoneOffset offset
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
ZoneOffset offset
LocalTime time
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(14); // identifies a Period out.writeInt(years); out.writeInt(months); out.writeInt(days);
int days
int months
int years
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Externalizable
interface to read the object.writeReplace
method are read and passed to the corresponding static factory for the type
to create a new instance. That instance is returned as the de-serialized
Ser
object.
Duration.ofSeconds(seconds, nanos);
Instant.ofEpochSecond(seconds, nanos);
LocalDate.of(year, month, day);
LocalDateTime.of(date, time);
LocalTime.of(hour, minute, second, nano);
MonthDay.of(month, day);
OffsetTime.of(time, offset);
OffsetDateTime.of(dateTime, offset);
Period.of(years, months, days);
Year.of(year);
YearMonth.of(year, month);
ZonedDateTime.ofLenient(dateTime, offset, zone);
ZoneId.of(id);
(offsetByte == 127 ? ZoneOffset.ofTotalSeconds(in.readInt()) : ZoneOffset.ofTotalSeconds(offsetByte * 900));
IOException
- if I/O errors occurClassNotFoundException
- If the class for an object being
restored cannot be found.public void writeExternal(ObjectOutput out) throws IOException
Externalizable
interface to write the object.writeReplace
serialized form for the value of the type and sequence of values for the type.
IOException
- Includes any I/O exceptions that may occurprivate void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(11); // identifies a Year out.writeInt(year);
int year
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(12); // identifies a YearMonth out.writeInt(year); out.writeByte(month);
int month
int year
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
LocalDateTime dateTime
ZoneOffset offset
ZoneId zone
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(7); // identifies a ZoneId (not ZoneOffset) out.writeUTF(getId());
When read back in, the ZoneId
will be created as though using
ZoneId.of(String)
, but without any exception in the case where the
ID has a valid format, but is not in the known set of region-based IDs.
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(8); // identifies a ZoneOffset int offsetByte = totalSeconds % 900 == 0 ? totalSeconds / 900 : 127; out.writeByte(offsetByte); if (offsetByte == 127) { out.writeInt(totalSeconds); }
int totalSeconds
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(2); // identifies a ChronoLocalDateTime out.writeObject(toLocalDate()); out.witeObject(toLocalTime());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(3); // identifies a ChronoZonedDateTime out.writeObject(toLocalDateTime()); out.writeObject(getOffset()); out.writeObject(getZone());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysObject writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(6); // identifies a HijrahDate out.writeObject(chrono); // the HijrahChronology variant out.writeInt(get(YEAR)); out.writeByte(get(MONTH_OF_YEAR)); out.writeByte(get(DAY_OF_MONTH));
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysObject writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysObject writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(4); // identifies a JapaneseDate out.writeInt(get(YEAR)); out.writeByte(get(MONTH_OF_YEAR)); out.writeByte(get(DAY_OF_MONTH));
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(5); // identifies a JapaneseEra out.writeInt(getValue());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysObject writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(8); // identifies a MinguoDate out.writeInt(get(YEAR)); out.writeByte(get(MONTH_OF_YEAR)); out.writeByte(get(DAY_OF_MONTH));
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Externalizable
interface to read the object.writeReplace
method are read and passed to the corresponding static factory for the type
to create a new instance. That instance is returned as the de-serialized
Ser
object.
IOException
- if I/O errors occurClassNotFoundException
- If the class for an object being
restored cannot be found.public void writeExternal(ObjectOutput out) throws IOException
Externalizable
interface to write the object.writeReplace
serialized form for the value of the type and sequence of values for the type.
IOException
- Includes any I/O exceptions that may occurprivate void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysObject writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(10); // identifies a ThaiBuddhistDate out.writeInt(get(YEAR)); out.writeByte(get(MONTH_OF_YEAR)); out.writeByte(get(DAY_OF_MONTH));
int errorIndex
String parsedString
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException, InvalidObjectException
InvalidObjectException
- if
the smallest minimum is greater than the smallest maximum,
or the smallest maximum is greater than the largest maximum
or the largest minimum is greater than the largest maximumClassNotFoundException
- if a class cannot be resolvedIOException
long maxLargest
long maxSmallest
long minLargest
long minSmallest
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException, InvalidObjectException
InvalidObjectException
- if the serialized object has an invalid
value for firstDayOfWeek or minimalDays.ClassNotFoundException
- if a class cannot be resolvedIOException
private Object readResolve() throws InvalidObjectException
firstDayOfWeek
and minimalDays
.InvalidObjectException
- if the serialized object has invalid
values for firstDayOfWeek or minimalDays.DayOfWeek firstDayOfWeek
int minimalDays
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Externalizable
interface to read the object.writeReplace
method are read and passed to the corresponding static factory for the type
to create a new instance. That instance is returned as the de-serialized
Ser
object.
ZoneRules.of(standardTransitions, standardOffsets, savingsInstantTransitions, wallOffsets, lastRules);
ZoneOffsetTransition of(LocalDateTime.ofEpochSecond(epochSecond), offsetBefore, offsetAfter);
ZoneOffsetTransitionRule.of(month, dom, dow, time, timeEndOfDay, timeDefinition, standardOffset, offsetBefore, offsetAfter);
IOException
- if I/O errors occurClassNotFoundException
- If the class for an object being
restored cannot be found.public void writeExternal(ObjectOutput out) throws IOException
Externalizable
interface to write the object.writeReplace
serialized form for the value of the type and sequence of values for the type.
IOException
- Includes any I/O exceptions that may occurprivate void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(2); // identifies a ZoneOffsetTransition
out.writeEpochSec(toEpochSecond);
out.writeOffset(offsetBefore);
out.writeOffset(offsetAfter);
long epochSecond
ZoneOffset offsetAfter
ZoneOffset offsetBefore
LocalDateTime transition
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(3); // identifies a ZoneOffsetTransition
final int timeSecs = (timeEndOfDay ? 86400 : time.toSecondOfDay());
final int stdOffset = standardOffset.getTotalSeconds();
final int beforeDiff = offsetBefore.getTotalSeconds() - stdOffset;
final int afterDiff = offsetAfter.getTotalSeconds() - stdOffset;
final int timeByte = (timeSecs % 3600 == 0 ? (timeEndOfDay ? 24 : time.getHour()) : 31);
final int stdOffsetByte = (stdOffset % 900 == 0 ? stdOffset / 900 + 128 : 255);
final int beforeByte = (beforeDiff == 0 || beforeDiff == 1800 || beforeDiff == 3600 ? beforeDiff / 1800 : 3);
final int afterByte = (afterDiff == 0 || afterDiff == 1800 || afterDiff == 3600 ? afterDiff / 1800 : 3);
final int dowByte = (dow == null ? 0 : dow.getValue());
int b = (month.getValue() << 28) + // 4 bits
((dom + 32) << 22) + // 6 bits
(dowByte << 19) + // 3 bits
(timeByte << 14) + // 5 bits
(timeDefinition.ordinal() << 12) + // 2 bits
(stdOffsetByte << 4) + // 8 bits
(beforeByte << 2) + // 2 bits
afterByte; // 2 bits
out.writeInt(b);
if (timeByte == 31) {
out.writeInt(timeSecs);
}
if (stdOffsetByte == 255) {
out.writeInt(stdOffset);
}
if (beforeByte == 3) {
out.writeInt(offsetBefore.getTotalSeconds());
}
if (afterByte == 3) {
out.writeInt(offsetAfter.getTotalSeconds());
}
byte dom
-1
is the last day of the month, -2
is the second
to last day, and so on.DayOfWeek dow
Month month
ZoneOffset offsetAfter
ZoneOffset offsetBefore
ZoneOffset standardOffset
LocalTime time
ZoneOffsetTransitionRule.TimeDefinition timeDefinition
boolean timeEndOfDay
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(1); // identifies a ZoneRules
out.writeInt(standardTransitions.length);
for (long trans : standardTransitions) {
Ser.writeEpochSec(trans, out);
}
for (ZoneOffset offset : standardOffsets) {
Ser.writeOffset(offset, out);
}
out.writeInt(savingsInstantTransitions.length);
for (long trans : savingsInstantTransitions) {
Ser.writeEpochSec(trans, out);
}
for (ZoneOffset offset : wallOffsets) {
Ser.writeOffset(offset, out);
}
out.writeByte(lastRules.length);
for (ZoneOffsetTransitionRule rule : lastRules) {
rule.writeExternal(out);
}
Epoch second values used for offsets are encoded in a variable length form to make the common cases put fewer bytes in the stream.
static void writeEpochSec(long epochSec, DataOutput out) throws IOException {
if (epochSec >= -4575744000L && epochSec < 10413792000L && epochSec % 900 == 0) { // quarter hours between 1825 and 2300
int store = (int) ((epochSec + 4575744000L) / 900);
out.writeByte((store >>> 16) & 255);
out.writeByte((store >>> 8) & 255);
out.writeByte(store & 255);
} else {
out.writeByte(255);
out.writeLong(epochSec);
}
}
ZoneOffset values are encoded in a variable length form so the common cases put fewer bytes in the stream.
static void writeOffset(ZoneOffset offset, DataOutput out) throws IOException {
final int offsetSecs = offset.getTotalSeconds();
int offsetByte = offsetSecs % 900 == 0 ? offsetSecs / 900 : 127; // compress to -72 to +72
out.writeByte(offsetByte);
if (offsetByte == 127) {
out.writeInt(offsetSecs);
}
}
ZoneOffsetTransitionRule[] lastRules
long[] savingsInstantTransitions
LocalDateTime[] savingsLocalTransitions
ZoneOffset[] standardOffsets
long[] standardTransitions
ZoneOffset[] wallOffsets
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
int
) of the deque,
followed by all of its elements (each an object reference) in
first-to-last order.IOException
- if an I/O error occursprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ArrayList
instance from a stream (that is,
deserializes it).ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
ArrayList
instance to a stream
(that is, serializes it).ArrayList
instance is emitted (int), followed by all of its elements
(each an Object
) in the proper order.IOException
- if an I/O error occursint size
Object[] a
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
BitSet
instance from a stream (i.e.,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
BitSet
instance to a stream (i.e.,
serialize it).IOException
long[] bits
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream stream) throws IOException
Calendar
would only write out its state data and
the current time, and not write any field data out, such as
fields[]
, isTimeSet
, areFieldsSet
,
and isSet[]
. nextStamp
also should not be part
of the persistent state. Unfortunately, this didn't happen before JDK 1.1
shipped. To be compatible with JDK 1.1, we will always have to write out
the field values and state flags. However, nextStamp
can be
removed from the serialization stream; this will probably happen in the
near future.IOException
boolean areFieldsSet
fields[]
are in sync with the currently set time.
If false, then the next attempt to get the value of a field will
force a recomputation of all fields from the current value of
time
.int[] fields
FIELD_COUNT
integers, with index values
ERA
through DST_OFFSET
.int firstDayOfWeek
SUNDAY
,
MONDAY
, etc. This is a locale-dependent value.boolean[] isSet
FIELD_COUNT
booleans, with index values
ERA
through DST_OFFSET
.boolean isTimeSet
time
is valid.
The time is made invalid by a change to an item of field[]
.Calendar.time
boolean lenient
True
if this calendar allows out-of-range field values during computation
of time
from fields[]
.Calendar.setLenient(boolean)
,
Calendar.isLenient()
int minimalDaysInFirstWeek
int nextStamp
stamp[]
, an internal array.
This actually should not be written out to the stream, and will probably
be removed from the stream in the near future. In the meantime,
a value of MINIMUM_USER_STAMP
should be used.int serialVersionOnStream
serialVersionOnStream
is written.long time
Calendar.isTimeSet
TimeZone zone
TimeZone
used by this calendar. Calendar
uses the time zone data to translate between locale and GMT time.Collection<E> c
Class<T> type
Object[] zeroLengthElementArray
NavigableMap<K,V> nm
NavigableSet<E> ns
Object element
int n
private Object readResolve()
private Object readResolve()
private Object readResolve()
private Object readResolve()
Comparator<T> cmp
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Object element
Object element
private void writeObject(ObjectOutputStream s) throws IOException
IOException
Collection<E> c
Object mutex
private Object readResolve()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
NavigableMap<K,V> nm
NavigableSet<E> ns
private Object writeReplace()
Collection<E> c
private Object readResolve()
NavigableMap<K,V> nm
NavigableSet<E> ns
private Object writeReplace()
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
Object[] array
field.IOException
- if an I/O error occursClassNotFoundException
- if a serialized class cannot be loadedInvalidObjectException
- if the count is negativeprivate Object readResolve() throws ObjectStreamException
InvalidObjectException
- if the tag value is illegal or if an exception
is thrown during creation of the collectionObjectStreamException
- if another serialization error has occurredprivate void writeObject(ObjectOutputStream oos) throws IOException
Object[] array
field.IOException
- if an I/O error occursint tag
List
, 2 for an immutable Set
, and 3 for
an immutable Map
. Any other value causes an
InvalidObjectException
to be thrown. The high
order 24 bits are zero when an instance is serialized,
and they are ignored when an instance is deserialized.
They can thus be used by future implementations without
causing compatibility issues.
The tag value also determines the interpretation of the
transient Object[] array
field.
For List
and Set
, the array's length is the size
of the collection, and the array contains the elements of the collection.
Null elements are not allowed. For Set
, duplicate elements
are not allowed.
For Map
, the array's length is twice the number of mappings
present in the map. The array length is necessarily even.
The array contains a succession of key and value pairs:
k1, v1, k2, v2, ..., kN, vN.
Nulls are not allowed,
and duplicate keys are not allowed.
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
getTime()
is emitted (long). This represents the offset from
January 1, 1970, 00:00:00 GMT in milliseconds.IOException
String flags
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
EnumMap
instance from a stream (i.e.,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
EnumMap
instance to a stream (i.e.,
serialize it).IOException
char c
String f
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
long gregorianCutover
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
HashMap
instance from a stream (i.e.,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
HashMap
instance to a stream (i.e.,
serialize it).IOException
float loadFactor
int threshold
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
HashSet
instance from a stream (that is,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
HashSet
instance to a stream (that is,
serialize it).HashMap
instance
(int), and its load factor (float) are emitted, followed by
the size of the set (the number of elements it contains)
(int), followed by all of its elements (each an Object) in
no particular order.IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
float loadFactor
int threshold
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IdentityHashMap
instance from a stream (i.e.,
deserializes it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IdentityHashMap
instance to a stream
(i.e., serializes it).int
), followed by the key (Object) and
value (Object) for each key-value mapping represented by the
IdentityHashMap. The key-value mappings are emitted in no
particular order.IOException
int size
int c
String flags
int p
int w
int _errIdx
boolean accessOrder
true
for access-order, false
for insertion-order.private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
LinkedList
instance from a stream
(that is, deserializes it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
LinkedList
instance to a stream
(that is, serializes it).IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
Locale
.IOException
ClassNotFoundException
IllformedLocaleException
private Object readResolve() throws ObjectStreamException
Locale
instance equivalent to
the deserialized Locale
. When serialized
language, country and variant fields read from the object data stream
are exactly "ja", "JP", "JP" or "th", "TH", "TH" and script/extensions
fields are empty, this method supplies UNICODE_LOCALE_EXTENSION
"ca"/"japanese" (calendar type is "japanese") or "nu"/"thai" (number script
type is "thai"). See Special Cases
for more information.ObjectStreamException
private void writeObject(ObjectOutputStream out) throws IOException
Locale
to the specified ObjectOutputStream
.IOException
String country
String extensions
int hashcode
String language
String script
String variant
String s
String s
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
PriorityQueue
instance from a stream
(that is, deserializes it).ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
Object
) in the proper order.IOException
- if an I/O error occursComparator<T> comparator
int size
Properties defaults
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
Random
instance from a stream (that is,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
Random
instance to a stream.IOException
boolean haveNextNextGaussian
double nextNextGaussian
long seed
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream stream) throws IOException
DOW_IN_MONTH_MODE
rules, in the required section, followed
by the full rules, in packed format, in the optional section. The
optional section will be ignored by JDK 1.1 code upon stream in.
Contents of the optional section: The length of a byte array is
emitted (int); this is 4 as of this release. The byte array of the given
length is emitted. The contents of the byte array are the true values of
the fields startDay
, startDayOfWeek
,
endDay
, and endDayOfWeek
. The values of these
fields in the required section are approximate values suited to the rule
mode DOW_IN_MONTH_MODE
, which is the only mode recognized by
JDK 1.1.
IOException
int dstSavings
If useDaylight
is false, this value is ignored.
int endDay
endMode == DOW_IN_MONTH
endDay
indicates the day of the month of
endMonth
on which daylight
saving time ends, from 1 to 28, 30, or 31, depending on the
endMonth
.
endMode != DOW_IN_MONTH
endDay
indicates which endDayOfWeek
in th
month endMonth
daylight
saving time ends on. For example, a value of +1 and a
endDayOfWeek
of Calendar.SUNDAY
indicates the
first Sunday of endMonth
. Likewise, +2 would indicate the
second Sunday, and -1 the last Sunday. A value of 0 is illegal.
If useDaylight
is false, this value is ignored.
int endDayOfWeek
Calendar.SUNDAY
and
Calendar.SATURDAY
inclusive.
If useDaylight
is false or
endMode == DAY_OF_MONTH
, this value is ignored.
int endMode
DOM_MODE
DOW_IN_MONTH_MODE
DOW_GE_DOM_MODE
DOW_LE_DOM_MODE
endDay
field.
If useDaylight
is false, this value is ignored.
int endMonth
Calendar.JANUARY
and
Calendar.UNDECIMBER
. This value must not equal
startMonth
.
If useDaylight
is false, this value is ignored.
int endTime
endTimeMode
.
If useDaylight
is false, this value is ignored.
int endTimeMode
WALL_TIME
,
STANDARD_TIME
, or UTC_TIME
.byte[] monthLength
int rawOffset
dstSavings
.int serialVersionOnStream
startMode
,
endMode
, and dstSavings
.
startTimeMode
and endTimeMode
.
serialVersionOnStream
is written.int startDay
startMode == DOW_IN_MONTH
startDay
indicates the day of the month of
startMonth
on which daylight
saving time starts, from 1 to 28, 30, or 31, depending on the
startMonth
.
startMode != DOW_IN_MONTH
startDay
indicates which startDayOfWeek
in the
month startMonth
daylight
saving time starts on. For example, a value of +1 and a
startDayOfWeek
of Calendar.SUNDAY
indicates the
first Sunday of startMonth
. Likewise, +2 would indicate the
second Sunday, and -1 the last Sunday. A value of 0 is illegal.
If useDaylight
is false, this value is ignored.
int startDayOfWeek
Calendar.SUNDAY
and
Calendar.SATURDAY
inclusive.
If useDaylight
is false or
startMode == DAY_OF_MONTH
, this value is ignored.
int startMode
DOM_MODE
DOW_IN_MONTH_MODE
DOW_GE_DOM_MODE
DOW_LE_DOM_MODE
startDay
field.
If useDaylight
is false, this value is ignored.
int startMonth
Calendar.JANUARY
and
Calendar.DECEMBER
inclusive. This value must not equal
endMonth
.
If useDaylight
is false, this value is ignored.
int startTime
startTimeMode
.
If useDaylight
is false, this value is ignored.
int startTimeMode
int startYear
AD
value. If this value is less than 1 then daylight saving time is observed
for all AD
years.
If useDaylight
is false, this value is ignored.
boolean useDaylight
String ID
TimeZone
. This is a
programmatic identifier used internally to look up TimeZone
objects from the system table and also to map them to their localized
display names. ID
values are unique in the system
table but may not be for dynamically created zones.private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
TreeMap
instance from a stream (i.e.,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
TreeMap
instance to a stream (i.e.,
serialize it).IOException
Comparator<T> comparator
Comparator<T> reverseComparator
boolean fromStart
Object hi
boolean hiInclusive
Object lo
boolean loInclusive
TreeMap<K,V> m
boolean toEnd
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
TreeSet
instance from a stream (that is,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
TreeSet
instance to a stream (that is,
serialize it).null
if it obeys its elements' natural ordering
(Object), followed by the size of the set (the number of
elements it contains) (int), followed by all of its
elements (each an Object) in order (as determined by the
set's Comparator, or by the elements' natural ordering if
the set has no Comparator).IOException
String s
String flags
long leastSigBits
long mostSigBits
private void writeObject(ObjectOutputStream s) throws IOException
Vector
instance to a stream
(that is, serializes it).
This method performs synchronization to ensure the consistency
of the serialized data.IOException
- if an I/O error occursint capacityIncrement
int elementCount
Vector
object.
Components elementData[0]
through
elementData[elementCount-1]
are the actual items.Object[] elementData
Any array elements following the last element in the Vector are null.
int count
Object[] items
ReentrantLock lock
Condition notEmpty
Condition notFull
int putIndex
int takeIndex
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
ConcurrentHashMap
instance to a
stream (i.e., serializes it).IOException
- if an I/O error occursint segmentMask
int segmentShift
Segment[] segments
Object value
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
E
) in
the proper order, followed by a nullIOException
- if an I/O error occursprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
E
) in
the proper order, followed by a nullIOException
- if an I/O error occursprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
null
. The key-value mappings are emitted in key-order
(as determined by the Comparator, or by the keys' natural
ordering if no Comparator).IOException
- if an I/O error occursComparator<T> comparator
Object hi
boolean hiInclusive
boolean isDescending
Object lo
boolean loInclusive
ConcurrentSkipListMap<K,V> m
ConcurrentNavigableMap<K,V> m
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
IOException
- if an I/O error occursCopyOnWriteArrayList<E> al
CountedCompleter<T> completer
int pending
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
null
if noneIOException
- if an I/O error occursint status
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
Object
) in the proper order, followed by a nullIOException
- if an I/O error occursint capacity
ReentrantLock lock
Condition notEmpty
Condition notFull
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
Object
) in the proper order,
followed by a nullIOException
- if an I/O error occursint capacity
AtomicInteger count
Condition notEmpty
Condition notFull
ReentrantLock putLock
ReentrantLock takeLock
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
E
) in
the proper order, followed by a nullIOException
- if an I/O error occursprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
IOException
- if an I/O error occursReentrantLock lock
Condition notEmpty
PriorityQueue<E> q
Object result
java.util.concurrent.Semaphore.Sync sync
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
IOException
- if an I/O error occursReentrantLock qlock
java.util.concurrent.SynchronousQueue.WaitQueue waitingConsumers
java.util.concurrent.SynchronousQueue.WaitQueue waitingProducers
private Object readResolve()
current
thread's ThreadLocalRandom
.private void writeObject(ObjectOutputStream s) throws IOException
ThreadLocalRandom
to a stream (that is, serializes it).IOException
- if an I/O error occursboolean initialized
long rnd
int value
int value
int[] array
long value
long[] array
Object value
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursObject[] array
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
DoubleBinaryOperator function
long identity
private Object readResolve()
DoubleAccumulator
object with initial state
held by this proxy.DoubleBinaryOperator function
long identity
Double.doubleToRawLongBits(double)
. The original identity
can be recovered using Double.longBitsToDouble(long)
.double value
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
private Object readResolve()
DoubleAdder
object with initial state
held by this proxy.double value
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
LongBinaryOperator function
long identity
private Object readResolve()
LongAccumulator
object with initial state
held by this proxy.LongBinaryOperator function
long identity
long value
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
private Object readResolve()
LongAdder
object with initial state
held by this proxy.long value
long state
int state
java.util.concurrent.locks.ReentrantLock.Sync sync
ReentrantReadWriteLock.ReadLock readerLock
java.util.concurrent.locks.ReentrantReadWriteLock.Sync sync
ReentrantReadWriteLock.WriteLock writerLock
java.util.concurrent.locks.ReentrantReadWriteLock.Sync sync
java.util.concurrent.locks.ReentrantReadWriteLock.Sync sync
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
Level level
String loggerName
String message
long millis
Instant.ofEpochSecond(millis/1000, (millis % 1000) * 1000_000 + nanoAdjustment)
int nanoAdjustment
Instant.ofEpochSecond(millis/1000, (millis % 1000) * 1000_000 + nanoAdjustment)
Since: 9
String resourceBundleName
long sequenceNumber
String sourceClassName
String sourceMethodName
int threadID
Throwable thrown
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
int flags
String pattern
public void readExternal(ObjectInput is) throws IOException, ClassNotFoundException
DataFlavor
from a Serialized state.IOException
- if I/O errors occurClassNotFoundException
- If the class for an object being
restored cannot be found.public void writeExternal(ObjectOutput os) throws IOException
DataFlavor
.IOException
- Includes any I/O exceptions that may occurpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
ClassNotFoundException
- If the class for an object being
restored cannot be found.IOException
- if I/O errors occurpublic void writeExternal(ObjectOutput out) throws IOException
IOException
- Includes any I/O exceptions that may occurprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
NullPointerException
- if s is null.IOException
ClassNotFoundException
byte[] encodedParams
That is, cipher.getParameters().getEncoded()
.
byte[] encryptedContent
String paramsAlg
String sealAlg
String algorithm
byte[] key
Node offendingNode
Node
that led to the parsing error, or
null
.private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- for a missing class during
deserializationIOException
- for an IO problem during deserializationprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- for a missing class during
deserializationIOException
- for an IO problem during deserializationString attr
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Object val
attribute.toString()
String op