Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 217 (Maintenance Release)

Serialized Form


Package java.awt

Class java.awt.AWTError extends Error implements Serializable

serialVersionUID: -1819846354050686206l

Class java.awt.AWTEvent extends EventObject implements Serializable

serialVersionUID: -1825314779160409405l

Serialized Fields

id

int id
The event's id.

 
See Also:
AWTEvent.getID(), AWTEvent.AWTEvent(java.lang.Object, int)

consumed

boolean consumed
Controls whether or not the event is sent back down to the peer once the source has processed it - false means it's sent to the peer; true means it's not. Semantic events always have a 'true' value since they were generated by the peer in response to a low-level event.

 
See Also:
AWTEvent.consume(), AWTEvent.isConsumed()

Class java.awt.AWTException extends Exception implements Serializable

serialVersionUID: -1900414231151323879l

Class java.awt.AWTKeyStroke extends Object implements Serializable

serialVersionUID: -6430539691155161871l

Serialization Methods

readResolve

private Object readResolve()
                    throws ObjectStreamException
Returns a cached instance of AWTKeyStroke which is equal to this instance.

Serialized Fields

keyChar

char keyChar

keyCode

int keyCode

modifiers

int modifiers

onKeyRelease

boolean onKeyRelease

Class java.awt.AWTPermission extends BasicPermission implements Serializable

serialVersionUID: 8890392402588814465l

Class java.awt.BorderLayout extends Object implements Serializable

serialVersionUID: -8658291919501921765l

Serialized Fields

hgap

int hgap
Constructs a border layout with the horizontal gaps between components. The horizontal gap is specified by hgap.

 
See Also:
BorderLayout.getHgap(), BorderLayout.setHgap(int)

vgap

int vgap
Constructs a border layout with the vertical gaps between components. The vertical gap is specified by vgap.

 
See Also:
BorderLayout.getVgap(), BorderLayout.setVgap(int)

north

Component north
Constant to specify components location to be the north portion of the border layout.

 
See Also:
#getChild(String, boolean), BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object), BorderLayout.getLayoutAlignmentX(java.awt.Container), BorderLayout.getLayoutAlignmentY(java.awt.Container), BorderLayout.removeLayoutComponent(java.awt.Component)

west

Component west
Constant to specify components location to be the west portion of the border layout.

 
See Also:
#getChild(String, boolean), BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object), BorderLayout.getLayoutAlignmentX(java.awt.Container), BorderLayout.getLayoutAlignmentY(java.awt.Container), BorderLayout.removeLayoutComponent(java.awt.Component)

east

Component east
Constant to specify components location to be the east portion of the border layout.

 
See Also:
#getChild(String, boolean), BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object), BorderLayout.getLayoutAlignmentX(java.awt.Container), BorderLayout.getLayoutAlignmentY(java.awt.Container), BorderLayout.removeLayoutComponent(java.awt.Component)

south

Component south
Constant to specify components location to be the south portion of the border layout.

 
See Also:
#getChild(String, boolean), BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object), BorderLayout.getLayoutAlignmentX(java.awt.Container), BorderLayout.getLayoutAlignmentY(java.awt.Container), BorderLayout.removeLayoutComponent(java.awt.Component)

center

Component center
Constant to specify components location to be the center portion of the border layout.

 
See Also:
#getChild(String, boolean), BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object), BorderLayout.getLayoutAlignmentX(java.awt.Container), BorderLayout.getLayoutAlignmentY(java.awt.Container), BorderLayout.removeLayoutComponent(java.awt.Component)

Class java.awt.CardLayout extends Object implements Serializable

serialVersionUID: -4328196481005934313l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
Reads serializable fields from stream.


writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Writes serializable fields to stream.

Serialized Fields

currentCard

int currentCard

hgap

int hgap

tab

Hashtable tab
deprectated, for forward compatibility only

vector

Vector vector

vgap

int vgap

Class java.awt.Color extends Object implements Serializable

serialVersionUID: 118526816881161077l

Serialized Fields

value

int value
The color value.

 
See Also:
Color.getRGB()

frgbvalue

float[] frgbvalue
The color value in the default sRGB 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.

 
See Also:
Color.getRGBColorComponents(float[]), Color.getRGBComponents(float[])

fvalue

float[] fvalue
The color value in the native 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.

 
See Also:
Color.getRGBColorComponents(float[]), Color.getRGBComponents(float[])

falpha

float falpha
The alpha value as a float component. If frgbvalue is null, this is not valid data, so compute from the int color value.

 
See Also:
Color.getRGBComponents(float[]), Color.getComponents(float[])

Class java.awt.Component extends Object implements Serializable

serialVersionUID: -7644114512714619750l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
Reads the 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.

Throws:
ClassNotFoundException
IOException
See Also:
#writeObject(ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Writes default serializable fields to stream. Writes a variety of serializable listeners as optional data. The non-serializable listeners are detected and no attempt is made to serialize them.

Serial Data:
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; inputListenerK indicating an InputListener object; mouseWheelListenerK indicating an MouseWheelListener object
Throws:
IOException
See Also:
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener), #componentListenerK, #focusListenerK, #keyListenerK, #mouseListenerK, #mouseMotionListenerK, #inputListenerK, #mouseWheelListenerK, #readObject(ObjectInputStream)
Serialized Fields

x

int x
The x position of the component in the parent's coordinate system.

 
See Also:
Component.getLocation()

y

int y
The y position of the component in the parent's coordinate system.

 
See Also:
Component.getLocation()

width

int width
The width of the component.

 
See Also:
Component.getSize()

height

int height
The height of the component.

 
See Also:
Component.getSize()

foreground

Color foreground
The foreground color for this component. foreground can be null.

 
See Also:
Component.getForeground(), Component.setForeground(java.awt.Color)

background

Color background
The background color for this component. background can be null.

 
See Also:
Component.getBackground(), Component.setBackground(java.awt.Color)

font

Font font
The font used by this component. The font can be null.

 
See Also:
Component.getFont(), Component.setFont(java.awt.Font)

cursor

Cursor cursor
The cursor displayed when pointer is over this component. This value can be null.

 
See Also:
Component.getCursor(), Component.setCursor(java.awt.Cursor)

locale

Locale locale
The locale for the component.

 
See Also:
Component.getLocale(), Component.setLocale(java.util.Locale)

ignoreRepaint

boolean ignoreRepaint
True when the object should ignore all repaint events.

 
Since:
1.4
See Also:
Component.setIgnoreRepaint(boolean), Component.getIgnoreRepaint()

visible

boolean visible
True when the object is visible. An object that is not visible is not drawn on the screen.

 
See Also:
Component.isVisible(), Component.setVisible(boolean)

enabled

boolean enabled
True when the object is enabled. An object that is not enabled does not interact with the user.

 
See Also:
Component.isEnabled(), Component.setEnabled(boolean)

valid

boolean valid
True when the object is valid. An invalid object needs to be layed out. This flag is set to false when the object size is changed.

 
See Also:
Component.isValid(), Component.validate(), Component.invalidate()

name

String name
A component's name. This field can be null.

 
See Also:
Component.getName(), Component.setName(String)

nameExplicitlySet

boolean nameExplicitlySet
A bool to determine whether the name has been set explicitly. nameExplicitlySet will be false if the name has not been set and true if it has.

 
See Also:
Component.getName(), Component.setName(String)

focusable

boolean focusable
Indicates whether this Component can be focused.

 
Since:
1.4
See Also:
Component.setFocusable(boolean), Component.isFocusable()

isFocusTraversableOverridden

int isFocusTraversableOverridden
Tracks whether this Component is relying on default focus travesability.

 
Since:
1.4

focusTraversalKeys

Set[] focusTraversalKeys
The focus traversal keys. These keys will generate focus traversal behavior for Components for which focus traversal keys are enabled. If a value of null is specified for a traversal key, this Component inherits that traversal key from its parent. If all ancestors of this Component have null specified for that traversal key, then the current KeyboardFocusManager's default traversal key is used.

 
Since:
1.4
See Also:
Component.setFocusTraversalKeys(int, java.util.Set), Component.getFocusTraversalKeys(int)

focusTraversalKeysEnabled

boolean focusTraversalKeysEnabled
Indicates whether focus traversal keys are enabled for this Component. Components for which focus traversal keys are disabled receive key events for focus traversal keys. Components for which focus traversal keys are enabled do not see these events; instead, the events are automatically converted to traversal operations.

 
Since:
1.4
See Also:
Component.setFocusTraversalKeysEnabled(boolean), Component.getFocusTraversalKeysEnabled()

minSize

Dimension minSize
Internal, cached size information. (This field perhaps should have been transient).

 

prefSize

Dimension prefSize
Internal, cached size information (This field perhaps should have been transient).

 

eventMask

long eventMask
The 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.

 
See Also:
Component.enableInputMethods(boolean), AWTEvent

changeSupport

PropertyChangeSupport changeSupport
If any PropertyChangeListeners have been registered, the changeSupport field describes them.

 
Since:
1.2
See Also:
Component.addPropertyChangeListener(java.beans.PropertyChangeListener), Component.removePropertyChangeListener(java.beans.PropertyChangeListener), Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)

isPacked

boolean isPacked

componentSerializedDataVersion

int componentSerializedDataVersion
Component Serialized Data Version.

 

Class java.awt.Container extends Component implements Serializable

serialVersionUID: 4613797578919906343l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
Deserializes this Container from the specified ObjectInputStream.

Throws:
ClassNotFoundException
IOException
See Also:
Container.addContainerListener(java.awt.event.ContainerListener), #writeObject(ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Serializes this Container to the specified ObjectOutputStream.

Serial Data:
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
Throws:
IOException
See Also:
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener), Container#containerListenerK, #readObject(ObjectInputStream)
Serialized Fields

ncomponents

int ncomponents
The number of components in this container. This value can be null.

 
See Also:
Container.getComponent(int), Container.getComponents(), Container.getComponentCount()

component

Component[] component
The components in this container.

 
See Also:
Container.add(java.awt.Component), Container.getComponents()

layoutMgr

LayoutManager layoutMgr
Layout manager for this container.

 
See Also:
Container.doLayout(), Container.setLayout(java.awt.LayoutManager), Container.getLayout()

maxSize

Dimension maxSize

focusCycleRoot

boolean focusCycleRoot
Indicates whether this Component is the root of a focus traversal cycle. Once focus enters a traversal cycle, typically it cannot leave it via focus traversal unless one of the up- or down-cycle keys is pressed. Normal traversal is limited to this Container, and all of this Container's descendants that are not descendants of inferior focus cycle roots.

 
Since:
1.4
See Also:
Container.setFocusCycleRoot(boolean), Container.isFocusCycleRoot(java.awt.Container)

containerSerializedDataVersion

int containerSerializedDataVersion
Container Serial Data Version.

 

Class java.awt.ContainerOrderFocusTraversalPolicy extends FocusTraversalPolicy implements Serializable

serialVersionUID: 486933713763926351l

Serialized Fields

implicitDownCycleTraversal

boolean implicitDownCycleTraversal

Class java.awt.Cursor extends Object implements Serializable

serialVersionUID: 8028237497568985504l

Serialized Fields

type

int type
The chosen cursor type initially set to the DEFAULT_CURSOR.

 
See Also:
Cursor.getType()

Class java.awt.DefaultFocusTraversalPolicy extends ContainerOrderFocusTraversalPolicy implements Serializable

Class java.awt.Dimension extends Object implements Serializable

serialVersionUID: 4723952579491349524l

Serialized Fields

width

int width
The width dimension; negative values can be used.

 
See Also:
Dimension.getSize(), Dimension.setSize(java.awt.Dimension)

height

int height
The height dimension; negative values can be used.

 
See Also:
Dimension.getSize(), Dimension.setSize(java.awt.Dimension)

Class java.awt.FlowLayout extends Object implements Serializable

serialVersionUID: -7262534875583282631l

Serialized Fields

align

int align
align is the property that determines how each row distributes empty space. It can be one of the following values:

 
See Also:
FlowLayout.getAlignment(), FlowLayout.setAlignment(int)

hgap

int hgap
The flow layout manager allows a seperation of components with gaps. The horizontal gap will specify the space between components.

 
See Also:
FlowLayout.getHgap(), FlowLayout.setHgap(int)

vgap

