|
JSR-62 (Final) | ||||||||||
PREV NEXT | FRAMES NO FRAMES |
Package java.applet |
Class java.applet.Applet implements Serializable |
Package java.awt |
Class java.awt.AWTError implements Serializable |
Class java.awt.AWTEvent implements Serializable |
Serialized Fields |
int id
boolean consumed
Class java.awt.AWTException implements Serializable |
Class java.awt.AWTPermission implements Serializable |
Class java.awt.BorderLayout implements Serializable |
Serialized Fields |
int hgap
hgap
.
BorderLayout.getHgap()
,
setHgap()
int vgap
vgap
.
BorderLayout.getVgap()
,
setVgap()
Component north
#getChild
,
BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object)
,
#getLayoutAllignment
,
BorderLayout.removeLayoutComponent(java.awt.Component)
Component west
#getChild
,
BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object)
,
#getLayoutAllignment
,
BorderLayout.removeLayoutComponent(java.awt.Component)
Component east
#getChild
,
BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object)
,
#getLayoutAllignment
,
BorderLayout.removeLayoutComponent(java.awt.Component)
Component south
#getChild
,
BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object)
,
#getLayoutAllignment
,
BorderLayout.removeLayoutComponent(java.awt.Component)
Component center
#getChild
,
BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object)
,
#getLayoutAllignment
,
BorderLayout.removeLayoutComponent(java.awt.Component)
Class java.awt.Button implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
java.awt.Component.itemListenerK
Serialized Fields |
String label
String actionCommand
int buttonSerializedDataVersion
Class java.awt.Canvas implements Serializable |
Class java.awt.CardLayout implements Serializable |
Serialized Fields |
Hashtable tab
int hgap
int vgap
Class java.awt.Checkbox implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
java.awt.Component.itemListenerK
Serialized Fields |
String label
Checkbox.getLabel()
,
setLabel()
boolean state
Checkbox.getState()
,
setState()
CheckboxGroup group
getCheckBoxGroup()
,
setCheckBoxGroup()
int checkboxSerializedDataVersion
Class java.awt.CheckboxGroup implements Serializable |
Serialized Fields |
Checkbox selectedCheckbox
CheckboxGroup.getCurrent()
,
setCurrent()
Class java.awt.CheckboxMenuItem implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
java.awt.Component.itemListenerK
Serialized Fields |
boolean state
int checkboxMenuItemSerializedDataVersion
Class java.awt.Choice implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
java.awt.Component.itemListenerK
Serialized Fields |
Vector pItems
add()
,
addItem()
,
getItem()
,
Choice.getItemCount()
,
insert()
,
remove()
int selectedIndex
getSelectedItem
,
select()
int choiceSerializedDataVersion
Class java.awt.Color implements Serializable |
Serialized Fields |
int value
Color.getRGB()
float[] frgbvalue
ColorSpace
as
float
components (no alpha).
If null
after object construction, this must be an
sRGB color constructed with 8-bit precision, so compute from the
int
color value.
Color.getRGBColorComponents(float[])
,
Color.getRGBComponents(float[])
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.
Color.getRGBColorComponents(float[])
,
Color.getRGBComponents(float[])
float falpha
float
component.
If frgbvalue
is null
, this is not valid
data, so compute from the int
color value.
Color.getRGBComponents(float[])
,
Color.getComponents(float[])
Class java.awt.Component implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
removeActionListener()
,
addActionListener()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
java.awt.Component.itemListenerK
Serialized Fields |
int x
Component.getLocation()
int y
Component.getLocation()
int width
Component.getSize()
int height
Component.getSize()
Color foreground
Component.getForeground()
,
Component.setForeground(java.awt.Color)
Color background
Component.getBackground()
,
Component.setBackground(java.awt.Color)
Font font
Component.getFont()
,
Component.setFont(java.awt.Font)
Font peerFont
Cursor cursor
Component.getCursor()
,
Component.setCursor(java.awt.Cursor)
Locale locale
Component.getLocale()
,
Component.setLocale(java.util.Locale)
boolean visible
Component.isVisible()
,
Component.setVisible(boolean)
boolean enabled
Component.isEnabled()
,
Component.setEnabled(boolean)
boolean valid
Component.isValid()
,
Component.validate()
,
Component.invalidate()
boolean hasFocus
Component.hasFocus()
,
Component.processFocusEvent(java.awt.event.FocusEvent)
Vector popups
add()
String name
Component.getName()
,
Component.setName(String)
boolean nameExplicitlySet
Component.getName()
,
Component.setName(String)
Dimension minSize
Dimension prefSize
boolean newEventsOnly
dispatchEvent()
long eventMask
enableInputMethods()
PropertyChangeSupport changeSupport
addPropertyChangeListener
,
removePropertyChangeListener
,
firePropertyChange
boolean isPacked
int componentSerializedDataVersion
Class java.awt.Container implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
java.awt.Component.itemListenerK
Serialized Fields |
int ncomponents
getComponent()
,
Container.getComponents()
,
Container.getComponentCount()
Component[] component
add()
,
Container.getComponents()
LayoutManager layoutMgr
Container.doLayout()
,
setLayout()
,
Container.getLayout()
LightweightDispatcher dispatcher
Dimension maxSize
int containerSerializedDataVersion
Class java.awt.Cursor implements Serializable |
Serialized Fields |
int type
DEFAULT_CURSOR
.
Cursor.getType()
Class java.awt.Dialog implements Serializable |
Serialized Fields |
boolean resizable
setResizable()
boolean modal
Dialog.isModal()
,
setModal()
String title
Dialog.getTitle()
,
setTitle()
Class java.awt.Dimension implements Serializable |
Serialized Fields |
int width
Dimension.getSize()
,
Dimension.setSize(java.awt.Dimension)
int height
Dimension.getSize()
,
Dimension.setSize(java.awt.Dimension)
Class java.awt.Event implements Serializable |
Serialized Fields |
Object target
EventObject.getSource()
long when
InputEvent.getWhen()
int id
Event
variables are relevant for the event.
This has been replaced by AWTEvent.getID()
AWTEvent.getID()
int x
MouseEvent.getX()
int y
MouseEvent.getY()
int key
KeyEvent.getKeyCode()
int modifiers
InputEvent.getModifiers()
int clickCount
MOUSE_DOWN
events, this field indicates the
number of consecutive clicks. For other events, its value is
0
.
This field has been replaced by MouseEvent.getClickCount().
MouseEvent.getClickCount().
Object arg
arg
has been replaced b event specific property.
Event evt
EventQueue
boolean consumed
isConsumed()
Class java.awt.FileDialog implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
Serialized Fields |
int mode
String dir
String file
FilenameFilter filter
Class java.awt.FlowLayout implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
Serialized Fields |
int align
align
is the proprty that determines
how each row distributes empty space.
It can be one of the following three values :
LEFT
RIGHT
CENTER
FlowLayout.getAlignment()
,
FlowLayout.setAlignment(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
FlowLayout.getAlignment()
,
FlowLayout.setAlignment(int)
int hgap
getHgap
,
setHgap
int vgap
getVgap
,
setVgap
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..
Class java.awt.Font implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
removeActionListener()
,
addActionListener()
private void writeObject(ObjectOutputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
java.awt.Component.itemListenerK
Serialized Fields |
String name
Font
, as passed to the
constructor.
Font.getName()
int style
Font
, as passed to the constructor.
This style can be PLAIN, BOLD, ITALIC, or BOLD+ITALIC.
Font.getStyle()
int size
Font
, rounded to integer.
Font.getSize()
int fontSerializedDataVersion
Class java.awt.FontMetrics implements Serializable |
Serialized Fields |
Font font
Font
from which the font metrics are
created.
This cannot be null.
FontMetrics.getFont()
Class java.awt.Frame implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
removeActionListener()
,
addActionListener()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
java.awt.Component.itemListenerK
Serialized Fields |
String title
title
can be null and if
this is the case the title
= "".
Frame.getTitle()
,
setTitle()
Image icon
icon
is the graphical way we can
represent the frame.
icon
can be null, but obviously if
you try to set the icon image icon
cannot be null.
Frame.getIconImage()
,
setIconImage()
MenuBar menuBar
menuBar
= null
the frame will not have a menubar.
Frame.getMenuBar()
,
setMenuBar()
boolean resizable
resizable
will be true if the frame is
resizable, otherwise it will be false.
Frame.isResizable()
boolean mbManagement
mbManagement
is only used by the Motif implementation.
int state
int frameSerializedDataVersion
Class java.awt.GridBagConstraints implements Serializable |
Serialized Fields |
int gridx
gridx=0
. The value
RELATIVE
specifies that the component be placed just
to the right of 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.
GridBagConstraints.clone()
,
GridBagConstraints.gridy
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.
GridBagConstraints.clone()
,
GridBagConstraints.gridx
int gridwidth
Use REMAINDER
to specify that the component be the
last one in its row. Use RELATIVE
to specify that the
component be the next-to-last one in its row.
gridwidth should be non-negative and the default value is 1.
GridBagConstraints.clone()
,
GridBagConstraints.gridheight
int gridheight
Use REMAINDER
to specify that the component be the
last one in its column. Use RELATIVE
to specify that
the component be the next-to-last one in its column.
gridheight should be a non-negative value and the default value is 1.
GridBagConstraints.clone()
,
GridBagConstraints.gridwidth
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.
GridBagConstraints.clone()
,
GridBagConstraints.weighty
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.
GridBagConstraints.clone()
,
GridBagConstraints.weightx
int anchor
CENTER
,
NORTH
, NORTHEAST
, EAST
,
SOUTHEAST
, SOUTH
, SOUTHWEST
,
WEST
, and NORTHWEST
.
The default value is CENTER
.
GridBagConstraints.clone()
int fill
The following values are valid for fill
:
NONE
: Do not resize the component.
HORIZONTAL
: Make the component wide enough to fill
its display area horizontally, but do not change its height.
VERTICAL
: Make the component tall enough to fill its
display area vertically, but do not change its width.
BOTH
: Make the component fill its display area
entirely.
The default value is NONE
.
GridBagConstraints.clone()
Insets insets
The default value is new Insets(0, 0, 0, 0)
.
GridBagConstraints.clone()
int ipadx
(ipadx * 2)
pixels.
The default value is 0
.
GridBagConstraints.clone()
,
GridBagConstraints.ipady
int ipady
(ipady * 2)
pixels.
The default value is 0.
GridBagConstraints.clone()
,
GridBagConstraints.ipadx
int tempX
int tempY
int tempWidth
int tempHeight
int minWidth
ipady
, where the default will be 0.
ipady
int minHeight
ipadx
, where the default will be 0.
ipadx
Class java.awt.GridBagLayout implements Serializable |
Serialized Fields |
Hashtable comptable
GridBagConstraints
GridBagConstraints defaultConstraints
defaultConstraints
.
GridBagLayout.getConstraints(Component)
,
GridBagLayout.setConstraints(Component, GridBagConstraints)
,
GridBagLayout.lookupConstraints(Component)
int[] columnWidths
GridBagLayout.getLayoutDimensions()
int[] rowHeights
GridBagLayout.getLayoutDimensions()
double[] columnWeights
double[] rowWeights
Class java.awt.GridLayout implements Serializable |
Serialized Fields |
int hgap
GridLayout.getHgap()
,
setHgap()
int vgap
GridLayout.getVgap()
,
setVgap()
int rows
GridLayout.getRows()
,
setRows()
int cols
GridLayout.getColumns()
,
setColumns()
Class java.awt.IllegalComponentStateException implements Serializable |
Class java.awt.Insets implements Serializable |
Serialized Fields |
int top
Insets.clone()
int left
Insets.clone()
int bottom
Insets.clone()
int right
Insets.clone()
Class java.awt.Label implements Serializable |
Serialized Fields |
String text
Label.getText()
,
setText()
int alignment
Label.getAlignment()
,
setAlignment()
Class java.awt.List implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
removeActionListener()
,
addActionListener()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
java.awt.Component.itemListenerK
Serialized Fields |
Vector items
addItem()
,
getItem()
int rows
List.getRows()
boolean multipleMode
multipleMode
is a variable that will
be set to true
if a list component is to be set to
multiple selection mode, that is where the user can
select more than one item in a list at one time.
multipleMode
will be set to false if the
list component is set to single selection, that is where
the user can only select one item on the list at any
one time.
List.isMultipleMode()
,
setMultipleMode()
int[] selected
selected
is an array that will contain
the indices of items that have been selected.
List.getSelectedIndexes()
,
List.getSelectedIndex()
int visibleIndex
makeVisible()
int listSerializedDataVersion
Class java.awt.MediaTracker implements Serializable |
Serialized Fields |
Component target
MediaTracker()
MediaEntry head
addImage()
,
removeImage()
Class java.awt.Menu implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
removeActionListener()
,
addActionListener()
private void writeObject(ObjectOutputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
java.awt.Component.itemListenerK
Serialized Fields |
Vector items
Menu.countItems()
boolean tearOff
true
if the menu has the tear off
property and it will be set to false>
if it does not.
A torn off menu can be deleted by a user when
it is no longer needed.
Menu.isTearOff()
boolean isHelpMenu
true
if the Menu in question is actually a help
menu. Otherwise it will be set to
false
.
int menuSerializedDataVersion
Class java.awt.MenuBar implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
removeActionListener()
,
addActionListener()
private void writeObject(ObjectOutputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
java.awt.Component.itemListenerK
Serialized Fields |
Vector menus
MenuBar.countMenus()
Menu helpMenu
MenuBar.getHelpMenu()
,
setHelpMenu()
int menuBarSerializedDataVersion
Class java.awt.MenuComponent implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
Serialized Fields |
Font font
setFont()
,
MenuComponent.getFont()
String name
MenuComponent.getName()
,
setName()
boolean nameExplicitlySet
setName()
boolean newEventsOnly
dispatchEvent()
Class java.awt.MenuItem implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
removeActionListener()
,
addActionListener()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
java.awt.Component.itemListenerK
Serialized Fields |
boolean enabled
enabled
will
be set to true. Else enabled
will
be set to false.
MenuItem.isEnabled()
,
setEnabled()
String label
label
is the label of a menu item.
It can be any string.
MenuItem.getLabel()
,
setLabel()
String actionCommand
actionCommand
is the label of the menu item, unless it has been
set using setActionCommand.
setActionCommand()
,
MenuItem.getActionCommand()
long eventMask
MenuShortcut shortcut
MenuItem.getShortcut()
,
setShortcut()
,
MenuItem.deleteShortcut()
int menuItemSerializedDataVersion
Class java.awt.MenuShortcut implements Serializable |
Serialized Fields |
int key
MenuShortcut.getKey()
,
MenuShortcut.usesShiftModifier()
boolean usesShift
MenuShortcut.usesShiftModifier()
Class java.awt.Panel implements Serializable |
Class java.awt.Point implements Serializable |
Serialized Fields |
int x
Point.getLocation()
,
Point.move(int, int)
int y
Point.getLocation()
,
Point.move(int, int)
Class java.awt.Polygon implements Serializable |
Serialized Fields |
int npoints
Polygon.addPoint(int, int)
int[] xpoints
Polygon.addPoint(int, int)
int[] ypoints
Polygon.addPoint(int, int)
Rectangle bounds
Polygon.getBoundingBox()
,
Polygon.getBounds()
Class java.awt.PopupMenu implements Serializable |
Class java.awt.Rectangle implements Serializable |
Serialized Fields |
int x
Rectangle
.
Rectangle.setLocation(int, int)
,
Rectangle.getLocation()
int y
Rectangle
.
Rectangle.setLocation(int, int)
,
Rectangle.getLocation()
int width
Rectangle
.
Rectangle.setSize(int, int)
,
Rectangle.getSize()
int height
Rectangle
.
Rectangle.setSize(int, int)
,
Rectangle.getSize()
Class java.awt.Scrollbar implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
removeActionListener()
,
addActionListener()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
java.awt.Component.itemListenerK
Serialized Fields |
int value
minimum
or less that maximum
Scrollbar.getValue()
,
setValue()
int maximum
minimum
value.
Scrollbar.getMaximum()
,
setMaximum()
int minimum
minimum
value.
Scrollbar.getMinimum()
,
setMinimum()
int visibleAmount
Scrollbar.getVisibleAmount()
,
setVisibleAmount()
int orientation
VERTICAL
or
HORIZONTAL
only.
Scrollbar.getOrientation()
,
setOrientation()
int lineIncrement
setLineIncrement()
,
Scrollbar.getLineIncrement()
int pageIncrement
setPageIncrement()
,
Scrollbar.getPageIncrement()
int scrollbarSerializedDataVersion
Class java.awt.ScrollPane implements Serializable |
Serialized Fields |
int scrollbarDisplayPolicy
ScrollPane.getScrollbarDisplayPolicy()
ScrollPaneAdjustable vAdjustable
ScrollPane.getVAdjustable()
,
Adjustable
ScrollPaneAdjustable hAdjustable
ScrollPane.getHAdjustable()
,
Adjustable
Class java.awt.SystemColor implements Serializable |
Class java.awt.TextArea implements Serializable |
Serialized Fields |
int rows
TextArea.getRows()
,
setRows()
int columns
TextArea.getColumns()
,
setColumns()
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
Class java.awt.TextComponent implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
removeTextListener()
,
addTextListener()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
java.awt.Component.textListenerK
Serialized Fields |
String text
setText()
,
TextComponent.getText()
boolean editable
true
if the text component
is editable and false
if not.
TextComponent.isEditable()
int selectionStart
TextComponent.getSelectionStart()
,
setSelectionStart()
int selectionEnd
TextComponent.getSelectionEnd()
,
setSelectionEnd()
int textComponentSerializedDataVersion
Class java.awt.TextField implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
removeActionListener()
,
addActionListener()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
java.awt.Component.actionListenerK
Serialized Fields |
int columns
setColumns()
,
TextField.getColumns()
char echoChar
0
.
TextField.getEchoChar()
,
setEchoChar()
,
TextField.echoCharIsSet()
int textFieldSerializedDataVersion
Class java.awt.Window implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
removeActionListener()
,
addActionListener()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,
java.awt.Component.itemListenerK
,
java.awt.Component.ownedWindowK
Serialized Fields |
String warningString
Window.getWarningString()
int state
Window.show()
FocusManager focusMgr
int windowSerializedDataVersion
Package java.awt.color |
Class java.awt.color.ColorSpace implements Serializable |
Serialized Fields |
int type
int numComponents
Package java.awt.datatransfer |
Class java.awt.datatransfer.DataFlavor implements Serializable |
Serialization Methods |
public void readExternal(ObjectInput is) throws IOException, ClassNotFoundException
public void writeExternal(ObjectOutput os) throws IOException
Class java.awt.datatransfer.UnsupportedFlavorException implements Serializable |
Package java.awt.event |
Class java.awt.event.ActionEvent implements Serializable |
Serialized Fields |
String actionCommand
ActionEvent.getActionCommand()
int modifiers
ActionEvent.getModifiers()
Class java.awt.event.AdjustmentEvent implements Serializable |
Serialized Fields |
Adjustable adjustable
AdjustmentEvent.getAdjustable()
int value
value
will contain the new value of the
adjustable object. This value will always be in a
range associated adjustable object.
AdjustmentEvent.getValue()
int adjustmentType
adjustmentType
describes how the adjustable
object value has changed.
This value can be increased/decreased by a block or unit amount
where the block is associated with page increments/decrements,
and a unit is associated with line increments/decrements.
AdjustmentEvent.getAdjustmentType()
Class java.awt.event.ComponentEvent implements Serializable |
Class java.awt.event.ContainerEvent implements Serializable |
Serialized Fields |
Component child
getChild
Class java.awt.event.FocusEvent implements Serializable |
Serialized Fields |
boolean temporary
FocusEvent.isTemporary()
Class java.awt.event.InputEvent implements Serializable |
Serialized Fields |
long when
InputEvent.getWhen()
int modifiers
InputEvent.getModifiers()
,
MouseEvent
Class java.awt.event.InvocationEvent implements Serializable |
Serialized Fields |
Runnable runnable
Object notifier
boolean catchExceptions
Exception exception
Class java.awt.event.ItemEvent implements Serializable |
Serialized Fields |
Object item
ItemEvent.getItem()
int stateChange
stateChange
indicates whether the item
was selected or deselected.
ItemEvent.getStateChange()
Class java.awt.event.KeyEvent implements Serializable |
Serialized Fields |
int keyCode
KeyEvent.getKeyCode()
,
setKeyCode()
char keyChar
keyChar
is a valid unicode character
that is fired by a key or a key combination on
a keyboard.
KeyEvent.getKeyChar()
,
setKeyChar()
Class java.awt.event.MouseEvent implements Serializable |
Serialized Fields |
int x
MouseEvent.getX()
int y
MouseEvent.getY()
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()
Class java.awt.event.PaintEvent implements Serializable |
Serialized Fields |
Rectangle updateRect
Rectangle
,
setUpdateRect()
,
PaintEvent.getUpdateRect()
Class java.awt.event.TextEvent implements Serializable |
Class java.awt.event.WindowEvent implements Serializable |
Package java.awt.image |
Class java.awt.image.RasterFormatException implements Serializable |
Package java.beans |
Class java.beans.PropertyChangeEvent implements Serializable |
Serialized Fields |
String propertyName
Object newValue
Object oldValue
Object propagationId
#getPropagationId.
Class java.beans.PropertyChangeSupport implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws 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
Serialized Fields |
Hashtable children
Object source
int propertyChangeSupportSerializedDataVersion
Class java.beans.PropertyVetoException implements Serializable |
Serialized Fields |
PropertyChangeEvent evt
Class java.beans.VetoableChangeSupport implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws 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
Serialized Fields |
Hashtable children
Object source
int vetoableChangeSupportSerializedDataVersion
Package java.math |
Class java.math.BigDecimal implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
Serialized Fields |
BigInteger intVal
BigDecimal.unscaledValue()
int scale
BigDecimal.scale()
Class java.math.BigInteger implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private Object writeReplace()
Serialized Fields |
int signum
byte[] magnitude
int bitCount
BigInteger.bitCount()
int bitLength
BigInteger.bitLength()
int lowestSetBit
BigInteger.getLowestSetBit()
int firstNonzeroByteNum
Package java.rmi |
Class java.rmi.AccessException implements Serializable |
Class java.rmi.AlreadyBoundException implements Serializable |
Class java.rmi.NotBoundException implements Serializable |
Class java.rmi.RemoteException implements Serializable |
Serialized Fields |
Throwable detail
Class java.rmi.UnexpectedException implements Serializable |
Package javax.microedition.xlet |
Class javax.microedition.xlet.UnavailableContainerException implements Serializable |
Class javax.microedition.xlet.XletStateChangeException implements Serializable |
Package javax.microedition.xlet.ixc |
Class javax.microedition.xlet.ixc.StubException implements Serializable |
Package java.io |
Class java.io.CharConversionException implements Serializable |
Class java.io.EOFException implements Serializable |
Class java.io.File implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
Serialized Fields |
String path
Class java.io.FileNotFoundException implements Serializable |
Class java.io.FilePermissionCollection implements Serializable |
Serialized Fields |
Vector permissions
Class java.io.InterruptedIOException implements Serializable |
Serialized Fields |
int bytesTransferred
Class java.io.InvalidClassException implements Serializable |
Serialized Fields |
String classname
Class java.io.InvalidObjectException implements Serializable |
Class java.io.IOException implements Serializable |
Class java.io.NotActiveException implements Serializable |
Class java.io.NotSerializableException implements Serializable |
Class java.io.ObjectStreamClass implements Serializable |
Serialization Overview |
TC_CLASSDESC className, serialVersionUID, flags, length, list of field descriptions. FIELDNAME TYPES DESCRIPTION -------------------------------------- className primitive data String Fully qualified class name. serialVersionUID long Stream Unique Identifier for compatible classes with same base class name. flags byte Attribute bit fields defined inThe first time the class descriptor is written into the stream, a new handle is generated. Future references to the class descriptor are written as references to the initial class descriptor instance.java.io.ObjectStreamConstants.SC_*
. length short The number of field descriptions to follow. fieldDescription (byte, primitive data String, String Object) A pseudo-externalized format of classjava.io.ObjectStreamField
. Consists of typeCode, fieldName, and, if a nonPrimitive typecode, a fully qualified class name. SeeClass.getName
method for the typecode byte encodings.
ObjectOutputStream.writeUTF(java.lang.String)
Serialized Fields |
Class java.io.ObjectStreamException implements Serializable |
Class java.io.OptionalDataException implements Serializable |
Serialized Fields |
int length
boolean eof
Class java.io.SerializablePermission implements Serializable |
Serialized Fields |
String actions
Class java.io.StreamCorruptedException implements Serializable |
Class java.io.SyncFailedException implements Serializable |
Class java.io.UnsupportedEncodingException implements Serializable |
Class java.io.UTFDataFormatException implements Serializable |
Class java.io.WriteAbortedException implements Serializable |
Serialized Fields |
Exception detail
Package java.lang |
Class java.lang.AbstractMethodError implements Serializable |
Class java.lang.ArithmeticException implements Serializable |
Class java.lang.ArrayIndexOutOfBoundsException implements Serializable |
Class java.lang.ArrayStoreException implements Serializable |
Class java.lang.Boolean implements Serializable |
Serialized Fields |
boolean value
Class java.lang.Byte implements Serializable |
Serialized Fields |
byte value
Class java.lang.Character implements Serializable |
Serialized Fields |
char value
Class java.lang.Class implements Serializable |
Serialization Overview |
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
Serialized Fields |
Class java.lang.ClassCastException implements Serializable |
Class java.lang.ClassCircularityError implements Serializable |
Class java.lang.ClassFormatError implements Serializable |
Class java.lang.ClassNotFoundException implements Serializable |
Serialized Fields |
Throwable ex
Class java.lang.CloneNotSupportedException implements Serializable |
Class java.lang.Double implements Serializable |
Serialized Fields |
double value
Class java.lang.Error implements Serializable |
Class java.lang.Exception implements Serializable |
Class java.lang.ExceptionInInitializerError implements Serializable |
Serialized Fields |
Throwable exception
Class java.lang.Float implements Serializable |
Serialized Fields |
float value
Class java.lang.IllegalAccessError implements Serializable |
Class java.lang.IllegalAccessException implements Serializable |
Class java.lang.IllegalArgumentException implements Serializable |
Class java.lang.IllegalMonitorStateException implements Serializable |
Class java.lang.IllegalStateException implements Serializable |
Class java.lang.IllegalThreadStateException implements Serializable |
Class java.lang.IncompatibleClassChangeError implements Serializable |
Class java.lang.IndexOutOfBoundsException implements Serializable |
Class java.lang.InstantiationError implements Serializable |
Class java.lang.InstantiationException implements Serializable |
Class java.lang.Integer implements Serializable |
Serialized Fields |
int value
Class java.lang.InternalError implements Serializable |
Class java.lang.InterruptedException implements Serializable |
Class java.lang.LinkageError implements Serializable |
Class java.lang.Long implements Serializable |
Serialized Fields |
long value
Class java.lang.NegativeArraySizeException implements Serializable |
Class java.lang.NoClassDefFoundError implements Serializable |
Class java.lang.NoSuchFieldError implements Serializable |
Class java.lang.NoSuchFieldException implements Serializable |
Class java.lang.NoSuchMethodError implements Serializable |
Class java.lang.NoSuchMethodException implements Serializable |
Class java.lang.NullPointerException implements Serializable |
Class java.lang.Number implements Serializable |
Class java.lang.NumberFormatException implements Serializable |
Class java.lang.OutOfMemoryError implements Serializable |
Class java.lang.RuntimeException implements Serializable |
Class java.lang.RuntimePermission implements Serializable |
Class java.lang.SecurityException implements Serializable |
Class java.lang.Short implements Serializable |
Serialized Fields |
short value
Class java.lang.StackOverflowError implements Serializable |
Class java.lang.String implements Serializable |
Serialization Overview |
TC_STRING
(utf String)
The String is written by method DataOutput.writeUTF
.
A new handle is generated to refer to all future references to the
string instance within the stream.
Serialized Fields |
Class java.lang.StringBuffer implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
Serialized Fields |
char[] value
int count
boolean shared
Class java.lang.StringIndexOutOfBoundsException implements Serializable |
Class java.lang.ThreadDeath implements Serializable |
Class java.lang.Throwable implements Serializable |
Serialized Fields |
String detailMessage
Class java.lang.UnknownError implements Serializable |
Class java.lang.UnsatisfiedLinkError implements Serializable |
Class java.lang.UnsupportedClassVersionError implements Serializable |
Class java.lang.UnsupportedOperationException implements Serializable |
Class java.lang.VerifyError implements Serializable |
Class java.lang.VirtualMachineError implements Serializable |
Package java.lang.reflect |
Class java.lang.reflect.InvocationTargetException implements Serializable |
Serialized Fields |
Throwable target
Class java.lang.reflect.Proxy implements Serializable |
Serialized Fields |
InvocationHandler h
Class java.lang.reflect.ReflectPermission implements Serializable |
Class java.lang.reflect.UndeclaredThrowableException implements Serializable |
Serialized Fields |
Throwable undeclaredThrowable
Package java.net |
Class java.net.BindException implements Serializable |
Class java.net.ConnectException implements Serializable |
Class java.net.InetAddress implements Serializable |
Serialized Fields |
String hostName
int address
int family
Class java.net.MalformedURLException implements Serializable |
Class java.net.NetPermission implements Serializable |
Class java.net.NoRouteToHostException implements Serializable |
Class java.net.ProtocolException implements Serializable |
Class java.net.SocketException implements Serializable |
Class java.net.SocketPermissionCollection implements Serializable |
Serialized Fields |
Vector permissions
Class java.net.UnknownHostException implements Serializable |
Class java.net.UnknownServiceException implements Serializable |
Class java.net.URL implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
Serialized Fields |
String protocol
String host
int port
String file
String authority
String ref
int hashCode
Package java.security |
Class java.security.AccessControlException implements Serializable |
Serialized Fields |
Permission perm
Class java.security.AllPermissionCollection implements Serializable |
Serialized Fields |
boolean all_allowed
Class java.security.BasicPermissionCollection implements Serializable |
Serialized Fields |
Hashtable permissions
boolean all_allowed
Class java.security.CodeSource implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream ois) throws 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.
IOException
Serialized Fields |
URL location
Class java.security.DigestException implements Serializable |
Class java.security.GeneralSecurityException implements Serializable |
Class java.security.GuardedObject implements Serializable |
Serialization Methods |
private void writeObject(ObjectOutputStream oos) throws IOException
Serialized Fields |
Object object
Guard guard
Class java.security.Identity implements Serializable |
Serialized Fields |
String name
PublicKey publicKey
String info
IdentityScope scope
Vector certificates
Class java.security.IdentityScope implements Serializable |
Class java.security.InvalidAlgorithmParameterException implements Serializable |
Class java.security.InvalidKeyException implements Serializable |
Class java.security.InvalidParameterException implements Serializable |
Class java.security.KeyException implements Serializable |
Class java.security.KeyManagementException implements Serializable |
Class java.security.KeyPair implements Serializable |
Serialized Fields |
PrivateKey privateKey
PublicKey publicKey
Class java.security.KeyStoreException implements Serializable |
Class java.security.NoSuchAlgorithmException implements Serializable |
Class java.security.NoSuchProviderException implements Serializable |
Class java.security.Permission implements Serializable |
Serialized Fields |
String name
Class java.security.PermissionCollection implements Serializable |
Serialized Fields |
boolean readOnly
Class java.security.PermissionsHash implements Serializable |
Serialized Fields |
Hashtable perms
Class java.security.PrivilegedActionException implements Serializable |
Serialized Fields |
Exception exception
Class java.security.Provider implements Serializable |
Serialized Fields |
String name
String info
double version
Class java.security.ProviderException implements Serializable |
Class java.security.SecureRandom implements Serializable |
Serialized Fields |
Provider provider
SecureRandomSpi secureRandomSpi
byte[] state
MessageDigest digest
byte[] randomBytes
int randomBytesUsed
long counter
Class java.security.SecureRandomSpi implements Serializable |
Class java.security.SecurityPermission implements Serializable |
Class java.security.SignatureException implements Serializable |
Class java.security.SignedObject implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
Serialized Fields |
byte[] content
byte[] signature
String thealgorithm
Class java.security.Signer implements Serializable |
Serialized Fields |
PrivateKey privateKey
Class java.security.UnrecoverableKeyException implements Serializable |
Class java.security.UnresolvedPermission implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream ois) throws 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
Serialized Fields |
String type
String name
String actions
Class java.security.UnresolvedPermissionCollection implements Serializable |
Serialized Fields |
Hashtable permissions
Package java.security.acl |
Class java.security.acl.AclNotFoundException implements Serializable |
Class java.security.acl.LastOwnerException implements Serializable |
Class java.security.acl.NotOwnerException implements Serializable |
Package java.security.cert |
Class java.security.cert.Certificate implements Serializable |
Serialization Methods |
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException
- if a new object representing this
certificate could not be createdSerialized Fields |
String type
Class java.security.cert.Certificate.CertificateRep implements Serializable |
Serialization Methods |
protected Object readResolve() throws ObjectStreamException
ObjectStreamException
- if the Certificate could not
be resolved.Serialized Fields |
String type
byte[] data
Class java.security.cert.CertificateEncodingException implements Serializable |
Class java.security.cert.CertificateException implements Serializable |
Class java.security.cert.CertificateExpiredException implements Serializable |
Class java.security.cert.CertificateNotYetValidException implements Serializable |
Class java.security.cert.CertificateParsingException implements Serializable |
Class java.security.cert.CRLException implements Serializable |
Class java.security.cert.X509Certificate implements Serializable |
Package java.security.spec |
Class java.security.spec.InvalidKeySpecException implements Serializable |
Class java.security.spec.InvalidParameterSpecException implements Serializable |
Package java.text |
Class java.text.AttributedCharacterIterator.Attribute implements Serializable |
Serialization Methods |
protected Object readResolve() throws InvalidObjectException
Serialized Fields |
String name
Class java.text.ChoiceFormat implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
InvalidObjectException
- if the objects read from the stream is invalid.
IOException
ClassNotFoundException
Serialized Fields |
double[] choiceLimits
choiceFormats[i]
if the number being formatted is greater than or equal to
choiceLimits[i]
and less than choiceLimits[i+1]
.
String[] choiceFormats
choiceFormats[i]
if the number being formatted is greater than or equal to
choiceLimits[i]
and less than choiceLimits[i+1]
.
Class java.text.DateFormat implements Serializable |
Serialized Fields |
Calendar calendar
DateFormat
uses to produce the time field
values needed to implement date and time formatting. Subclasses should
initialize this to a calendar appropriate for the locale associated with
this DateFormat
.
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
.
Class java.text.DateFormatSymbols implements Serializable |
Serialized Fields |
String[] eras
Calendar.BC
and Calendar.AD
.
String[] months
Calendar.JANUARY
, Calendar.FEBRUARY
, etc.
String[] shortMonths
Calendar.JANUARY
, Calendar.FEBRUARY
, etc.
String[] weekdays
Calendar.SUNDAY
,
Calendar.MONDAY
, etc.
The element weekdays[0]
is ignored.
String[] shortWeekdays
Calendar.SUNDAY
,
Calendar.MONDAY
, etc.
The element shortWeekdays[0]
is ignored.
String[] ampms
Calendar.AM
and
Calendar.PM
.
String[][] zoneStrings
TimeZone
.
Each such row contains (with i
ranging from
0..n-1):
zoneStrings[i][0]
- time zone IDzoneStrings[i][1]
- long name of zone in standard
timezoneStrings[i][2]
- short name of zone in
standard timezoneStrings[i][3]
- long name of zone in daylight
savings timezoneStrings[i][4]
- short name of zone in daylight
savings time
DateFormatZoneData
,
TimeZone
String localPatternChars
DateFormat.ERA_FIELD
,
DateFormat.YEAR_FIELD
, etc. Thus, if the string were
"Xz...", then localized patterns would use 'X' for era and 'z' for year.
Class java.text.DecimalFormat implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
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.
Finally, set serialVersionOnStream back to the maximum allowed value so that
default serialization will work properly if this object is streamed out again.
If 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
.
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.
Serialized Fields |
String positivePrefix
DecimalFormat.getPositivePrefix()
String positiveSuffix
DecimalFormat.getPositiveSuffix()
String negativePrefix
DecimalFormat.getNegativePrefix()
String negativeSuffix
DecimalFormat.getNegativeSuffix()
String posPrefixPattern
positivePrefix
.
This pattern is expanded by the method expandAffix()
to
positivePrefix
to update the latter to reflect changes in
symbols
. If this variable is null
then
positivePrefix
is taken as a literal value that does not
change when symbols
changes. This variable is always
null
for DecimalFormat
objects older than
stream version 2 restored from stream.
#positivePrefix
,
#expandAffix
String posSuffixPattern
positiveSuffix
. This variable is analogous to
posPrefixPattern
; see that variable for further
documentation.
#positiveSuffix
,
#posPrefixPattern
String negPrefixPattern
negativePrefix
. This variable is analogous to
posPrefixPattern
; see that variable for further
documentation.
#negativePrefix
,
#posPrefixPattern
String negSuffixPattern
negativeSuffix
. This variable is analogous to
posPrefixPattern
; see that variable for further
documentation.
#negativeSuffix
,
#posPrefixPattern
int multiplier
DecimalFormat.getMultiplier()
byte groupingSize
NumberFormat.groupingUsed
is true.
DecimalFormat.getGroupingSize()
,
NumberFormat.isGroupingUsed()
boolean decimalSeparatorAlwaysShown
DecimalFormat.isDecimalSeparatorAlwaysShown()
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.
DecimalFormat.setDecimalFormatSymbols(java.text.DecimalFormatSymbols)
,
DecimalFormatSymbols
boolean useExponentialNotation
byte minExponentDigits
useExponentialNotation
is not true.
int serialVersionOnStream
useExponentialNotation
and minExponentDigits
.
posPrefixPattern
, posSuffixPattern
,
negPrefixPattern
, and negSuffixPattern
.
Class java.text.DecimalFormatSymbols implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
serialVersionOnStream
is less than 1, initialize monetarySeparator
to be
the same as decimalSeparator
and exponential
to be 'E'.
Finally, set serialVersionOnStream back to the maximum allowed value so that
default serialization will work properly if this object is streamed out again.
IOException
ClassNotFoundException
Serialized Fields |
char zeroDigit
DecimalFormatSymbols.getZeroDigit()
char groupingSeparator
DecimalFormatSymbols.getGroupingSeparator()
char decimalSeparator
DecimalFormatSymbols.getDecimalSeparator()
char perMill
DecimalFormatSymbols.getPerMill()
char percent
DecimalFormatSymbols.getPercent()
char digit
DecimalFormatSymbols.getDigit()
char patternSeparator
DecimalFormatSymbols.getPatternSeparator()
String infinity
DecimalFormatSymbols.getInfinity()
String NaN
DecimalFormatSymbols.getNaN()
char minusSign
DecimalFormatSymbols.getMinusSign()
String currencySymbol
DecimalFormatSymbols.getCurrencySymbol()
String intlCurrencySymbol
DecimalFormatSymbols.getInternationalCurrencySymbol()
char monetarySeparator
DecimalFormatSymbols.getMonetaryDecimalSeparator()
char exponential
Note that the public API provides no way to set this field, even though it is supported by the implementation and the stream format. The intent is that this will be added to the API in the future.
int serialVersionOnStream
DecimalFormatSymbols
present on the stream.
Possible values are:
monetarySeparator
and exponential
.
DecimalFormatSymbols
, the most recent format
(corresponding to the highest allowable serialVersionOnStream
)
is always written.
Class java.text.Format implements Serializable |
Class java.text.MessageFormat implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
InvalidObjectException
- if the objects read from the stream is invalid.
IOException
ClassNotFoundException
Serialized Fields |
Locale locale
String pattern
Format[] formats
int[] offsets
int[] argumentNumbers
int maxOffset
offsets
. Can also be thought of
as the index of the highest-numbered element in offsets
that is being used.
All of these arrays should have the same number of elements being used as offsets
does, and so this variable suffices to tell us how many entries are in all of them.
Class java.text.NumberFormat implements Serializable |
Serialization Methods |
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
Serialized Fields |
boolean groupingUsed
NumberFormat.isGroupingUsed()
byte maxIntegerDigits
maxIntegerDigits
must be greater than or equal to
minIntegerDigits
.
Note: This field exists only for serialization
compatibility with JDK 1.1. In Java platform 2 v1.2 and higher, the new
int
field maximumIntegerDigits
is used instead.
When writing to a stream, maxIntegerDigits
is set to
maximumIntegerDigits
or Byte.MAX_VALUE
,
whichever is smaller. When reading from a stream, this field is used
only if serialVersionOnStream
is less than 1.
NumberFormat.getMaximumIntegerDigits()
byte minIntegerDigits
minimumIntegerDigits
must be less than or equal to
maximumIntegerDigits
.
Note: This field exists only for serialization
compatibility with JDK 1.1. In Java platform 2 v1.2 and higher, the new
int
field minimumIntegerDigits
is used instead.
When writing to a stream, minIntegerDigits
is set to
minimumIntegerDigits
or Byte.MAX_VALUE
,
whichever is smaller. When reading from a stream, this field is used
only if serialVersionOnStream
is less than 1.
NumberFormat.getMinimumIntegerDigits()
byte maxFractionDigits
maximumFractionDigits
must be greater than or equal to
minimumFractionDigits
.
Note: This field exists only for serialization
compatibility with JDK 1.1. In Java platform 2 v1.2 and higher, the new
int
field maximumFractionDigits
is used instead.
When writing to a stream, maxFractionDigits
is set to
maximumFractionDigits
or Byte.MAX_VALUE
,
whichever is smaller. When reading from a stream, this field is used
only if serialVersionOnStream
is less than 1.
NumberFormat.getMaximumFractionDigits()
byte minFractionDigits
minimumFractionDigits
must be less than or equal to
maximumFractionDigits
.
Note: This field exists only for serialization
compatibility with JDK 1.1. In Java platform 2 v1.2 and higher, the new
int
field minimumFractionDigits
is used instead.
When writing to a stream, minFractionDigits
is set to
minimumFractionDigits
or Byte.MAX_VALUE
,
whichever is smaller. When reading from a stream, this field is used
only if serialVersionOnStream
is less than 1.
NumberFormat.getMinimumFractionDigits()
boolean parseIntegerOnly
NumberFormat.isParseIntegerOnly()
int maximumIntegerDigits
maximumIntegerDigits
must be greater than or equal to
minimumIntegerDigits
.
NumberFormat.getMaximumIntegerDigits()
int minimumIntegerDigits
minimumIntegerDigits
must be less than or equal to
maximumIntegerDigits
.
NumberFormat.getMinimumIntegerDigits()
int maximumFractionDigits
maximumFractionDigits
must be greater than or equal to
minimumFractionDigits
.
NumberFormat.getMaximumFractionDigits()
int minimumFractionDigits
minimumFractionDigits
must be less than or equal to
maximumFractionDigits
.
NumberFormat.getMinimumFractionDigits()
int serialVersionOnStream
NumberFormat
present on the stream.
Possible values are:
int
fields such as
maximumIntegerDigits
were not present, and the byte
fields such as maxIntegerDigits
are used instead.
byte
fields such as maxIntegerDigits
are ignored,
and the int
fields such as maximumIntegerDigits
are used instead.
NumberFormat
, the most recent format
(corresponding to the highest allowable serialVersionOnStream
)
is always written.
Class java.text.ParseException implements Serializable |
Serialized Fields |
int errorOffset
Class java.text.SimpleDateFormat implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
Serialized Fields |
int serialVersionOnStream
defaultCenturyStart
on stream.
defaultCenturyStart
.
serialVersionOnStream
is written.
String pattern
DateFormatSymbols formatData
DateFormatSymbols
Date defaultCenturyStart
defaultCenturyStart
, which may be any date. May
not be null.
Package java.util |
Class java.util.ArrayList implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
Serialized Fields |
int size
Class java.util.Arrays.ArrayList implements Serializable |
Serialized Fields |
Object[] a
Class java.util.BitSet implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
Serialized Fields |
long[] bits
Class java.util.Calendar implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream stream) throws 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.
Serialized Fields |
int[] fields
FIELD_COUNT
integers, with index values
ERA
through DST_OFFSET
.
boolean[] isSet
FIELD_COUNT
booleans, with index values
ERA
through DST_OFFSET
.
long time
Calendar.isTimeSet
boolean isTimeSet
time
is valid.
The time is made invalid by a change to an item of field[]
.
Calendar.time
boolean areFieldsSet
fields[]
are in sync with the currently set time.
If false, then the next attempt to get the value of a field will
force a recomputation of all fields from the current value of
time
.
boolean lenient
time
from fields[]
.
Calendar.setLenient(boolean)
TimeZone zone
TimeZone
used by this calendar. Calendar
uses the time zone data to translate between locale and GMT time.
int firstDayOfWeek
SUNDAY
,
MONDAY
, etc. This is a locale-dependent value.
int minimalDaysInFirstWeek
int nextStamp
stamp[]
, an internal array.
This actually should not be written out to the stream, and will probably
be removed from the stream in the near future. In the meantime,
a value of MINIMUM_USER_STAMP
should be used.
int serialVersionOnStream
serialVersionOnStream
is written.
Class java.util.Collections.CopiesList implements Serializable |
Serialized Fields |
int n
Object element
Class java.util.Collections.EmptyList implements Serializable |
Class java.util.Collections.EmptySet implements Serializable |
Class java.util.Collections.ReverseComparator implements Serializable |
Class java.util.Collections.SingletonSet implements Serializable |
Serialized Fields |
Object element
Class java.util.Collections.SynchronizedCollection implements Serializable |
Serialized Fields |
Collection c
Object mutex
Class java.util.Collections.SynchronizedList implements Serializable |
Serialized Fields |
List list
Class java.util.Collections.SynchronizedMap implements Serializable |
Serialized Fields |
Map m
Object mutex
Class java.util.Collections.SynchronizedSet implements Serializable |
Class java.util.Collections.SynchronizedSortedMap implements Serializable |
Serialized Fields |
SortedMap sm
Class java.util.Collections.SynchronizedSortedSet implements Serializable |
Serialized Fields |
SortedSet ss
Class java.util.Collections.UnmodifiableCollection implements Serializable |
Serialized Fields |
Collection c
Class java.util.Collections.UnmodifiableList implements Serializable |
Serialized Fields |
List list
Class java.util.Collections.UnmodifiableMap implements Serializable |
Serialized Fields |
Map m
Class java.util.Collections.UnmodifiableMap.UnmodifiableEntrySet implements Serializable |
Class java.util.Collections.UnmodifiableSet implements Serializable |
Class java.util.Collections.UnmodifiableSortedMap implements Serializable |
Serialized Fields |
SortedMap sm
Class java.util.Collections.UnmodifiableSortedSet implements Serializable |
Serialized Fields |
SortedSet ss
Class java.util.ConcurrentModificationException implements Serializable |
Class java.util.Date implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws 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
Class java.util.EmptyStackException implements Serializable |
Class java.util.EventObject implements Serializable |
Class java.util.GregorianCalendar implements Serializable |
Serialized Fields |
long gregorianCutover
Class java.util.HashMap implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
Serialized Fields |
int threshold
float loadFactor
Class java.util.HashSet implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
Class java.util.Hashtable implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
Serialized Fields |
int threshold
float loadFactor
Class java.util.LinkedList implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
Class java.util.Locale implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
String
objects:
the first is a 2-letter ISO 639 code representing the locale's language,
the second is a 2-letter ISO 3166 code representing the locale's region or
country, and the third is an optional chain of variant codes defined by this
library. Any of the fields may be the empty string. The fourth field is an
int
representing the locale's hash code, but is ignored by
readObject()
. Whatever this field's value, the hash code is
initialized to -1, a sentinel value that indicates the hash code must be
recomputed.
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
String
objects:
the first is a 2-letter ISO 639 code representing the locale's language,
the second is a 2-letter ISO 3166 code representing the locale's region or
country, and the third is an optional chain of variant codes defined by this
library. Any of the fields may be the empty string. The fourth field is an
int
whose value is always -1. This is a sentinel value indicating
the Locale
's hash code must be recomputed.
IOException
Serialized Fields |
String language
Locale.getLanguage()
String country
Locale.getCountry()
String variant
Locale.getVariant()
int hashcode
Class java.util.MissingResourceException implements Serializable |
Serialized Fields |
String className
String key
Class java.util.NoSuchElementException implements Serializable |
Class java.util.Properties implements Serializable |
Serialized Fields |
Properties defaults
Class java.util.PropertyPermissionCollection implements Serializable |
Serialized Fields |
Hashtable permissions
boolean all_allowed
Class java.util.Random implements Serializable |
Serialized Fields |
long seed
double nextNextGaussian
boolean haveNextNextGaussian
Class java.util.SimpleTimeZone implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream stream) throws 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
Serialized Fields |
int startMonth
Calendar.JANUARY
and
Calendar.DECEMBER
inclusive. This value must not equal
endMonth
.
If useDaylight
is false, this value is ignored.
int startDay
startMode == DOW_IN_MONTH
startDay
indicates the day of the month of
startMonth
on which daylight
savings time starts, from 1 to 28, 30, or 31, depending on the
startMonth
.
startMode != DOW_IN_MONTH
startDay
indicates which startDayOfWeek
in th
month startMonth
daylight
savings time starts on. For example, a value of +1 and a
startDayOfWeek
of Calendar.SUNDAY
indicates the
first Sunday of startMonth
. Likewise, +2 would indicate the
second Sunday, and -1 the last Sunday. A value of 0 is illegal.
If useDaylight
is false, this value is ignored.
int startDayOfWeek
Calendar.SUNDAY
and
Calendar.SATURDAY
inclusive.
If useDaylight
is false or
startMode == DAY_OF_MONTH
, this value is ignored.
int startTime
startTimeMode
.
If useDaylight
is false, this value is ignored.
int startTimeMode
int endMonth
Calendar.JANUARY
and
Calendar.UNDECIMBER
. This value must not equal
startMonth
.
If useDaylight
is false, this value is ignored.
int endDay
endMode == DOW_IN_MONTH
endDay
indicates the day of the month of
endMonth
on which daylight
savings 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
savings time ends on. For example, a value of +1 and a
endDayOfWeek
of Calendar.SUNDAY
indicates the
first Sunday of endMonth
. Likewise, +2 would indicate the
second Sunday, and -1 the last Sunday. A value of 0 is illegal.
If useDaylight
is false, this value is ignored.
int endDayOfWeek
Calendar.SUNDAY
and
Calendar.SATURDAY
inclusive.
If useDaylight
is false or
endMode == DAY_OF_MONTH
, this value is ignored.
int endTime
endTimeMode
.
If useDaylight
is false, this value is ignored.
int endTimeMode
int startYear
If useDaylight
is false, this value is ignored.
int rawOffset
dstSavings
.
boolean useDaylight
byte[] monthLength
int startMode
DOM_MODE
DOW_IN_MONTH_MODE
DOW_GE_DOM_MODE
DOW_LE_DOM_MODE
startDay
field.
If useDaylight
is false, this value is ignored.
int endMode
DOM_MODE
DOW_IN_MONTH_MODE
DOW_GE_DOM_MODE
DOW_LE_DOM_MODE
endDay
field.
If useDaylight
is false, this value is ignored.
int dstSavings
If useDaylight
is false, this value is ignored.
int serialVersionOnStream
startMode
,
endMode
, and dstSavings
.
startTimeMode
and endTimeMode
.
serialVersionOnStream
is written.
Class java.util.Stack implements Serializable |
Class java.util.TimeZone implements Serializable |
Serialized Fields |
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.
Class java.util.TooManyListenersException implements Serializable |
Class java.util.TreeMap implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
Serialized Fields |
Comparator comparator
Class java.util.TreeSet implements Serializable |
Serialization Methods |
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
Class java.util.Vector implements Serializable |
Serialized Fields |
Object[] elementData
Any array elements following the last element in the Vector are null.
int elementCount
int capacityIncrement
Package java.util.jar |
Class java.util.jar.JarException implements Serializable |
Package java.util.zip |
Class java.util.zip.DataFormatException implements Serializable |
Class java.util.zip.ZipException implements Serializable |
Package javax.microedition.io |
Class javax.microedition.io.ConnectionNotFoundException implements Serializable |
|
JSR-62 (Final) | ||||||||||
PREV NEXT | FRAMES NO FRAMES |