int vgap
The flow layout manager allows a seperation of components with gaps. The vertical gap will specify the space between rows.

 
See Also:
FlowLayout.getHgap(), FlowLayout.setHgap(int)

Class java.awt.Font extends Object implements Serializable

serialVersionUID: -4206021311591459213l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
Reads the ObjectInputStream. Unrecognized keys or values will be ignored.

Throws:
ClassNotFoundException
IOException
See Also:
#writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws ClassNotFoundException,
                         IOException
Writes default serializable fields to a stream.

Throws:
ClassNotFoundException
IOException
See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener), #readObject(java.io.ObjectInputStream)
Serialized Fields

name

String name
The logical name of this Font, as passed to the constructor.

 
Since:
JDK1.0
See Also:
Font.getName()

style

int style
The style of this Font, as passed to the constructor. This style can be PLAIN, BOLD, ITALIC, or BOLD+ITALIC.

 
Since:
JDK1.0
See Also:
Font.getStyle()

size

int size
The point size of this Font, rounded to integer.

 
Since:
JDK1.0
See Also:
Font.getSize()

fRequestedAttributes

Hashtable fRequestedAttributes
A map of font attributes available in this font. Attributes include things like ligatures and glyph substitution.

 
See Also:
Font.getAttributes()

fontSerializedDataVersion

int fontSerializedDataVersion
The Font Serializable Data Form.

 

Class java.awt.FontMetrics extends Object implements Serializable

serialVersionUID: 1681126225205050147l

Serialized Fields

font

Font font
The actual Font from which the font metrics are created. This cannot be null.

 
See Also:
FontMetrics.getFont()

Class java.awt.Frame extends Window implements Serializable

serialVersionUID: 2673458971256075116l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
Reads the ObjectInputStream. Tries to read an icon Image, which is optional data available as of 1.4. If an Image is not available, but anything other than an EOF is detected, an OptionalDataException will be thrown.. Unrecognized keys or values will be ignored.

Note: This operation is subject to restriction in Personal Basis Profile.

Throws:
OptionalDataException - if an Image is not available, but anything other than an EOF is detected
HeadlessException - if GraphicsEnvironment.isHeadless returns true
ClassNotFoundException
IOException
See Also:
GraphicsEnvironment.isHeadless(), Image, #writeObject(ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Writes default serializable fields to stream. Writes an optional serializable icon Image, which is available as of 1.4.

Serial Data:
an optional Image
Throws:
IOException
See Also:
Image, #readObject(ObjectInputStream)
Serialized Fields

title

String title
This is the title of the frame. It can be changed at any time. title can be null and if this is the case the title = "".

 
See Also:
Frame.getTitle(), Frame.setTitle(String)

resizable

boolean resizable
This field indicates whether the frame is resizable. This property can be changed at any time. resizable will be true if the frame is resizable, otherwise it will be false.

 
See Also:
Frame.isResizable()

undecorated

boolean undecorated
This field indicates whether the frame is undecorated. This property can only be changed while the frame is not displayable. undecorated will be true if the frame is undecorated, otherwise it will be false.

 
Since:
1.4
See Also:
Frame.setUndecorated(boolean), Frame.isUndecorated(), Component.isDisplayable()

mbManagement

boolean mbManagement
mbManagement is only used by the Motif implementation.

 

state

int state

frameSerializedDataVersion

int frameSerializedDataVersion
Frame's Serialized Data Version.

 

Class java.awt.GridBagConstraints extends Object implements Serializable

serialVersionUID: -1000070633030801713l

Serialized Fields

gridx

int gridx
Specifies the cell at the left of the component's display area, where the first cell in a row has gridx=0. 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.

 
See Also:
GridBagConstraints.clone(), GridBagConstraints.gridy

gridy

int gridy
Specifies the cell at the top of the component's display area, where the topmost cell has 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.

 
See Also:
GridBagConstraints.clone(), GridBagConstraints.gridx

gridwidth

int gridwidth
Specifies the number of cells in a row for the component's display area.

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.

 
See Also:
GridBagConstraints.clone(), GridBagConstraints.gridheight

gridheight

int gridheight
Specifies the number of cells in a column for the component's display area.

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.

 
See Also:
GridBagConstraints.clone(), GridBagConstraints.gridwidth

weightx

double weightx
Specifies how to distribute extra horizontal space.

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.

 
See Also:
GridBagConstraints.clone(), GridBagConstraints.weighty

weighty

double weighty
Specifies how to distribute extra vertical space.

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.

 
See Also:
GridBagConstraints.clone(), GridBagConstraints.weightx

anchor

int anchor
This field is used when the component is smaller than its display area. It determines where, within the display area, to place the component.

Possible values are: CENTER, NORTH, NORTHEAST, EAST, SOUTHEAST, SOUTH, SOUTHWEST, WEST, and NORTHWEST. The default value is CENTER.

 
See Also:
GridBagConstraints.clone()

fill

int fill
This field is used when the component's display area is larger than the component's requested size. It determines whether to resize the component, and if so, how.

The following values are valid for fill:

The default value is NONE.

 
See Also:
GridBagConstraints.clone()

insets

Insets insets
This field specifies the external padding of the component, the minimum amount of space between the component and the edges of its display area.

The default value is new Insets(0, 0, 0, 0).

 
See Also:
GridBagConstraints.clone()

ipadx

int ipadx
This field specifies the internal padding of the component, how much space to add to the minimum width of the component. The width of the component is at least its minimum width plus (ipadx * 2) pixels.

The default value is 0.

 
See Also:
GridBagConstraints.clone(), GridBagConstraints.ipady

ipady

int ipady
This field specifies the internal padding, that is, how much space to add to the minimum height of the component. The height of the component is at least its minimum height plus (ipady * 2) pixels.

The default value is 0.

 
See Also:
GridBagConstraints.clone(), GridBagConstraints.ipadx

tempX

int tempX
Temporary place holder for the x coordinate.

 

tempY

int tempY
Temporary place holder for the y coordinate.

 

tempWidth

int tempWidth
Temporary place holder for the Width of the component.

 

tempHeight

int tempHeight
Temporary place holder for the Height of the component.

 

minWidth

int minWidth
The minimum width of the component. It is used to calculate ipady, where the default will be 0.

 
See Also:
GridBagConstraints.ipady

minHeight

int minHeight
The minimum height of the component. It is used to calculate ipadx, where the default will be 0.

 
See Also:
GridBagConstraints.ipadx

Class java.awt.GridBagLayout extends Object implements Serializable

serialVersionUID: 8838754796412211005l

Serialized Fields

comptable

Hashtable comptable
This hashtable maintains the association between a component and its gridbag constraints. The Keys in comptable are the components and the values are the instances of GridBagConstraints.

 
See Also:
GridBagConstraints

defaultConstraints

GridBagConstraints defaultConstraints
This field holds a gridbag constraints instance containing the default values, so if a component does not have gridbag constraints associated with it, then the component will be assigned a copy of the defaultConstraints.

 
See Also:
GridBagLayout.getConstraints(Component), GridBagLayout.setConstraints(Component, GridBagConstraints), GridBagLayout.lookupConstraints(Component)

columnWidths

int[] columnWidths
This field holds the overrides to the column minimum width. If this field is non-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.

 
See Also:
GridBagLayout.getLayoutDimensions()

rowHeights

int[] rowHeights
This field holds the overrides to the row minimum heights. If this field is non-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, rowa are added to the gridbag to match the number of elements in rowHeights.

 
See Also:
GridBagLayout.getLayoutDimensions()

columnWeights

double[] columnWeights
This field holds the overrides to the column weights. If this field is non-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.

 

rowWeights

double[] rowWeights
This field holds the overrides to the row weights. If this field is non-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.

 

Class java.awt.GridLayout extends Object implements Serializable

Serialized Fields

hgap

int hgap
This is the horizontal gap (in pixels) which specifies the space between columns. They can be changed at any time. This should be a non-negative integer.

 
See Also:
GridLayout.getHgap(), GridLayout.setHgap(int)

vgap

int vgap
This is the vertical gap (in pixels) which specifies the space between rows. They can be changed at any time. This should be a non negative integer.

 
See Also:
GridLayout.getVgap(), GridLayout.setVgap(int)

rows

int rows
This is the number of rows specified for the grid. The number of rows can be changed at any time. This should be a non negative integer, where '0' means 'any number' meaning that the number of Rows in that dimension depends on the other dimension.

 
See Also:
GridLayout.getRows(), GridLayout.setRows(int)

cols

int cols
This is the number of columns specified for the grid. The number of columns can be changed at any time. This should be a non negative integer, where '0' means 'any number' meaning that the number of Columns in that dimension depends on the other dimension.

 
See Also:
GridLayout.getColumns(), GridLayout.setColumns(int)

Class java.awt.HeadlessException extends UnsupportedOperationException implements Serializable

serialVersionUID: 167183644944358563l

Class java.awt.IllegalComponentStateException extends IllegalStateException implements Serializable

serialVersionUID: -1889339587208144238l

Class java.awt.Insets extends Object implements Serializable

serialVersionUID: -2272572637695466749l

Serialized Fields

top

int top
The inset from the top. This value is added to the Top of the rectangle to yield a new location for the Top.

 
See Also:
Insets.clone()

left

int left
The inset from the left. This value is added to the Left of the rectangle to yield a new location for the Left edge.

 
See Also:
Insets.clone()

bottom

int bottom
The inset from the bottom. This value is subtracted from the Bottom of the rectangle to yield a new location for the Bottom.

 
See Also:
Insets.clone()

right

int right
The inset from the right. This value is subtracted from the Right of the rectangle to yield a new location for the Right edge.

 
See Also:
Insets.clone()

Class java.awt.MediaTracker extends Object implements Serializable

serialVersionUID: -483174189758638095l

Serialized Fields

target

Component target
A given Component that will be tracked by a media tracker where the image will eventually be drawn.

 
See Also:
MediaTracker.MediaTracker(Component)

Class java.awt.Point extends Object implements Serializable

serialVersionUID: -5276940640259749850l

Serialized Fields

x

int x
The x coordinate. If no x coordinate is set it will default to 0.

 
See Also:
Point.getLocation(), Point.move(int, int)

y

int y
The y coordinate. If no y coordinate is set it will default to 0.

 
See Also:
Point.getLocation(), Point.move(int, int)

Class java.awt.Polygon extends Object implements Serializable

serialVersionUID: -6460061437900069969l

Serialized Fields

npoints

int npoints
The total number of points. The value of 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.

 
See Also:
Polygon.addPoint(int, int)

xpoints

int[] xpoints
The array of x coordinates. The number of elements in this array might be more than the number of x coordinates in this 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.

 
See Also:
Polygon.addPoint(int, int)

ypoints

int[] ypoints
The array of y coordinates. The number of elements in this array might be more than the number of y coordinates in this 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.

 
See Also:
Polygon.addPoint(int, int)

bounds

Rectangle bounds
Bounds of the polygon. This value can be NULL. Please see the javadoc comments getBounds().

 
See Also:
Polygon.getBounds()

Class java.awt.Rectangle extends Object implements Serializable

serialVersionUID: -4345857070255674764l

Serialized Fields

x

int x
The x coordinate of the Rectangle.

 
See Also:
Rectangle.setLocation(int, int), Rectangle.getLocation()

y

int y
The y coordinate of the Rectangle.

 
See Also:
Rectangle.setLocation(int, int), Rectangle.getLocation()

width

int width
The width of the Rectangle.

 
Since:
JDK1.0.
See Also:
Rectangle.setSize(int, int), Rectangle.getSize()

height

int height
The height of the Rectangle.

 
See Also:
Rectangle.setSize(int, int), Rectangle.getSize()

Class java.awt.SystemColor extends Color implements Serializable

serialVersionUID: 4503142729533789064l

Class java.awt.Window extends Container implements Serializable

serialVersionUID: 4497834738069338734l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
Reads the 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.

Throws:
HeadlessException - if GraphicsEnvironment.isHeadless returns true
ClassNotFoundException
IOException
See Also:
GraphicsEnvironment.isHeadless(), #writeObject

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Writes default serializable fields to stream. Writes a list of serializable WindowListeners and WindowFocusListeners as optional data. Writes a list of child windows as optional data.

Serial Data:
null terminated sequence of 0 or more pairs; the pair consists of a String and 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 object
Throws:
IOException
See Also:
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener), Component#windowListenerK, Component#windowFocusListenerK, Component#ownedWindowK, #readObject(ObjectInputStream)
Serialized Fields

warningString

String warningString
This represents the warning message that is to be displayed in a non secure window. ie : a window that has a security manager installed for which calling SecurityManager.checkTopLevelWindow() is false. This message can be displayed anywhere in the window.

 
See Also:
Window.getWarningString()

state

int state
An Integer value representing the Window State.

 
Since:
1.2
See Also:
Window.show()

focusableWindowState

boolean focusableWindowState
Indicates whether this Window can become the focused Window.

 
Since:
1.4
See Also:
Window.getFocusableWindowState(), Window.setFocusableWindowState(boolean)

windowSerializedDataVersion

int windowSerializedDataVersion
The window serialized data version.

 


Package java.awt.color

Class java.awt.color.ColorSpace extends Object implements Serializable

serialVersionUID: -409452704308689724l

Serialized Fields

type

int type

numComponents

int numComponents


Package java.awt.event

Class java.awt.event.ActionEvent extends AWTEvent implements Serializable

serialVersionUID: -7671078796273832149l

Serialized Fields

actionCommand

String actionCommand
The nonlocalized string that gives more details of what actually caused the event. This information is very specific to the component that fired it.

 
See Also:
ActionEvent.getActionCommand()

when

long when
Timestamp of when this event occurred. Because an ActionEvent is a high- level, semantic event, the timestamp is typically the same as an underlying InputEvent.

 
See Also:
ActionEvent.getWhen()

modifiers

int modifiers
This represents the key modifier that was selected, and is used to determine the state of the selected key. If no modifier has been selected it will default to zero.

 
See Also:
ActionEvent.getModifiers()

Class java.awt.event.AdjustmentEvent extends AWTEvent implements Serializable

serialVersionUID: 5700290645205279921l

Serialized Fields

adjustable

Adjustable adjustable
The adjustable object that fired the event.

 
See Also:
AdjustmentEvent.getAdjustable()

value

int value
value will contain the new value of the adjustable object. This value will always be in a range associated adjustable object.

 
See Also:
AdjustmentEvent.getValue()

adjustmentType

int adjustmentType
The 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.

 
See Also:
AdjustmentEvent.getAdjustmentType()

Class java.awt.event.ComponentEvent extends AWTEvent implements Serializable

serialVersionUID: 8101406823902992965l

Class java.awt.event.ContainerEvent extends ComponentEvent implements Serializable

serialVersionUID: -4114942250539772041l

Serialized Fields

child

Component child
The non-null component that is being added or removed from the Container.

 
See Also:
ContainerEvent.getChild()

Class java.awt.event.FocusEvent extends ComponentEvent implements Serializable

serialVersionUID: 523753786457416396l

Serialized Fields

temporary

boolean temporary
A focus event can have two different levels, permanent and temporary. It will be set to true if some operation takes away the focus temporarily and intends on getting it back once the event is completed. Otherwise it will be set to false.

 
See Also:
FocusEvent.isTemporary()

Class java.awt.event.InputEvent extends ComponentEvent implements Serializable

serialVersionUID: -2482525981698309786l

Serialized Fields

when

long when
The input event's Time stamp in UTC format. The time stamp indicates when the input event was created.

 
See Also:
InputEvent.getWhen()

modifiers

int modifiers
The state of the modifier mask at the time the input event was fired.

 
See Also:
InputEvent.getModifiers(), InputEvent.getModifiersEx(), KeyEvent, MouseEvent

Class java.awt.event.InputMethodEvent extends AWTEvent implements Serializable

serialVersionUID: 4727190874778922661l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
Initializes the when field if it is not present in the object input stream. In that case, the field will be initialized by invoking EventQueue.getMostRecentEventTime().

Serialized Fields

when

long when
The time stamp that indicates when the event was created.

 
Since:
1.4
See Also:
InputMethodEvent.getWhen()

Class java.awt.event.InvocationEvent extends AWTEvent implements Serializable

serialVersionUID: 436056344909459450l

Serialized Fields

runnable

Runnable runnable
The Runnable whose run() method will be called.


notifier

Object notifier
The (potentially null) Object whose notifyAll() method will be called immediately after the Runnable.run() method returns.


catchExceptions

boolean catchExceptions
Set to true if dispatch() catches Exception and stores it in the exception instance variable. If false, Exceptions are propagated up to the EventDispatchThread's dispatch loop.


exception

Exception exception
The (potentially null) Exception thrown during execution of the Runnable.run() method. This variable will also be null if a particular instance does not catch exceptions.


when

long when
The timestamp of when this event occurred.

 
See Also:
InvocationEvent.getWhen()

Class java.awt.event.ItemEvent extends AWTEvent implements Serializable

serialVersionUID: -608708132447206933l

Serialized Fields

item

Object item
The item whose selection state has changed.

 
See Also:
ItemEvent.getItem()

stateChange

int stateChange
stateChange indicates whether the item was selected or deselected.

 
See Also:
ItemEvent.getStateChange()

Class java.awt.event.KeyEvent extends InputEvent implements Serializable

serialVersionUID: -2352130953028126954l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Sets new modifiers by the old ones. The key modifiers override overlaping mouse modifiers.

Serialized Fields

keyCode

int keyCode
The unique value assigned to each of the keys on the keyboard. There is a common set of key codes that can be fired by most keyboards. The symbolic name for a key code should be used rather than the code value itself.

 
See Also:
KeyEvent.getKeyCode(), KeyEvent.setKeyCode(int)

keyChar

char keyChar
keyChar is a valid unicode character that is fired by a key or a key combination on a keyboard.

 
See Also:
KeyEvent.getKeyChar(), KeyEvent.setKeyChar(char)

Class java.awt.event.MouseEvent extends InputEvent implements Serializable

serialVersionUID: -991214153494842848l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Sets new modifiers by the old ones.

Serialized Fields

x

int x
The mouse event's x coordinate. The x value is relative to the component that fired the event.

 
See Also:
MouseEvent.getX()

y

int y
The mouse event's y coordinate. The y value is relative to the component that fired the event.

 
See Also:
MouseEvent.getY()

clickCount

int clickCount
Indicates the number of quick consecutive clicks of a mouse button. clickCount will be valid for only three mouse events :
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.

 
See Also:
MouseEvent.getClickCount().

button

int button
Indicates which, if any, of the mouse buttons has changed state. The only legal values are the following constants: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3.

 
See Also:
MouseEvent.getButton().

popupTrigger

boolean popupTrigger
A property used to indicate whether a Popup Menu should appear with a certain gestures. If popupTrigger = false, no popup menu should appear. If it is true then a popup menu should appear.

 
See Also:
java.awt.PopupMenu, MouseEvent.isPopupTrigger()

Class java.awt.event.MouseWheelEvent extends MouseEvent implements Serializable

Serialized Fields

scrollType

int scrollType
Indicates what sort of scrolling should take place in response to this event, based on platform settings. Legal values are:

See Also:
MouseWheelEvent.getScrollType()

scrollAmount

int scrollAmount
Only valid for scrollType WHEEL_UNIT_SCROLL. Indicates number of units that should be scrolled per click of mouse wheel rotation, based on platform settings.

See Also:
MouseWheelEvent.getScrollAmount(), MouseWheelEvent.getScrollType()

wheelRotation

int wheelRotation
Indicates how far the mouse wheel was rotated.

See Also:
MouseWheelEvent.getWheelRotation()

Class java.awt.event.PaintEvent extends ComponentEvent implements Serializable

serialVersionUID: 1267492026433337593l

Serialized Fields

updateRect

Rectangle updateRect
This is the rectangle that represents the area on the source component that requires a repaint. This rectangle should be non null.

 
See Also:
Rectangle, PaintEvent.setUpdateRect(Rectangle), PaintEvent.getUpdateRect()

Class java.awt.event.TextEvent extends AWTEvent implements Serializable

serialVersionUID: 6269902291250941179l

Class java.awt.event.WindowEvent extends ComponentEvent implements Serializable

serialVersionUID: -1567959133147912127l


Package java.awt.font

Class java.awt.font.TextAttribute extends AttributedCharacterIterator.Attribute implements Serializable

serialVersionUID: 7744112784117861702l

Serialization Methods

readResolve

protected Object readResolve()
                      throws InvalidObjectException
Resolves instances being deserialized to the predefined constants.


Package java.awt.image

Class java.awt.image.RasterFormatException extends RuntimeException implements Serializable


Package java.beans

Class java.beans.PropertyChangeEvent extends EventObject implements Serializable

Serialized Fields

propertyName

String propertyName
name of the property that changed. May be null, if not known.

 

newValue

Object newValue
New value for property. May be null if not known.

 

oldValue

Object oldValue
Previous value for property. May be null if not known.

 

propagationId

Object propagationId
Propagation ID. May be null.

 

Class java.beans.PropertyChangeSupport extends Object implements Serializable

serialVersionUID: 6401253773779951803l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Serial Data:
Null terminated list of PropertyChangeListeners.

At serialization time we skip non-serializable listeners and only serialize the serializable listeners.

Throws:
IOException
Serialized Fields

children

Hashtable children
Hashtable for managing listeners for specific properties. Maps property names to PropertyChangeSupport objects.

 
Since:
1.2

source

Object source
The object to be provided as the "source" for any generated events.

 

propertyChangeSupportSerializedDataVersion

int propertyChangeSupportSerializedDataVersion
Internal version number

 
Since:

Class java.beans.PropertyVetoException extends Exception implements Serializable

Serialized Fields

evt

PropertyChangeEvent evt
A PropertyChangeEvent describing the vetoed change.

 

Class java.beans.VetoableChangeSupport extends Object implements Serializable

serialVersionUID: -5090210921595982017l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Serial Data:
Null terminated list of VetoableChangeListeners.

At serialization time we skip non-serializable listeners and only serialize the serializable listeners.

Throws:
IOException
Serialized Fields

children

Hashtable children
Hashtable for managing listeners for specific properties. Maps property names to VetoableChangeSupport objects.

 
Since:
1.2

source

Object source
The object to be provided as the "source" for any generated events.

 

vetoableChangeSupportSerializedDataVersion

int vetoableChangeSupportSerializedDataVersion
Internal version number

 


Package java.rmi

Class java.rmi.AccessException extends RemoteException implements Serializable

serialVersionUID: 6314925228044966088l

Class java.rmi.AlreadyBoundException extends Exception implements Serializable

serialVersionUID: 9218657361741657110l

Class java.rmi.NotBoundException extends Exception implements Serializable

serialVersionUID: -1857741824849069317l

Class java.rmi.RemoteException extends IOException implements Serializable

serialVersionUID: -5148567311918794206l

Serialized Fields

detail

Throwable detail
Nested Exception to hold wrapped remote exception.

This field predates the general-purpose exception chaining facility. The Throwable.getCause() method is now the preferred means of obtaining this information.

 

Class java.rmi.UnexpectedException extends RemoteException implements Serializable

serialVersionUID: 1800467484195073863l


Package javax.microedition.xlet

Class javax.microedition.xlet.UnavailableContainerException extends Exception implements Serializable

Class javax.microedition.xlet.XletStateChangeException extends Exception implements Serializable


Package javax.microedition.xlet.ixc

Class javax.microedition.xlet.ixc.StubException extends RemoteException implements Serializable


Package java.io

Class java.io.CharConversionException extends IOException implements Serializable

Class java.io.EOFException extends IOException implements Serializable

Class java.io.File extends Object implements Serializable

serialVersionUID: 301077366599181567l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
readObject is called to restore this filename. The original separator character is read. If it is different than the separator character on this system, then the old seperator is replaced by the local separator.


writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
WriteObject is called to save this filename. The separator character is saved also so it can be replaced in case the path is reconstituted on a different host type.

Serialized Fields

path

String path
This abstract pathname's normalized pathname string. A normalized pathname string uses the default name-separator character and does not contain any duplicate or redundant separators.

 

Class java.io.FileNotFoundException extends IOException implements Serializable

Class java.io.FilePermissionCollection extends PermissionCollection implements Serializable

serialVersionUID: 2202956749081564585l

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Serial Data:
"permissions" field (a Vector containing the FilePermissions).
Throws:
IOException
Serialized Fields

permissions

Vector permissions
A list of FilePermission objects.

Class java.io.InterruptedIOException extends IOException implements Serializable

Serialized Fields

bytesTransferred

int bytesTransferred
Reports how many bytes had been transferred as part of the I/O operation before it was interrupted.

 

Class java.io.InvalidClassException extends ObjectStreamException implements Serializable

Serialized Fields

classname

String classname
Name of the invalid class.

Name of the invalid class.

Class java.io.InvalidObjectException extends ObjectStreamException implements Serializable

Class java.io.IOException extends Exception implements Serializable

Class java.io.NotActiveException extends ObjectStreamException implements Serializable

Class java.io.NotSerializableException extends ObjectStreamException implements Serializable

Class java.io.ObjectStreamClass extends Object implements Serializable

serialVersionUID: -6120832682080437368l

Serialized Fields

Class java.io.ObjectStreamException extends IOException implements Serializable

Class java.io.OptionalDataException extends ObjectStreamException implements Serializable

Serialized Fields

length

int length
The number of bytes of primitive data available to be read in the current buffer.

 

eof

boolean eof
True if there is no more data in the buffered part of the stream.

 

Class java.io.SerializablePermission extends BasicPermission implements Serializable

Serialized Fields

actions

String actions
 

Class java.io.StreamCorruptedException extends ObjectStreamException implements Serializable

Class java.io.SyncFailedException extends IOException implements Serializable

Class java.io.UnsupportedEncodingException extends IOException implements Serializable

Class java.io.UTFDataFormatException extends IOException implements Serializable

Class java.io.WriteAbortedException extends ObjectStreamException implements Serializable

serialVersionUID: -3326426625597282442l

Serialized Fields

detail

Exception detail
Exception that was caught while writing the ObjectStream.

This field predates the general-purpose exception chaining facility. The Throwable.getCause() method is now the preferred means of obtaining this information.

 


Package java.lang

Class java.lang.AbstractMethodError extends IncompatibleClassChangeError implements Serializable

Class java.lang.ArithmeticException extends RuntimeException implements Serializable

Class java.lang.ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException implements Serializable

Class java.lang.ArrayStoreException extends RuntimeException implements Serializable

Class java.lang.AssertionError extends Error implements Serializable

Class java.lang.Boolean extends Object implements Serializable

serialVersionUID: -3665804199014368530l

Serialized Fields

value

boolean value
The value of the Boolean.

 

Class java.lang.Byte extends Number implements Serializable

serialVersionUID: -7183698231559129828l

Serialized Fields

value

byte value
The value of the Byte.

 

Class java.lang.Character extends Object implements Serializable

serialVersionUID: 3786198910865385080l

Serialized Fields

value

char value
The value of the Character.

 

Class java.lang.Class extends Object implements Serializable

serialVersionUID: 3206093459760846163l

Serialization Overview
Class Class is special cased within the Serialization Stream Protocol. A Class instance is written intially into an ObjectOutputStream in the following format:
      TC_CLASS ClassDescriptor
      A ClassDescriptor is a special cased serialization of 
      a java.io.ObjectStreamClass instance. 
 
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.

See Also:
ObjectStreamClass
Serialized Fields

Class java.lang.ClassCastException extends RuntimeException implements Serializable

Class java.lang.ClassCircularityError extends LinkageError implements Serializable

Class java.lang.ClassFormatError extends LinkageError implements Serializable

Class java.lang.ClassNotFoundException extends Exception implements Serializable

serialVersionUID: 9176873029745254542l

Serialized Fields

ex

Throwable ex
This field holds the exception ex if the ClassNotFoundException(String s, Throwable ex) constructor was used to instantiate the object

 
Since:
1.2

Class java.lang.CloneNotSupportedException extends Exception implements Serializable

Class java.lang.Double extends Number implements Serializable

serialVersionUID: -9172774392245257468l

Serialized Fields

value

double value
The value of the Double.

 

Class java.lang.Error extends Throwable implements Serializable

serialVersionUID: 4980196508277280342l

Class java.lang.Exception extends Throwable implements Serializable

serialVersionUID: -3387516993124229948l

Class java.lang.ExceptionInInitializerError extends LinkageError implements Serializable

serialVersionUID: 1521711792217232256l

Serialized Fields

exception

Throwable exception
This field holds the exception if the ExceptionInInitializerError(Throwable thrown) constructor was used to instantiate the object

 

Class java.lang.Float extends Number implements Serializable

serialVersionUID: -2671257302660747028l

Serialized Fields

value

float value
The value of the Float.

 

Class java.lang.IllegalAccessError extends IncompatibleClassChangeError implements Serializable

Class java.lang.IllegalAccessException extends Exception implements Serializable

Class java.lang.IllegalArgumentException extends RuntimeException implements Serializable

Class java.lang.IllegalMonitorStateException extends RuntimeException implements Serializable

Class java.lang.IllegalStateException extends RuntimeException implements Serializable

Class java.lang.IllegalThreadStateException extends IllegalArgumentException implements Serializable

Class java.lang.IncompatibleClassChangeError extends LinkageError implements Serializable

Class java.lang.IndexOutOfBoundsException extends RuntimeException implements Serializable

Class java.lang.InstantiationError extends IncompatibleClassChangeError implements Serializable

Class java.lang.InstantiationException extends Exception implements Serializable

Class java.lang.Integer extends Number implements Serializable

serialVersionUID: 1360826667806852920l

Serialized Fields

value

int value
The value of the Integer.

 

Class java.lang.InternalError extends VirtualMachineError implements Serializable

Class java.lang.InterruptedException extends Exception implements Serializable

Class java.lang.LinkageError extends Error implements Serializable

Class java.lang.Long extends Number implements Serializable

serialVersionUID: 4290774380558885855l

Serialized Fields

value

long value
The value of the Long.

 

Class java.lang.NegativeArraySizeException extends RuntimeException implements Serializable

Class java.lang.NoClassDefFoundError extends LinkageError implements Serializable

Class java.lang.NoSuchFieldError extends IncompatibleClassChangeError implements Serializable

Class java.lang.NoSuchFieldException extends Exception implements Serializable

Class java.lang.NoSuchMethodError extends IncompatibleClassChangeError implements Serializable

Class java.lang.NoSuchMethodException extends Exception implements Serializable

Class java.lang.NullPointerException extends RuntimeException implements Serializable

Class java.lang.Number extends Object implements Serializable

serialVersionUID: -8742448824652078965l

Class java.lang.NumberFormatException extends IllegalArgumentException implements Serializable

serialVersionUID: -2848938806368998894l

Class java.lang.OutOfMemoryError extends VirtualMachineError implements Serializable

Class java.lang.RuntimeException extends Exception implements Serializable

serialVersionUID: -7034897190745766939l

Class java.lang.RuntimePermission extends BasicPermission implements Serializable

Class java.lang.SecurityException extends RuntimeException implements Serializable

Class java.lang.Short extends Number implements Serializable

serialVersionUID: 7515723908773894738l

Serialized Fields

value

short value
The value of the Short.

 

Class java.lang.StackOverflowError extends VirtualMachineError implements Serializable

Class java.lang.StackTraceElement extends Object implements Serializable

serialVersionUID: 6992337162326171013l

Serialized Fields

declaringClass

String declaringClass

methodName

String methodName

fileName

String fileName

lineNumber

int lineNumber

isCompiled

boolean isCompiled

methodSignature

String methodSignature

Class java.lang.String extends Object implements Serializable

serialVersionUID: -6849794470754667710l

Serialization Overview
Class String is special cased within the Serialization Stream Protocol. A String instance is written intially into an ObjectOutputStream in the following format:
      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 extends Object implements Serializable

serialVersionUID: 3388685877147921107l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
readObject is called to restore the state of the StringBuffer from a stream.

Serialized Fields

value

char[] value
The value is used for character storage.

 

count

int count
The count is the number of characters in the buffer.

 

shared

boolean shared
A flag indicating whether the buffer is shared

 

Class java.lang.StringIndexOutOfBoundsException extends IndexOutOfBoundsException implements Serializable

Class java.lang.ThreadDeath extends Error implements Serializable

Class java.lang.Throwable extends Object implements Serializable

serialVersionUID: -3042686055658047285l

Serialization Methods

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Serialized Fields

detailMessage

String detailMessage
Specific details about the Throwable. For example, for FileNotFoundException, this contains the name of the file that could not be found.

 

cause

Throwable cause
The throwable that caused this throwable to get thrown, or null if this throwable was not caused by another throwable, or if the causative throwable is unknown. If this field is equal to this throwable itself, it indicates that the cause of this throwable has not yet been initialized.

 
Since:
1.4

stackTrace

StackTraceElement[] stackTrace
The stack trace, as returned by Throwable.getStackTrace().

 
Since:
1.4

Class java.lang.UnknownError extends VirtualMachineError implements Serializable

Class java.lang.UnsatisfiedLinkError extends LinkageError implements Serializable

Class java.lang.UnsupportedClassVersionError extends ClassFormatError implements Serializable

Class java.lang.UnsupportedOperationException extends RuntimeException implements Serializable

Class java.lang.VerifyError extends LinkageError implements Serializable

Class java.lang.VirtualMachineError extends Error implements Serializable


Package java.lang.reflect

Class java.lang.reflect.InvocationTargetException extends Exception implements Serializable

serialVersionUID: 4085088731926701167l

Serialized Fields

target

Throwable target
This field holds the target if the InvocationTargetException(Throwable target) constructor was used to instantiate the object

 

Class java.lang.reflect.Proxy extends Object implements Serializable

Serialized Fields

h

InvocationHandler h
the invocation handler for this proxy instance.

 

Class java.lang.reflect.ReflectPermission extends BasicPermission implements Serializable

Class java.lang.reflect.UndeclaredThrowableException extends RuntimeException implements Serializable

serialVersionUID: 330127114055056639l

Serialized Fields

undeclaredThrowable

Throwable undeclaredThrowable
the undeclared checked exception that was thrown

 


Package java.math

Class java.math.BigDecimal extends Number implements Serializable

serialVersionUID: 6108874887143696463l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reconstitute the BigDecimal instance from a stream (that is, deserialize it).

Serialized Fields

intVal

BigInteger intVal
The unscaled value of this BigDecimal, as returned by unscaledValue().

 
See Also:
BigDecimal.unscaledValue()

scale

int scale
The scale of this BigDecimal, as returned by scale().

 
See Also:
BigDecimal.scale()

Class java.math.BigInteger extends Number implements Serializable

serialVersionUID: -8287574255936472291l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reconstitute the 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.


writeReplace

private Object writeReplace()
Ensure that magnitude (the obsolete byte array representation) is set prior to serializaing this BigInteger. This provides a serialized form that is compatible with older (pre-1.3) versions.

Serialized Fields

signum

int signum
The signum of this BigInteger: -1 for negative, 0 for zero, or 1 for positive. Note that the BigInteger zero must have a signum of 0. This is necessary to ensures that there is exactly one representation for each BigInteger value.

 

magnitude

byte[] magnitude
This field is required for historical reasons. The magnitude of a BigInteger used to be in a byte representation, and is still serialized that way. The mag field is used in all real computations but the magnitude field is required for storage.

 

bitCount

int bitCount
The bitCount of this BigInteger, as returned by bitCount(), or -1 (either value is acceptable).

 
See Also:
BigInteger.bitCount()

bitLength

int bitLength
The bitLength of this BigInteger, as returned by bitLength(), or -1 (either value is acceptable).

 
See Also:
BigInteger.bitLength()

lowestSetBit

int lowestSetBit
The lowest set bit of this BigInteger, as returned by getLowestSetBit(), or -2 (either value is acceptable).

 
See Also:
BigInteger.getLowestSetBit()

firstNonzeroByteNum

int firstNonzeroByteNum
The index of the lowest-order byte in the magnitude of this BigInteger that contains a nonzero byte, or -2 (either value is acceptable). The least significant byte has int-number 0, the next byte in order of increasing significance has byte-number 1, and so forth.

 


Package java.net

Class java.net.BindException extends SocketException implements Serializable

Class java.net.ConnectException extends SocketException implements Serializable

Class java.net.Inet4Address extends InetAddress implements Serializable

serialVersionUID: 3286316764910316507l

Serialization Methods

writeReplace

private Object writeReplace()
                     throws ObjectStreamException
Replaces the object to be serialized with an InetAddress object.

Throws:
ObjectStreamException - if a new object replacing this object could not be created

Class java.net.Inet6Address extends InetAddress implements Serializable

serialVersionUID: 6880410070516793377l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Serialized Fields

ipaddress

byte[] ipaddress
Holds a 128-bit (16 bytes) IPv6 address.

 

Class java.net.InetAddress extends Object implements Serializable

serialVersionUID: 3286316764910316507l

Serialization Methods

readResolve

private Object readResolve()
                    throws ObjectStreamException
Replaces the de-serialized object with an Inet4Address object.

Throws:
ObjectStreamException - if a new object replacing this object could not be created
Serialized Fields

hostName

String hostName
 

address

int address
Holds a 32-bit IPv4 address.

 

family

int family
Specifies the address family type, for instance, '1' for IPv4 addresses, and '2' for IPv6 addresses.

 

Class java.net.InetSocketAddress extends SocketAddress implements Serializable

serialVersionUID: 5076001401234631237l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Serialized Fields

hostname

String hostname

addr

InetAddress addr

port

int port

Class java.net.MalformedURLException extends IOException implements Serializable

Class java.net.NetPermission extends BasicPermission implements Serializable

serialVersionUID: -8343910153355041693l

Class java.net.NoRouteToHostException extends SocketException implements Serializable

Class java.net.PortUnreachableException extends SocketException implements Serializable

Class java.net.ProtocolException extends IOException implements Serializable

Class java.net.SocketAddress extends Object implements Serializable

Class java.net.SocketException extends IOException implements Serializable

Class java.net.SocketPermissionCollection extends PermissionCollection implements Serializable

serialVersionUID: 2787186408602843674l

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Serial Data:
"permissions" field (a Vector containing the SocketPermissions).
Throws:
IOException
Serialized Fields

permissions

Vector permissions
A list of the SocketPermissions for this set.

Class java.net.SocketTimeoutException extends InterruptedIOException implements Serializable

Class java.net.UnknownHostException extends IOException implements Serializable

Class java.net.UnknownServiceException extends IOException implements Serializable

Class java.net.URI extends Object implements Serializable

serialVersionUID: -6052424284110960213l

Serialization Methods

readObject

private void readObject(ObjectInputStream is)
                 throws ClassNotFoundException,
                        IOException
Reconstitutes a URI from the given serial stream.

The ObjectInputStream.defaultReadObject() method is invoked to read the value of the string field. The result is then parsed in the usual way.


writeObject

private void writeObject(ObjectOutputStream os)
                  throws IOException
Saves the content of this URI to the given serial stream.

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.

Serialized Fields

string

String string
The string form of this URI.

 

Class java.net.URISyntaxException extends Exception implements Serializable

Serialized Fields

input

String input

index

int index

Class java.net.URL extends Object implements Serializable

serialVersionUID: -7627629688361524110l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
readObject is called to restore the state of the URL from the stream. It reads the components of the URL and finds the local stream handler.


writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
WriteObject is called to save the state of the URL to an ObjectOutputStream. The handler is not saved since it is specific to this system.

Serial Data:
the default write object value. When read back in, the reader must ensure that calling getURLStreamHandler with the protocol variable returns a valid URLStreamHandler and throw an IOException if it does not.
Throws:
IOException
Serialized Fields

protocol

String protocol
The protocol to use (ftp, http, nntp, ... etc.) .

 

host

String host
The host name to connect to.

 

port

int port
The protocol port to connect to.

 

file

String file
The specified file name on that host. file is defined as path[?query]

 

authority

String authority
The authority part of this URL.

 

ref

String ref
# reference.

 

hashCode

int hashCode


Package java.security

Class java.security.AccessControlException extends SecurityException implements Serializable

Serialized Fields

perm

Permission perm

Class java.security.AllPermissionCollection extends PermissionCollection implements Serializable

serialVersionUID: -4023755556366636806l

Serialized Fields

all_allowed

boolean all_allowed

Class java.security.BasicPermission extends Permission implements Serializable

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
readObject is called to restore the state of the BasicPermission from a stream.

Class java.security.BasicPermissionCollection extends PermissionCollection implements Serializable

serialVersionUID: 739301742472979399l

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
readObject is called to restore the state of the BasicPermissionCollection from a stream.


writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Serial Data:
Default fields.
Throws:
IOException
Serialized Fields

all_allowed

boolean all_allowed
This is set to true if this BasicPermissionCollection contains a BasicPermission with '*' as its permission name.

permClass

Class permClass
The class to which all BasicPermissions in this BasicPermissionCollection belongs.

permissions

Hashtable permissions
The BasicPermissions in this BasicPermissionCollection. All BasicPermissions in the collection must belong to the same class. The Hashtable is indexed by the BasicPermission name; the value of the Hashtable entry is the permission.

Class java.security.CodeSource extends Object implements Serializable

Serialization Methods

readObject

private void readObject(ObjectInputStream ois)
                 throws IOException,
                        ClassNotFoundException
Restores this object from a stream (i.e., deserializes it).


writeObject

private void writeObject(ObjectOutputStream oos)
                  throws IOException
Writes this object out to a stream (i.e., serializes it).

Serial Data:
An initial 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.
Throws:
IOException
Serialized Fields

location

URL location
The code location.

 

Class java.security.DigestException extends GeneralSecurityException implements Serializable

Class java.security.GeneralSecurityException extends Exception implements Serializable

Class java.security.GuardedObject extends Object implements Serializable

Serialization Methods

writeObject

private void writeObject(ObjectOutputStream oos)
                  throws IOException
Writes this object out to a stream (i.e., serializes it). We check the guard if there is one.

Serialized Fields

object

Object object

guard

Guard guard

Class java.security.Identity extends Object implements Serializable

serialVersionUID: 3609922007826600659l

Serialized Fields

name

String name
Deprecated. 
The name for this identity.

 

publicKey

PublicKey publicKey
Deprecated. 
The public key for this identity.

 

info

String info
Deprecated. 
Generic, descriptive information about the identity.

 

scope

IdentityScope scope
Deprecated. 
The scope of the identity.

 

certificates

Vector certificates
Deprecated. 
The certificates for this identity.

 

Class java.security.IdentityScope extends Identity implements Serializable

Class java.security.InvalidAlgorithmParameterException extends GeneralSecurityException implements Serializable

Class java.security.InvalidKeyException extends KeyException implements Serializable

Class java.security.InvalidParameterException extends IllegalArgumentException implements Serializable

Class java.security.KeyException extends GeneralSecurityException implements Serializable

Class java.security.KeyManagementException extends KeyException implements Serializable

Class java.security.KeyPair extends Object implements Serializable

Serialized Fields

privateKey

PrivateKey privateKey

publicKey

PublicKey publicKey

Class java.security.KeyStoreException extends GeneralSecurityException implements Serializable

Class java.security.NoSuchAlgorithmException extends GeneralSecurityException implements Serializable

Class java.security.NoSuchProviderException extends GeneralSecurityException implements Serializable

Class java.security.Permission extends Object implements Serializable

Serialized Fields

name

String name

Class java.security.PermissionCollection extends Object implements Serializable

serialVersionUID: -6727011328946861783l

Serialized Fields

readOnly

boolean readOnly

Class java.security.PermissionsHash extends PermissionCollection implements Serializable

serialVersionUID: -8491988220802933440l

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Serial Data:
Default fields.
Throws:
IOException
Serialized Fields

perms

Hashtable perms
A table of the Permissions (both key and value are same).

Class java.security.PrivilegedActionException extends Exception implements Serializable

serialVersionUID: 4724086851538908602l

Serialized Fields

exception

Exception exception
 

Class java.security.Provider extends Properties implements Serializable

serialVersionUID: -4298000515446427739l

Serialized Fields

name

String name
The provider name.

 

info

String info
A description of the provider and its services.

 

version

double version
The provider version number.

 

Class java.security.ProviderException extends RuntimeException implements Serializable

Class java.security.SecureRandom extends Random implements Serializable

serialVersionUID: 4940670005562187l

Serialized Fields

provider

Provider provider
The provider.

 
Since:
1.2

secureRandomSpi

SecureRandomSpi secureRandomSpi
The provider implementation.

 
Since:
1.2

state

byte[] state
 

digest

MessageDigest digest
 

randomBytes

byte[] randomBytes
We know that the MessageDigest class does not implement java.io.Serializable. However, since this field is no longer used, it will always be NULL and won't affect the serialization of the SecureRandom class itself.

randomBytesUsed

int randomBytesUsed
 

counter

long counter
 

Class java.security.SecureRandomSpi extends Object implements Serializable

Class java.security.SecurityPermission extends BasicPermission implements Serializable

Class java.security.SignatureException extends GeneralSecurityException implements Serializable

Class java.security.SignedObject extends Object implements Serializable

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
readObject is called to restore the state of the SignedObject from a stream.

Serialized Fields

content

byte[] content

signature

byte[] signature

thealgorithm

String thealgorithm

Class java.security.Signer extends Identity implements Serializable

Serialized Fields

privateKey

PrivateKey privateKey
Deprecated. 
The signer's private key.

 

Class java.security.UnrecoverableKeyException extends GeneralSecurityException implements Serializable

Class java.security.UnresolvedPermission extends Permission implements Serializable

Serialization Methods

readObject

private void readObject(ObjectInputStream ois)
                 throws IOException,
                        ClassNotFoundException
Restores this object from a stream (i.e., deserializes it).


writeObject

private void writeObject(ObjectOutputStream oos)
                  throws IOException
Writes this object out to a stream (i.e., serializes it).

Serial Data:
An initial 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.
Throws:
IOException
Serialized Fields

type

String type
The class name of the Permission class that will be created when this unresolved permission is resolved.

 

name

String name
The permission name.

 

actions

String actions
The actions of the permission.

 

Class java.security.UnresolvedPermissionCollection extends PermissionCollection implements Serializable

serialVersionUID: -7176153071733132400l

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Serial Data:
Default field.
Throws:
IOException
Serialized Fields

permissions

Hashtable permissions
A table of the UnresolvedPermissions keyed on type, value is Vector of permissions


Package java.security.acl

Class java.security.acl.AclNotFoundException extends Exception implements Serializable

Class java.security.acl.LastOwnerException extends Exception implements Serializable

Class java.security.acl.NotOwnerException extends Exception implements Serializable


Package java.security.cert

Class java.security.cert.Certificate extends Object implements Serializable

Serialization Methods

writeReplace

protected Object writeReplace()
                       throws ObjectStreamException
Replace the Certificate to be serialized.

Throws:
ObjectStreamException - if a new object representing this Certificate could not be created
Serialized Fields

type

String type

Class java.security.cert.Certificate.CertificateRep extends Object implements Serializable

Serialization Methods

readResolve

protected Object readResolve()
                      throws ObjectStreamException
Resolve the Certificate Object.

Throws:
ObjectStreamException - if the Certificate could not be resolved
Serialized Fields

type

String type

data

byte[] data

Class java.security.cert.CertificateEncodingException extends CertificateException implements Serializable

Class java.security.cert.CertificateException extends GeneralSecurityException implements Serializable

Class java.security.cert.CertificateExpiredException extends CertificateException implements Serializable

Class java.security.cert.CertificateNotYetValidException extends CertificateException implements Serializable

Class java.security.cert.CertificateParsingException extends CertificateException implements Serializable

Class java.security.cert.CertPath extends Object implements Serializable

Serialization Methods

writeReplace

protected Object writeReplace()
                       throws ObjectStreamException
Replaces the CertPath to be serialized with a CertPathRep object.

Throws:
ObjectStreamException - if a CertPathRep object representing this certification path could not be created
Serialized Fields

type

String type

Class java.security.cert.CertPath.CertPathRep extends Object implements Serializable

Serialization Methods

readResolve

protected Object readResolve()
                      throws ObjectStreamException
Returns a CertPath constructed from the type and data.

Throws:
ObjectStreamException - if a CertPath could not be constructed
Serialized Fields

type

String type
The Certificate type


data

byte[] data
The encoded form of the cert path

Class java.security.cert.CRLException extends GeneralSecurityException implements Serializable

Class java.security.cert.X509Certificate extends Certificate implements Serializable


Package java.security.spec

Class java.security.spec.InvalidKeySpecException extends GeneralSecurityException implements Serializable

Class java.security.spec.InvalidParameterSpecException extends GeneralSecurityException implements Serializable


Package java.text

Class java.text.AttributedCharacterIterator.Attribute extends Object implements Serializable

serialVersionUID: -9142742483513960612l

Serialization Methods

readResolve

protected Object readResolve()
                      throws InvalidObjectException
Resolves instances being deserialized to the predefined constants.

Serialized Fields

name

String name
The name of this Attribute. The name is used primarily by readResolve to look up the corresponding predefined instance when deserializing an instance.

 

Class java.text.ChoiceFormat extends NumberFormat implements Serializable

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
After reading an object from the input stream, do a simple verification to maintain class invariants.

Throws:
InvalidObjectException - if the objects read from the stream is invalid.
IOException
ClassNotFoundException
Serialized Fields

choiceLimits

double[] choiceLimits
A list of lower bounds for the choices. The formatter will return choiceFormats[i] if the number being formatted is greater than or equal to choiceLimits[i] and less than choiceLimits[i+1].

 

choiceFormats

String[] choiceFormats
A list of choice strings. The formatter will return 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 extends Format implements Serializable

serialVersionUID: 7218322306649953788l

Serialized Fields

calendar

Calendar calendar
The calendar that 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 numberFormat
The number formatter that 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.DateFormat.Field extends Format.Field implements Serializable

Serialization Methods

readResolve

protected Object readResolve()
                      throws InvalidObjectException
Resolves instances being deserialized to the predefined constants.

Throws:
InvalidObjectException - if the constant could not be resolved.
Serialized Fields

calendarField

int calendarField
Calendar field.

Class java.text.DateFormatSymbols extends Object implements Serializable

serialVersionUID: -5987973545549424702l

Serialized Fields

eras

String[] eras
Era strings. For example: "AD" and "BC". An array of 2 strings, indexed by Calendar.BC and Calendar.AD.

 

months

String[] months
Month strings. For example: "January", "February", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.

 

shortMonths

String[] shortMonths
Short month strings. For example: "Jan", "Feb", etc. An array of 13 strings (some calendars have 13 months), indexed by Calendar.JANUARY, Calendar.FEBRUARY, etc.

 

weekdays

String[] weekdays
Weekday strings. For example: "Sunday", "Monday", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element weekdays[0] is ignored.

 

shortWeekdays

String[] shortWeekdays
Short weekday strings. For example: "Sun", "Mon", etc. An array of 8 strings, indexed by Calendar.SUNDAY, Calendar.MONDAY, etc. The element shortWeekdays[0] is ignored.

 

ampms

String[] ampms
AM and PM strings. For example: "AM" and "PM". An array of 2 strings, indexed by Calendar.AM and Calendar.PM.

 

zoneStrings

String[][] zoneStrings
Localized names of time zones in this locale. This is a two-dimensional array of strings of size n by m, where m is at least 5. Each of the n rows is an entry containing the localized names for a single TimeZone. Each such row contains (with i ranging from 0..n-1): The zone ID is not localized; it corresponds to the ID value associated with a system time zone object. All other entries are localized names. If a zone does not implement daylight savings time, the daylight savings time names are ignored.

 
See Also:
TimeZone

localPatternChars

String localPatternChars
Localized date-time pattern characters. For example, a locale may wish to use 'u' rather than 'y' to represent years in its date format pattern strings. This string must be exactly 18 characters long, with the index of the characters described by 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 extends NumberFormat implements Serializable

serialVersionUID: 864413376551465018l

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
First, read the default serializable fields from the stream. Then if 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

positivePrefix

String positivePrefix
The symbol used as a prefix when formatting positive numbers, e.g. "+".

 
See Also:
DecimalFormat.getPositivePrefix()

positiveSuffix

String positiveSuffix
The symbol used as a suffix when formatting positive numbers. This is often an empty string.

 
See Also:
DecimalFormat.getPositiveSuffix()

negativePrefix

String negativePrefix
The symbol used as a prefix when formatting negative numbers, e.g. "-".

 
See Also:
DecimalFormat.getNegativePrefix()

negativeSuffix

String negativeSuffix
The symbol used as a suffix when formatting negative numbers. This is often an empty string.

 
See Also:
DecimalFormat.getNegativeSuffix()

posPrefixPattern

String posPrefixPattern
The prefix pattern for non-negative numbers. This variable corresponds to 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.

 
Since:
1.3

posSuffixPattern

String posSuffixPattern
The suffix pattern for non-negative numbers. This variable corresponds to positiveSuffix. This variable is analogous to posPrefixPattern; see that variable for further documentation.

 
Since:
1.3

negPrefixPattern

String negPrefixPattern
The prefix pattern for negative numbers. This variable corresponds to negativePrefix. This variable is analogous to posPrefixPattern; see that variable for further documentation.

 
Since:
1.3

negSuffixPattern

String negSuffixPattern
The suffix pattern for negative numbers. This variable corresponds to negativeSuffix. This variable is analogous to posPrefixPattern; see that variable for further documentation.

 
Since:
1.3

multiplier

int multiplier
The multiplier for use in percent, permill, etc.

 
See Also:
DecimalFormat.getMultiplier()

groupingSize

byte groupingSize
The number of digits between grouping separators in the integer portion of a number. Must be greater than 0 if NumberFormat.groupingUsed is true.

 
See Also:
DecimalFormat.getGroupingSize(), NumberFormat.isGroupingUsed()

decimalSeparatorAlwaysShown

boolean decimalSeparatorAlwaysShown
If true, forces the decimal separator to always appear in a formatted number, even if the fractional part of the number is zero.

 
See Also:
DecimalFormat.isDecimalSeparatorAlwaysShown()

symbols

DecimalFormatSymbols symbols
The DecimalFormatSymbols object used by this format. It contains the symbols used to format numbers, e.g. the grouping separator, decimal separator, and so on.

 
See Also:
DecimalFormat.setDecimalFormatSymbols(java.text.DecimalFormatSymbols), DecimalFormatSymbols

useExponentialNotation

boolean useExponentialNotation
True to force the use of exponential (i.e. scientific) notation when formatting numbers.

 
Since:
1.2

minExponentDigits

byte minExponentDigits
The minimum number of digits used to display the exponent when a number is formatted in exponential notation. This field is ignored if useExponentialNotation is not true.

 
Since:
1.2

serialVersionOnStream

int serialVersionOnStream
The internal serial version which says which version was written. Possible values are:

 
Since:
1.2

Class java.text.DecimalFormatSymbols extends Object implements Serializable

serialVersionUID: 5772796243397350300l

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
Reads the default serializable fields, provides default values for objects in older serial versions, and initializes non-serializable fields. If serialVersionOnStream is less than 1, initializes monetarySeparator to be the same as decimalSeparator and exponential to be 'E'. If serialVersionOnStream is less then 2, initializes localeto the root locale. 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.

Throws:
IOException
ClassNotFoundException
Since:
JDK 1.1.6
Serialized Fields

zeroDigit

char zeroDigit
Character used for zero.

 
See Also:
DecimalFormatSymbols.getZeroDigit()

groupingSeparator

char groupingSeparator
Character used for thousands separator.

 
See Also:
DecimalFormatSymbols.getGroupingSeparator()

decimalSeparator

char decimalSeparator
Character used for decimal sign.

 
See Also:
DecimalFormatSymbols.getDecimalSeparator()

perMill

char perMill
Character used for mille percent sign.

 
See Also:
DecimalFormatSymbols.getPerMill()

percent

char percent
Character used for percent sign.

 
See Also:
DecimalFormatSymbols.getPercent()

digit

char digit
Character used for a digit in a pattern.

 
See Also:
DecimalFormatSymbols.getDigit()

patternSeparator

char patternSeparator
Character used to separate positive and negative subpatterns in a pattern.

 
See Also:
DecimalFormatSymbols.getPatternSeparator()

infinity

String infinity
String used to represent infinity.

 
See Also:
DecimalFormatSymbols.getInfinity()

NaN

String NaN
String used to represent "not a number".

 
See Also:
DecimalFormatSymbols.getNaN()

minusSign

char minusSign
Character used to represent minus sign.

 
See Also:
DecimalFormatSymbols.getMinusSign()

currencySymbol

String currencySymbol
String denoting the local currency, e.g. "$".

 
See Also:
DecimalFormatSymbols.getCurrencySymbol()

intlCurrencySymbol

String intlCurrencySymbol
ISO 4217 currency code denoting the local currency, e.g. "USD".

 
See Also:
DecimalFormatSymbols.getInternationalCurrencySymbol()

monetarySeparator

char monetarySeparator
The decimal separator used when formatting currency values.

 
Since:
JDK 1.1.6
See Also:
DecimalFormatSymbols.getMonetaryDecimalSeparator()

exponential

char exponential
The character used to distinguish the exponent in a number formatted in exponential notation, e.g. 'E' for a number such as "1.23E45".

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.

 
Since:
JDK 1.1.6

locale

Locale locale
The locale of these currency format symbols.

 
Since:
1.4

serialVersionOnStream

int serialVersionOnStream
Describes the version of DecimalFormatSymbols present on the stream. Possible values are: When streaming out a DecimalFormatSymbols, the most recent format (corresponding to the highest allowable serialVersionOnStream) is always written.

 
Since:
JDK 1.1.6

Class java.text.Format extends Object implements Serializable

serialVersionUID: -299282585814624189l

Class java.text.Format.Field extends AttributedCharacterIterator.Attribute implements Serializable

Class java.text.MessageFormat extends Format implements Serializable

serialVersionUID: 6479157306784022952l

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
After reading an object from the input stream, do a simple verification to maintain class invariants.

Throws:
InvalidObjectException - if the objects read from the stream is invalid.
IOException
ClassNotFoundException
Serialized Fields

locale

Locale locale
The locale to use for formatting numbers and dates.

 

pattern

String pattern
The string that the formatted values are to be plugged into. In other words, this is the pattern supplied on construction with all of the {} expressions taken out.

 

formats

Format[] formats
An array of formatters, which are used to format the arguments.

 

offsets

int[] offsets
The positions where the results of formatting each argument are to be inserted into the pattern.

 

argumentNumbers

int[] argumentNumbers
The argument numbers corresponding to each formatter. (The formatters are stored in the order they occur in the pattern, not in the order in which the arguments are specified.)

 

maxOffset

int maxOffset
One less than the number of entries in 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.MessageFormat.Field extends Format.Field implements Serializable

Serialization Methods

readResolve

protected Object readResolve()
                      throws InvalidObjectException
Resolves instances being deserialized to the predefined constants.

Throws:
InvalidObjectException - if the constant could not be resolved.

Class java.text.NumberFormat extends Format implements Serializable

serialVersionUID: -2308460125733713944l

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
First, read in the default serializable data. Then, if 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.

Throws:
IOException
ClassNotFoundException
Since:
1.2

writeObject

private void writeObject(ObjectOutputStream stream)
                  throws IOException
Write out the default serializable data, after first setting the 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.

Throws:
IOException
Since:
1.2
Serialized Fields

groupingUsed

boolean groupingUsed
True if the the grouping (i.e. thousands) separator is used when formatting and parsing numbers.

 
See Also:
NumberFormat.isGroupingUsed()

maxIntegerDigits

byte maxIntegerDigits
The maximum number of digits allowed in the integer portion of a number. 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.

 
See Also:
NumberFormat.getMaximumIntegerDigits()

minIntegerDigits

byte minIntegerDigits
The minimum number of digits allowed in the integer portion of a number. 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.

 
See Also:
NumberFormat.getMinimumIntegerDigits()

maxFractionDigits

byte maxFractionDigits
The maximum number of digits allowed in the fractional portion of a number. 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.

 
See Also:
NumberFormat.getMaximumFractionDigits()

minFractionDigits

byte minFractionDigits
The minimum number of digits allowed in the fractional portion of a number. 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.

 
See Also:
NumberFormat.getMinimumFractionDigits()

parseIntegerOnly

boolean parseIntegerOnly
True if this format will parse numbers as integers only.

 
See Also:
NumberFormat.isParseIntegerOnly()

maximumIntegerDigits

int maximumIntegerDigits
The maximum number of digits allowed in the integer portion of a number. maximumIntegerDigits must be greater than or equal to minimumIntegerDigits.

 
Since:
1.2
See Also:
NumberFormat.getMaximumIntegerDigits()

minimumIntegerDigits

int minimumIntegerDigits
The minimum number of digits allowed in the integer portion of a number. minimumIntegerDigits must be less than or equal to maximumIntegerDigits.

 
Since:
1.2
See Also:
NumberFormat.getMinimumIntegerDigits()

maximumFractionDigits

int maximumFractionDigits
The maximum number of digits allowed in the fractional portion of a number. maximumFractionDigits must be greater than or equal to minimumFractionDigits.

 
Since:
1.2
See Also:
NumberFormat.getMaximumFractionDigits()

minimumFractionDigits

int minimumFractionDigits
The minimum number of digits allowed in the fractional portion of a number. minimumFractionDigits must be less than or equal to maximumFractionDigits.

 
Since:
1.2
See Also:
NumberFormat.getMinimumFractionDigits()

serialVersionOnStream

int serialVersionOnStream
Describes the version of NumberFormat present on the stream. Possible values are: When streaming out a NumberFormat, the most recent format (corresponding to the highest allowable serialVersionOnStream) is always written.

 
Since:
1.2

Class java.text.NumberFormat.Field extends Format.Field implements Serializable

Serialization Methods

readResolve

protected Object readResolve()
                      throws InvalidObjectException
Resolves instances being deserialized to the predefined constants.

Throws:
InvalidObjectException - if the constant could not be resolved.

Class java.text.ParseException extends Exception implements Serializable

Serialized Fields

errorOffset

int errorOffset
The zero-based character offset into the string being parsed at which the error was found during parsing.

 

Class java.text.SimpleDateFormat extends DateFormat implements Serializable

serialVersionUID: 4774881970558875024l

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
After reading an object from the input stream, the format pattern in the object is verified.

Throws:
InvalidObjectException - if the pattern is invalid
IOException
ClassNotFoundException
Serialized Fields

serialVersionOnStream

int serialVersionOnStream
The version of the serialized data on the stream. Possible values: When streaming out this class, the most recent format and the highest allowable serialVersionOnStream is written.

 
Since:
JDK1.1.4

pattern

String pattern
The pattern string of this formatter. This is always a non-localized pattern. May not be null. See class documentation for details.

 

formatData

DateFormatSymbols formatData
The symbols used by this formatter for week names, month names, etc. May not be null.

 
See Also:
DateFormatSymbols

defaultCenturyStart

Date defaultCenturyStart
We map dates with two-digit years into the century starting at defaultCenturyStart, which may be any date. May not be null.

 
Since:
JDK1.1.4


Package java.util

Class java.util.ArrayList extends AbstractList implements Serializable

serialVersionUID: 8683452581122892189l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reconstitute the ArrayList instance from a stream (that is, deserialize it).


writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Save the state of the ArrayList instance to a stream (that is, serialize it).

Serial Data:
The length of the array backing the ArrayList instance is emitted (int), followed by all of its elements (each an Object) in the proper order.
Throws:
IOException
Serialized Fields

size

int size
The size of the ArrayList (the number of elements it contains).

 

Class java.util.Arrays.ArrayList extends AbstractList implements Serializable

serialVersionUID: -2764017481108945198l

Serialized Fields

a

Object[] a

Class java.util.BitSet extends Object implements Serializable

serialVersionUID: 7997698588986878753l

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
This override of readObject makes sure unitsInUse is set properly when deserializing a bitset

Serialized Fields

bits

long[] bits
The bits in this BitSet. The ith bit is stored in bits[i/64] at bit position i % 64 (where bit position 0 refers to the least significant bit and 63 refers to the most significant bit). INVARIANT: The words in bits[] above unitInUse-1 are zero.

 

Class java.util.Calendar extends Object implements Serializable

serialVersionUID: -1807547505821590642l

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
Reconstitute this object from a stream (i.e., deserialize it).


writeObject

private void writeObject(ObjectOutputStream stream)
                  throws IOException
Save the state of this object to a stream (i.e., serialize it). Ideally, 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

fields

int[] fields
The field values for the currently set time for this calendar. This is an array of FIELD_COUNT integers, with index values ERA through DST_OFFSET.

 

isSet

boolean[] isSet
The flags which tell if a specified time field for the calendar is set. A new object has no fields set. After the first call to a method which generates the fields, they all remain set after that. This is an array of FIELD_COUNT booleans, with index values ERA through DST_OFFSET.

 

time

long time
The currently set time for this calendar, expressed in milliseconds after January 1, 1970, 0:00:00 GMT.

 
See Also:
Calendar.isTimeSet

isTimeSet

boolean isTimeSet
True if then the value of time is valid. The time is made invalid by a change to an item of field[].

 
See Also:
Calendar.time

areFieldsSet

boolean areFieldsSet
True if 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.

 

lenient

boolean lenient
True if this calendar allows out-of-range field values during computation of time from fields[].

 
See Also:
Calendar.setLenient(boolean)

zone

TimeZone zone
The TimeZone used by this calendar. Calendar uses the time zone data to translate between locale and GMT time.

 

firstDayOfWeek

int firstDayOfWeek
The first day of the week, with possible values SUNDAY, MONDAY, etc. This is a locale-dependent value.

 

minimalDaysInFirstWeek

int minimalDaysInFirstWeek
The number of days required for the first week in a month or year, with possible values from 1 to 7. This is a locale-dependent value.

 

nextStamp

int nextStamp
The next available value for 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.

 

serialVersionOnStream

int serialVersionOnStream
The version of the serialized data on the stream. Possible values:
0 or not present on stream
JDK 1.1.5 or earlier.
1
JDK 1.1.6 or later. Writes a correct 'time' value as well as compatible values for other fields. This is a transitional format.
When streaming out this class, the most recent format and the highest allowable serialVersionOnStream is written.

 
Since:
JDK1.1.6

Class java.util.Collections.CopiesList extends AbstractList implements Serializable

serialVersionUID: 2739099268398711800l

Serialized Fields

n

int n

element

Object element

Class java.util.Collections.EmptyList extends AbstractList implements Serializable

serialVersionUID: 8842843931221139166l

Serialization Methods

readResolve

private Object readResolve()

Class java.util.Collections.EmptySet extends AbstractSet implements Serializable

serialVersionUID: 1582296315990362920l

Serialization Methods

readResolve

private Object readResolve()

Class java.util.Collections.ReverseComparator extends Object implements Serializable

serialVersionUID: 7207038068494060240l

Class java.util.Collections.SingletonSet extends AbstractSet implements Serializable

serialVersionUID: 3193687207550431679l

Serialized Fields

element

Object element

Class java.util.Collections.SynchronizedCollection extends Object implements Serializable

serialVersionUID: 3053995032091335093l

Serialized Fields

c

Collection c

mutex

Object mutex

Class java.util.Collections.SynchronizedList extends java.util.Collections.SynchronizedCollection implements Serializable

serialVersionUID: -7754090372962971524l

Serialization Methods

readResolve

private Object readResolve()
SynchronizedRandomAccessList instances are serialized as SynchronizedList instances to allow them to be deserialized in pre-1.4 JREs (which do not have SynchronizedRandomAccessList). This method inverts the transformation. As a beneficial side-effect, it also grafts the RandomAccess marker onto SynchronizedList instances that were serialized in pre-1.4 JREs. Note: Unfortunately, SynchronizedRandomAccessList instances serialized in 1.4.1 and deserialized in 1.4 will become SynchronizedList instances, as this method was missing in 1.4.

Serialized Fields

list

List list

Class java.util.Collections.SynchronizedMap extends Object implements Serializable

serialVersionUID: 1978198479659022715l

Serialized Fields

m

Map m

mutex

Object mutex

Class java.util.Collections.SynchronizedRandomAccessList extends java.util.Collections.SynchronizedList implements Serializable

serialVersionUID: 1530674583602358482l

Serialization Methods

writeReplace

private Object writeReplace()
Allows instances to be deserialized in pre-1.4 JREs (which do not have SynchronizedRandomAccessList). SynchronizedList has a readResolve method that inverts this transformation upon deserialization.

Class java.util.Collections.SynchronizedSet extends java.util.Collections.SynchronizedCollection implements Serializable

Class java.util.Collections.SynchronizedSortedMap extends java.util.Collections.SynchronizedMap implements Serializable

Serialized Fields

sm

SortedMap sm

Class java.util.Collections.SynchronizedSortedSet extends java.util.Collections.SynchronizedSet implements Serializable

Serialized Fields

ss

SortedSet ss

Class java.util.Collections.UnmodifiableCollection extends Object implements Serializable

serialVersionUID: 1820017752578914078l

Serialized Fields

c

Collection c

Class java.util.Collections.UnmodifiableList extends java.util.Collections.UnmodifiableCollection implements Serializable

serialVersionUID: -283967356065247728l

Serialization Methods

readResolve

private Object readResolve()
UnmodifiableRandomAccessList instances are serialized as UnmodifiableList instances to allow them to be deserialized in pre-1.4 JREs (which do not have UnmodifiableRandomAccessList). This method inverts the transformation. As a beneficial side-effect, it also grafts the RandomAccess marker onto UnmodifiableList instances that were serialized in pre-1.4 JREs. Note: Unfortunately, UnmodifiableRandomAccessList instances serialized in 1.4.1 and deserialized in 1.4 will become UnmodifiableList instances, as this method was missing in 1.4.

Serialized Fields

list

List list

Class java.util.Collections.UnmodifiableMap extends Object implements Serializable

serialVersionUID: -1034234728574286014l

Serialized Fields

m

Map m

Class java.util.Collections.UnmodifiableMap.UnmodifiableEntrySet extends java.util.Collections.UnmodifiableSet implements Serializable

Class java.util.Collections.UnmodifiableRandomAccessList extends java.util.Collections.UnmodifiableList implements Serializable

serialVersionUID: -2542308836966382001l

Serialization Methods

writeReplace

private Object writeReplace()
Allows instances to be deserialized in pre-1.4 JREs (which do not have UnmodifiableRandomAccessList). UnmodifiableList has a readResolve method that inverts this transformation upon deserialization.

Class java.util.Collections.UnmodifiableSet extends java.util.Collections.UnmodifiableCollection implements Serializable

Class java.util.Collections.UnmodifiableSortedMap extends java.util.Collections.UnmodifiableMap implements Serializable

Serialized Fields

sm

SortedMap sm

Class java.util.Collections.UnmodifiableSortedSet extends java.util.Collections.UnmodifiableSet implements Serializable

Serialized Fields

ss

SortedSet ss

Class java.util.ConcurrentModificationException extends RuntimeException implements Serializable

Class java.util.Currency extends Object implements Serializable

Serialization Methods

readResolve

private Object readResolve()
Resolves instances being deserialized to a single instance per currency.

Serialized Fields

currencyCode

String currencyCode
ISO 4217 currency code for this currency.

 

Class java.util.Date extends Object implements Serializable

serialVersionUID: 7523967970034938905l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reconstitute this object from a stream (i.e., deserialize it).


writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Save the state of this object to a stream (i.e., serialize it).

Serial Data:
The value returned by getTime() is emitted (long). This represents the offset from January 1, 1970, 00:00:00 GMT in milliseconds.
Throws:
IOException

Class java.util.EmptyStackException extends RuntimeException implements Serializable

Class java.util.EventObject extends Object implements Serializable

Class java.util.GregorianCalendar extends Calendar implements Serializable

serialVersionUID: -8125100834729963327l

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
Updates internal state.

Serialized Fields

gregorianCutover

long gregorianCutover
The point at which the Gregorian calendar rules are used, measured in milliseconds from the standard epoch. Default is October 15, 1582 (Gregorian) 00:00:00 UTC or -12219292800000L. For this value, October 4, 1582 (Julian) is followed by October 15, 1582 (Gregorian). This corresponds to Julian day number 2299161.

 

Class java.util.HashMap extends AbstractMap implements Serializable

serialVersionUID: 362498820763181265l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reconstitute the HashMap instance from a stream (i.e., deserialize it).


writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Save the state of the HashMap instance to a stream (i.e., serialize it).

Serial Data:
The capacity of the HashMap (the length of the bucket array) is emitted (int), followed by the size of the HashMap (the number of key-value mappings), followed by the key (Object) and value (Object) for each key-value mapping represented by the HashMap The key-value mappings are emitted in the order that they are returned by entrySet().iterator().
Throws:
IOException
Serialized Fields

threshold

int threshold
The next size value at which to resize (capacity * load factor).

 

loadFactor

float loadFactor
The load factor for the hash table.

 

Class java.util.HashSet extends AbstractSet implements Serializable

serialVersionUID: -5024744406713321676l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reconstitute the HashSet instance from a stream (that is, deserialize it).


writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Save the state of this HashSet instance to a stream (that is, serialize this set).

Serial Data:
The capacity of the backing 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.
Throws:
IOException

Class java.util.Hashtable extends Dictionary implements Serializable

serialVersionUID: 1421746759512286392l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reconstitute the Hashtable from a stream (i.e., deserialize it).


writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Save the state of the Hashtable to a stream (i.e., serialize it).

Serial Data:
The capacity of the Hashtable (the length of the bucket array) is emitted (int), followed by the size of the Hashtable (the number of key-value mappings), followed by the key (Object) and value (Object) for each key-value mapping represented by the Hashtable The key-value mappings are emitted in no particular order.
Throws:
IOException
Serialized Fields

threshold

int threshold
The table is rehashed when its size exceeds this threshold. (The value of this field is (int)(capacity * loadFactor).)

 

loadFactor

float loadFactor
The load factor for the hashtable.

 

Class java.util.IdentityHashMap extends AbstractMap implements Serializable

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reconstitute the IdentityHashMap instance from a stream (i.e., deserialize it).


writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Save the state of the IdentityHashMap instance to a stream (i.e., serialize it).

Serial Data:
The size of the HashMap (the number of key-value mappings) (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.
Throws:
IOException
Serialized Fields

size

int size
The number of key-value mappings contained in this identity hash map.

 

Class java.util.LinkedHashMap extends HashMap implements Serializable

Serialized Fields

accessOrder

boolean accessOrder
The iteration ordering method for this linked hash map: true for access-order, false for insertion-order.

 

Class java.util.LinkedHashSet extends HashSet implements Serializable

Class java.util.LinkedList extends AbstractSequentialList implements Serializable

serialVersionUID: 876323262645176354l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reconstitute this LinkedList instance from a stream (that is deserialize it).


writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Save the state of this LinkedList instance to a stream (that is, serialize it).

Serial Data:
The size of the list (the number of elements it contains) is emitted (int), followed by all of its elements (each an Object) in the proper order.
Throws:
IOException

Class java.util.Locale extends Object implements Serializable

serialVersionUID: 9149081749638150636l

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Serial Data:
The first three fields are three 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 intrepresenting 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.
Throws:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Serial Data:
The first three fields are three 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.
Throws:
IOException
Serialized Fields

language

String language
 
See Also:
Locale.getLanguage()

country

String country
 
See Also:
Locale.getCountry()

variant

String variant
 
See Also:
Locale.getVariant()

hashcode

int hashcode
Placeholder for the object's hash code. Always -1.

 

Class java.util.MissingResourceException extends RuntimeException implements Serializable

Serialized Fields

className

String className
The class name of the resource bundle requested by the user.

 

key

String key
The name of the specific resource requested by the user.

 

Class java.util.NoSuchElementException extends RuntimeException implements Serializable

Class java.util.Properties extends Hashtable implements Serializable

serialVersionUID: 4112578634029874840l

Serialized Fields

defaults

Properties defaults
A property list that contains default values for any keys not found in this property list.

 

Class java.util.PropertyPermissionCollection extends PermissionCollection implements Serializable

serialVersionUID: 7015263904581634791l

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Serial Data:
Default fields.
Throws:
IOException
Serialized Fields

all_allowed

boolean all_allowed
boolean saying if "*" is in the collection.

permissions

Hashtable permissions
A table of the PropertyPermissions.

Class java.util.Random extends Object implements Serializable

serialVersionUID: 3905348978240129619l

Serialized Fields

seed

long seed
The internal state associated with this pseudorandom number generator. (The specs for the methods in this class describe the ongoing computation of this value.)

 

nextNextGaussian

double nextNextGaussian

haveNextNextGaussian

boolean haveNextNextGaussian

Class java.util.SimpleTimeZone extends TimeZone implements Serializable

serialVersionUID: -403250971215465050l

Serialization Methods

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
Reconstitute this object from a stream (i.e., deserialize it). We handle both JDK 1.1 binary formats and full formats with a packed byte array.


writeObject

private void writeObject(ObjectOutputStream stream)
                  throws IOException
Save the state of this object to a stream (i.e., serialize it).

Serial Data:
We write out two formats, a JDK 1.1 compatible format, using 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.

Throws:
IOException
Serialized Fields

startMonth

int startMonth
The month in which daylight saving time starts. This value must be between Calendar.JANUARY and Calendar.DECEMBER inclusive. This value must not equal endMonth.

If useDaylight is false, this value is ignored.

 

startDay

int startDay
This field has two possible interpretations:
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 th 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.

 

startDayOfWeek

int startDayOfWeek
The day of the week on which daylight saving time starts. This value must be between Calendar.SUNDAY and Calendar.SATURDAY inclusive.

If useDaylight is false or startMode == DAY_OF_MONTH, this value is ignored.

 

startTime

int startTime
The time in milliseconds after midnight at which daylight saving time starts. This value is expressed as wall time, standard time, or UTC time, depending on the setting of startTimeMode.

If useDaylight is false, this value is ignored.

 

startTimeMode

int startTimeMode
The format of startTime, either WALL_TIME, STANDARD_TIME, or UTC_TIME.

 
Since:
1.3

endMonth

int endMonth
The month in which daylight saving time ends. This value must be between Calendar.JANUARY and Calendar.UNDECIMBER. This value must not equal startMonth.

If useDaylight is false, this value is ignored.

 

endDay

int endDay
This field has two possible interpretations:
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.

 

endDayOfWeek

int endDayOfWeek
The day of the week on which daylight saving time ends. This value must be between Calendar.SUNDAY and Calendar.SATURDAY inclusive.

If useDaylight is false or endMode == DAY_OF_MONTH, this value is ignored.

 

endTime

int endTime
The time in milliseconds after midnight at which daylight saving time ends. This value is expressed as wall time, standard time, or UTC time, depending on the setting of endTimeMode.

If useDaylight is false, this value is ignored.

 

endTimeMode

int endTimeMode
The format of endTime, either WALL_TIME, STANDARD_TIME, or UTC_TIME.

 
Since:
1.3

startYear

int startYear
The year in which daylight saving time is first observed. This is an 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.

 

rawOffset

int rawOffset
The offset in milliseconds between this zone and GMT. Negative offsets are to the west of Greenwich. To obtain local standard time, add the offset to GMT time. To obtain local wall time it may also be necessary to add dstSavings.

 

useDaylight

boolean useDaylight
A boolean value which is true if and only if this zone uses daylight saving time. If this value is false, several other fields are ignored.

 

monthLength

byte[] monthLength
This field was serialized in JDK 1.1, so we have to keep it that way to maintain serialization compatibility. However, there's no need to recreate the array each time we create a new time zone.

An array of bytes containing the values {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}. This is ignored as of the Java 2 platform v1.2, however, it must be streamed out for compatibility with JDK 1.1.

startMode

int startMode
Variables specifying the mode of the start rule. Takes the following values:
DOM_MODE
Exact day of week; e.g., March 1.
DOW_IN_MONTH_MODE
Day of week in month; e.g., last Sunday in March.
DOW_GE_DOM_MODE
Day of week after day of month; e.g., Sunday on or after March 15.
DOW_LE_DOM_MODE
Day of week before day of month; e.g., Sunday on or before March 15.
The setting of this field affects the interpretation of the startDay field.

If useDaylight is false, this value is ignored.

 
Since:
1.1.4

endMode

int endMode
Variables specifying the mode of the end rule. Takes the following values:
DOM_MODE
Exact day of week; e.g., March 1.
DOW_IN_MONTH_MODE
Day of week in month; e.g., last Sunday in March.
DOW_GE_DOM_MODE
Day of week after day of month; e.g., Sunday on or after March 15.
DOW_LE_DOM_MODE
Day of week before day of month; e.g., Sunday on or before March 15.
The setting of this field affects the interpretation of the endDay field.

If useDaylight is false, this value is ignored.

 
Since:
1.1.4

dstSavings

int dstSavings
A positive value indicating the amount of time saved during DST in milliseconds. Typically one hour (3600000); sometimes 30 minutes (1800000).

If useDaylight is false, this value is ignored.

 
Since:
1.1.4

serialVersionOnStream

int serialVersionOnStream
The version of the serialized data on the stream. Possible values:
0 or not present on stream
JDK 1.1.3 or earlier.
1
JDK 1.1.4 or later. Includes three new fields: startMode, endMode, and dstSavings.
2
JDK 1.3 or later. Includes two new fields: startTimeMode and endTimeMode.
When streaming out this class, the most recent format and the highest allowable serialVersionOnStream is written.

 
Since:
1.1.4

Class java.util.Stack extends Vector implements Serializable

serialVersionUID: 1224463164541339165l

Class java.util.TimeZone extends Object implements Serializable

serialVersionUID: 3581463369166924961l

Serialized Fields

ID

String ID
The string identifier of this 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 extends Exception implements Serializable

Class java.util.TreeMap extends AbstractMap implements Serializable

serialVersionUID: 919286545866124006l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reconstitute the TreeMap instance from a stream (i.e., deserialize it).


writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Save the state of the TreeMap instance to a stream (i.e., serialize it).

Serial Data:
The size of the TreeMap (the number of key-value mappings) is emitted (int), followed by the key (Object) and value (Object) for each key-value mapping represented by the TreeMap. The key-value mappings are emitted in key-order (as determined by the TreeMap's Comparator, or by the keys' natural ordering if the TreeMap has no Comparator).
Throws:
IOException
Serialized Fields

comparator

Comparator comparator
The Comparator used to maintain order in this TreeMap, or null if this TreeMap uses its elements natural ordering.

 

Class java.util.TreeSet extends AbstractSet implements Serializable

serialVersionUID: -2479143000061671589l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reconstitute the TreeSet instance from a stream (that is, deserialize it).


writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Save the state of the TreeSet instance to a stream (that is, serialize it).

Serial Data:
Emits the comparator used to order this set, or 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).
Throws:
IOException

Class java.util.Vector extends AbstractList implements Serializable

serialVersionUID: -2767605614048989439l

Serialization Methods

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Save the state of the Vector instance to a stream (that is, serialize it). This method is present merely for synchronization. It just calls the default readObject method.

Serialized Fields

elementData

Object[] elementData
The array buffer into which the components of the vector are stored. The capacity of the vector is the length of this array buffer, and is at least large enough to contain all the vector's elements.

Any array elements following the last element in the Vector are null.

 

elementCount

int elementCount
The number of valid components in this Vector object. Components elementData[0] through elementData[elementCount-1] are the actual items.

 

capacityIncrement

int capacityIncrement
The amount by which the capacity of the vector is automatically incremented when its size becomes greater than its capacity. If the capacity increment is less than or equal to zero, the capacity of the vector is doubled each time it needs to grow.

 


Package java.util.jar

Class java.util.jar.JarException extends ZipException implements Serializable


Package java.util.zip

Class java.util.zip.DataFormatException extends Exception implements Serializable

Class java.util.zip.ZipException extends IOException implements Serializable


Package javax.microedition.io

Class javax.microedition.io.ConnectionNotFoundException extends IOException implements Serializable


Package javax.microedition.pki

Class javax.microedition.pki.CertificateException extends IOException implements Serializable

Serialized Fields

reason

byte reason
The reason code for this exception


cert

Certificate cert
The certificate that caused the exception


Package javax.security.auth.x500

Class javax.security.auth.x500.X500Principal extends Object implements Serializable

serialVersionUID: -500463348111345721l

Serialization Methods

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        NotActiveException,
                        ClassNotFoundException
Reads this object from a stream (i.e., deserializes it).


writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
Save the X500Principal object to a stream.

Serial Data:
this X500Principal is serialized by writing out its DER-encoded form (the value of getEncoded is serialized).
Throws:
IOException


JSR 217 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 217 specification.