JavaTM 2 Platform
Standard Ed. 5.0

序列化表格


软件包 java.applet

java.applet.Applet 继承 Panel 实现 Serializable

serialVersionUID: -5836846270535785031L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
从对象输入流读取 applet。

抛出:
HeadlessException - 如果 GraphicsEnvironment.isHeadless() 返回 true
ClassNotFoundException
IOException
从以下版本开始:
1.4
另请参见:
GraphicsEnvironment.isHeadless()
序列化字段

accessibleContext

AccessibleContext accessibleContext

java.applet.Applet.AccessibleApplet 继承 Panel.AccessibleAWTPanel 实现 Serializable

serialVersionUID: 8127374778187708896L


软件包 java.awt

java.awt.AWTError 继承 Error 实现 Serializable

serialVersionUID: -1819846354050686206L

java.awt.AWTEvent 继承 EventObject 实现 Serializable

serialVersionUID: -1825314779160409405L

序列化字段

bdata

byte[] bdata

id

int id
事件的 id。

 
另请参见:
AWTEvent.getID(), AWTEvent.AWTEvent(java.lang.Object, int)

consumed

boolean consumed
在源处理了事件之后,控制是否将事件发送回同位体,false 表示将事件发送给同位体;true 则不发送。语义事件始终具有 'true' 值,因为它们由响应低级别事件的同位体生成。

 
另请参见:
AWTEvent.consume(), AWTEvent.isConsumed()

java.awt.AWTException 继承 Exception 实现 Serializable

serialVersionUID: -1900414231151323879L

java.awt.AWTKeyStroke 继承 Object 实现 Serializable

serialVersionUID: -6430539691155161871L

序列化方法

readResolve

protected Object readResolve()
                      throws ObjectStreamException
返回 AWTKeyStroke 的一个缓存实例(或 AWTKeyStroke 的子类),它与此实例相等。

抛出:
ObjectStreamException
序列化字段

keyChar

char keyChar

keyCode

int keyCode

modifiers

int modifiers

onKeyRelease

boolean onKeyRelease

java.awt.AWTPermission 继承 BasicPermission 实现 Serializable

serialVersionUID: 8890392402588814465L

java.awt.BorderLayout 继承 Object 实现 Serializable

serialVersionUID: -8658291919501921765L

序列化字段

hgap

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

 
另请参见:
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.

 
另请参见:
BorderLayout.getVgap(), BorderLayout.setVgap(int)

north

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

 
另请参见:
BorderLayout.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.

 
另请参见:
BorderLayout.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.

 
另请参见:
BorderLayout.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.

 
另请参见:
BorderLayout.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.

 
另请参见:
BorderLayout.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)

firstLine

Component firstLine
A relative positioning constant, that can be used instead of north, south, east, west or center. mixing the two types of constants can lead to unpredicable results. If you use both types, the relative constants will take precedence. For example, if you add components using both the NORTH and BEFORE_FIRST_LINE constants in a container whose orientation is LEFT_TO_RIGHT, only the BEFORE_FIRST_LINE will be layed out. This will be the same for lastLine, firstItem, lastItem.

 

lastLine

Component lastLine
A relative positioning constant, that can be used instead of north, south, east, west or center. Please read Description for firstLine.

 

firstItem

Component firstItem
A relative positioning constant, that can be used instead of north, south, east, west or center. Please read Description for firstLine.

 

lastItem

Component lastItem
A relative positioning constant, that can be used instead of north, south, east, west or center. Please read Description for firstLine.

 

java.awt.Button 继承 Component 实现 Serializable

serialVersionUID: -8774683716313001058L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
读取 ObjectInputStream,如果它不为 null,则添加一个侦听器,以接收按钮激发的操作事件。未识别的键或值将被忽略。

抛出:
HeadlessException - 如果 GraphicsEnvironment.isHeadless 返回 true
ClassNotFoundException
IOException
另请参见:
Button.removeActionListener(ActionListener), Button.addActionListener(ActionListener), GraphicsEnvironment.isHeadless(), Button.writeObject(ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
将默认的可序列化字段写入流。写入可序列化 ActionListeners 的一个列表作为可选数据。检测不可序列化的 ActionListeners,不会试图对它们进行序列化。

序列数据:
null 终止的 0 或多对序列:该对由一个 String 和一个 Object 组成;String 指示对象的类型,它是以下类型之一:指示 ActionListener 对象的 actionListenerK
抛出:
IOException
另请参见:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener), Component.actionListenerK, Button.readObject(ObjectInputStream)
序列化字段

label

String label
The button's label. This value may be null.

 
另请参见:
Button.getLabel(), setLabel()

actionCommand

String actionCommand
The action to be performed once a button has been pressed. This value may be null.

 
另请参见:
Button.getActionCommand(), setActionCommand()

buttonSerializedDataVersion

int buttonSerializedDataVersion

java.awt.Button.AccessibleAWTButton 继承 Component.AccessibleAWTComponent 实现 Serializable

serialVersionUID: -5932203980244017102L

java.awt.Canvas 继承 Component 实现 Serializable

serialVersionUID: -2284879212465893870L

java.awt.Canvas.AccessibleAWTCanvas 继承 Component.AccessibleAWTComponent 实现 Serializable

serialVersionUID: -6325592262103146699L

java.awt.CardLayout 继承 Object 实现 Serializable

serialVersionUID: -4328196481005934313L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
从流中读取可序列化的字段。

抛出:
ClassNotFoundException
IOException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
向流中写入可序列化的字段。

抛出:
IOException
序列化字段

currentCard

int currentCard

hgap

int hgap

tab

Hashtable<K,V> tab
已过时,仅用于向前兼容

vector

Vector<E> vector

vgap

int vgap

java.awt.Checkbox 继承 Component 实现 Serializable

serialVersionUID: 7270714317450821763L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
读取 ObjectInputStream,如果它不为 null,则添加一个侦听器,以接收 Checkbox 触发的项事件。忽略未被识别的键或值。

抛出:
HeadlessException - 如果 GraphicsEnvironment.isHeadless 返回 true
ClassNotFoundException
IOException
另请参见:
Checkbox.removeItemListener(ItemListener), Checkbox.addItemListener(ItemListener), GraphicsEnvironment.isHeadless(), Checkbox.writeObject(ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
将默认可序列化字段写入流中。写入可序列化 ItemListeners 的一个列表作为可选数据。检测不可序列化的 ItemListeners,不要尝试对它们进行序列化。

序列数据:
null 表示终止 0 或多个对的序列;这种对是由 StringObject 组成的;String 指示对象类型,它为以下类型之一:itemListenerK 指示一个 ItemListener 对象
抛出:
IOException
另请参见:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener), Component.itemListenerK, Checkbox.readObject(ObjectInputStream)
序列化字段

label

String label
The label of the Checkbox. This field can be null.

 
另请参见:
Checkbox.getLabel(), #setLabel(label)

state

boolean state
The state of the Checkbox.

 
另请参见:
Checkbox.getState(), #setState(state)

group

CheckboxGroup group
The check box group. This field can be null indicating that the checkbox is not a group checkbox.

 
另请参见:
#getCheckBoxGroup(), #setCheckBoxGroup(CheckBoxGroup)

checkboxSerializedDataVersion

int checkboxSerializedDataVersion

java.awt.Checkbox.AccessibleAWTCheckbox 继承 Component.AccessibleAWTComponent 实现 Serializable

serialVersionUID: 7881579233144754107L

java.awt.CheckboxGroup 继承 Object 实现 Serializable

serialVersionUID: 3729780091441768983L

序列化字段

selectedCheckbox

Checkbox selectedCheckbox
The current choice.

 
另请参见:
CheckboxGroup.getCurrent(), CheckboxGroup.setCurrent(Checkbox)

java.awt.CheckboxMenuItem 继承 MenuItem 实现 Serializable

serialVersionUID: 6190621106981774043L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
抛出:
ClassNotFoundException
IOException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
将默认的可序列化字段写入流。写入可序列化 ItemListeners 的一个列表作为可选数据。检测不可序列化的 ItemListeners,不要尝试对它们进行序列化。

序列数据:
null 终止的 0 或多对序列;该对由一个 String 和一个 Object 组成;String 指示对象的类型,它是以下类型之一:指示 ItemListener 对象的 itemListenerK
抛出:
IOException
另请参见:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener), Component.itemListenerK, CheckboxMenuItem.readObject(ObjectInputStream)
序列化字段

state

boolean state
The state of a checkbox menu item

 
另请参见:
CheckboxMenuItem.getState(), CheckboxMenuItem.setState(boolean)

checkboxMenuItemSerializedDataVersion

int checkboxMenuItemSerializedDataVersion

java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem 继承 MenuItem.AccessibleAWTMenuItem 实现 Serializable

serialVersionUID: -1122642964303476L

java.awt.Choice 继承 Component 实现 Serializable

serialVersionUID: -4075310674757313071L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
读取 ObjectInputStream,如果它不为 null,则添加一个侦听器,以接收 Choice 项触发的项事件。忽略未被识别的键或值。

抛出:
HeadlessException - 如果 GraphicsEnvironment.isHeadless 返回 true
ClassNotFoundException
IOException
另请参见:
Choice.removeItemListener(ItemListener), Choice.addItemListener(ItemListener), GraphicsEnvironment.isHeadless(), Choice.writeObject(ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
将默认可序列化字段写入流中。写入可序列化 ItemListeners 的一个列表作为可选数据。检测不可序列化的 ItemListeners,不要尝试对它们进行序列化。

序列数据:
null 表示终止 0 或多个对的序列;这种对是由 StringObject 组成的;String 指示对象类型,它为以下类型之一:itemListenerK 指示一个 ItemListener 对象
抛出:
IOException
另请参见:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener), Component.itemListenerK, Choice.readObject(ObjectInputStream)
序列化字段

pItems

Vector<E> pItems
The items for the Choice. This can be a null value.

 
另请参见:
Choice.add(String), Choice.addItem(String), Choice.getItem(int), Choice.getItemCount(), Choice.insert(String, int), Choice.remove(String)

selectedIndex

int selectedIndex
The index of the current choice for this Choice or -1 if nothing is selected.

 
另请参见:
Choice.getSelectedItem(), Choice.select(int)

choiceSerializedDataVersion

int choiceSerializedDataVersion

java.awt.Choice.AccessibleAWTChoice 继承 Component.AccessibleAWTComponent 实现 Serializable

serialVersionUID: 7175603582428509322L

java.awt.Color 继承 Object 实现 Serializable

serialVersionUID: 118526816881161077L

序列化字段

value

int value
The color value.

 
另请参见:
Color.getRGB()

frgbvalue

float[] frgbvalue
默认 sRGB ColorSpace 中的颜色值可看作是 float 分量(不带 alpha 值)。如果在构造对象之后颜色值为 null,则此颜色必须是用 8 位精度构造的一种 sRGB 颜色,因此要从 int 颜色值开始计算。

 
另请参见:
Color.getRGBColorComponents(float[]), Color.getRGBComponents(float[])

fvalue

float[] fvalue
本机 sRGB ColorSpace 中的颜色值可看作是 float 分量(不带 alpha 值)。如果在构造对象之后颜色值为 null,则此颜色必须是用 8 位精度构造的一种 sRGB 颜色,因此要从 int 颜色值开始计算。

 
另请参见:
Color.getRGBColorComponents(float[]), Color.getRGBComponents(float[])

falpha

float falpha
alpha 值可看作是一个 float 分量。如果 frgbvaluenull,那么这是一个无效数据,因此要从 int 颜色值开始计算。

 
另请参见:
Color.getRGBComponents(float[]), Color.getComponents(float[])

cs

ColorSpace cs
ColorSpace。如果 ColorSpace 为 null,那么其默认值为 sRGB。

 
另请参见:
Color.getColor(java.lang.String), Color.getColorSpace(), Color.getColorComponents(float[])

java.awt.Component 继承 Object 实现 Serializable

serialVersionUID: -7644114512714619750L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
读取 ObjectInputStream 并且如果它不为 null,则添加一个侦听器,以便接收由组件所激发的各种事件。忽略未识别的键或值。

抛出:
ClassNotFoundException
IOException
另请参见:
Component.writeObject(ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
将默认的可序列化字段写入流中。将各种可序列化侦听器作为可选数据写入。检测不可序列化的侦听器并且不尝试对其进行序列化。

序列数据:
null 终止的 0 或多对序列;该对由一个 String 和一个 Object 组成;String 表示对象的类型并为下列类型之一(1.4 中):componentListenerK 表示 ComponentListener 对象;focusListenerK 表示 FocusListener 对象;keyListenerK 表示 KeyListener 对象;mouseListenerK 表示 MouseListener 对象;mouseMotionListenerK 表示 MouseMotionListener 对象;inputListenerK 表示 InputListener 对象;hierarchyListenerK 表示 HierarchyListener 对象;hierarchyBoundsListenerK 表示 HierarchyBoundsListener 对象;mouseWheelListenerK 表示 MouseWheelListener 对象, 一个可选的 ComponentOrientation(在 1.2 中位于 inputMethodListener 之后)
抛出:
IOException
另请参见:
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener), Component.componentListenerK, Component.focusListenerK, Component.keyListenerK, Component.mouseListenerK, Component.mouseMotionListenerK, #inputListenerK, Component.hierarchyListenerK, Component.hierarchyBoundsListenerK, Component.mouseWheelListenerK, Component.readObject(ObjectInputStream)
序列化字段

x

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

 
另请参见:
Component.getLocation()

y

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

 
另请参见:
Component.getLocation()

width

int width
The width of the component.

 
另请参见:
Component.getSize()

height

int height
The height of the component.

 
另请参见:
Component.getSize()

foreground

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

 
另请参见:
Component.getForeground(), Component.setForeground(java.awt.Color)

background

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

 
另请参见:
Component.getBackground(), Component.setBackground(java.awt.Color)

font

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

 
另请参见:
Component.getFont(), Component.setFont(java.awt.Font)

peerFont

Font peerFont
The font which the peer is currently using. (null if no peer exists.)


cursor

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

 
另请参见:
Component.getCursor(), Component.setCursor(java.awt.Cursor)

locale

Locale locale
The locale for the component.

 
另请参见:
Component.getLocale(), Component.setLocale(java.util.Locale)

ignoreRepaint

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

 
从以下版本开始:
1.4
另请参见:
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.

 
另请参见:
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.

 
另请参见:
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.

 
另请参见:
Component.isValid(), Component.validate(), Component.invalidate()

dropTarget

DropTarget dropTarget
The DropTarget associated with this component.

 
从以下版本开始:
1.2
另请参见:
Component.setDropTarget(java.awt.dnd.DropTarget), Component.getDropTarget()

popups

Vector<E> popups
 
另请参见:
Component.add(java.awt.PopupMenu)

name

String name
组件名称。该字段可以为 null

 
另请参见:
Component.getName(), Component.setName(String)

nameExplicitlySet

boolean nameExplicitlySet
确定是否已显示地设置了名称的布尔值。如果尚未设置名称,则 nameExplicitlySet 为 false;否则为 true。

 
另请参见:
Component.getName(), Component.setName(String)

focusable

boolean focusable
表示此 Component 是否可以获得焦点。

 
从以下版本开始:
1.4
另请参见:
Component.setFocusable(boolean), Component.isFocusable()

isFocusTraversableOverridden

int isFocusTraversableOverridden
跟踪此 Component 是否依赖于默认的焦点可遍历性。

 
从以下版本开始:
1.4

focusTraversalKeys

Set<E>[] 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.

 
从以下版本开始:
1.4
另请参见:
Component.setFocusTraversalKeys(int, java.util.Set), Component.getFocusTraversalKeys(int)

focusTraversalKeysEnabled

boolean focusTraversalKeysEnabled
表示是否为此 Component 启用了焦点遍历键。其焦点遍历键已禁用的 Component 接收这些焦点遍历键的按键事件。其焦点遍历键已启用的 Component 不会看到这些事件;相反,会将该事件自动转换为遍历操作。

 
从以下版本开始:
1.4
另请参见:
Component.setFocusTraversalKeysEnabled(boolean), Component.getFocusTraversalKeysEnabled()

minSize

Dimension minSize
Minimum size. (This field perhaps should have been transient).

 

minSizeSet

boolean minSizeSet
Whether or not setMinimumSize has been invoked with a non-null value.


prefSize

Dimension prefSize
Preferred size. (This field perhaps should have been transient).

 

prefSizeSet

boolean prefSizeSet
Whether or not setPreferredSize has been invoked with a non-null value.


maxSize

Dimension maxSize
Maximum size

 

maxSizeSet

boolean maxSizeSet
Whether or not setMaximumSize has been invoked with a non-null value.


newEventsOnly

boolean newEventsOnly
newEventsOnly will be true if the event is one of the event types enabled for the component. It will then allow for normal processing to continue. If it is false the event is passed to the component's parent and up the ancestor tree until the event has been consumed.

 
另请参见:
Component.dispatchEvent(java.awt.AWTEvent)

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.

 
另请参见:
Component.enableInputMethods(boolean), AWTEvent

changeSupport

PropertyChangeSupport changeSupport
如果已注册了任意 PropertyChangeListeners,则 changeSupport 字段负责描述它们。

 
从以下版本开始:
1.2
另请参见:
Component.addPropertyChangeListener(java.beans.PropertyChangeListener), Component.removePropertyChangeListener(java.beans.PropertyChangeListener), Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)

isPacked

boolean isPacked

boundsOp

int boundsOp
直接用于几何学 API(setLocation、setBounds、setSize)的伪参数,通知 setBounds 发生了什么改变。应该在 TreeLock 下使用。需要它的惟一原因是无法改变公共和否决方法的交叉调用顺序。


componentSerializedDataVersion

int componentSerializedDataVersion
序列化的 Component 数据版本。

 

accessibleContext

AccessibleContext accessibleContext

java.awt.Component.AccessibleAWTComponent 继承 AccessibleContext 实现 Serializable

serialVersionUID: 642321655757800191L

序列化字段

accessibleAWTComponentHandler

ComponentListener accessibleAWTComponentHandler

accessibleAWTFocusHandler

FocusListener accessibleAWTFocusHandler

java.awt.ComponentOrientation 继承 Object 实现 Serializable

序列化字段

orientation

int orientation

java.awt.Container 继承 Component 实现 Serializable

serialVersionUID: 4613797578919906343L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
反序列化来自指定 ObjectInputStreamContainer

抛出:
ClassNotFoundException
IOException
另请参见:
Container.addContainerListener(java.awt.event.ContainerListener), Container.writeObject(ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
将此 Container 序列化到指定的 ObjectOutputStream 中。

序列数据:
null 表示终止 0 或多个对的序列;这种对是由 StringObject 组成的;String 指示了对象类型,它为以下类型之一:指示 ContainerListener 对象的 containerListenerKContainerFocusTraversalPolicynull
抛出:
IOException
另请参见:
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener), Component.containerListenerK, Container.readObject(ObjectInputStream)
序列化字段

component

Component[] component
容器中的组件。

containerSerializedDataVersion

int containerSerializedDataVersion
Container Serial Data Version。

dispatcher

java.awt.LightweightDispatcher dispatcher
轻量级组件的事件路由器。如果容器是本机的,则此调度程序会小心转发这些事件,将它们的目标重新指向所包含的轻量级组件(如果有)。

focusCycleRoot

boolean focusCycleRoot
指示此 Component 是否是某个焦点遍历循环的根。一旦焦点进入某个遍历循环,它通常无法通过焦点遍历离开,除非按下向上键或向下键之一。普通遍历被限定于此 Container,该 Container 的所有子代并不是下级焦点循环根的子代。

focusTraversalPolicyProvider

boolean focusTraversalPolicyProvider
存储 focusTraversalPolicyProvider 属性的值。

layoutMgr

LayoutManager layoutMgr
此容器的布局管理器。

maxSize

Dimension maxSize
此 Container 的最大大小。

ncomponents

int ncomponents
容器中组件的数量。该值可以为 null。

java.awt.Container.AccessibleAWTContainer 继承 Component.AccessibleAWTComponent 实现 Serializable

serialVersionUID: 5081320404842566097L

序列化字段

accessibleContainerHandler

ContainerListener accessibleContainerHandler

java.awt.ContainerOrderFocusTraversalPolicy 继承 FocusTraversalPolicy 实现 Serializable

serialVersionUID: 486933713763926351L

序列化字段

implicitDownCycleTraversal

boolean implicitDownCycleTraversal

java.awt.Cursor 继承 Object 实现 Serializable

serialVersionUID: 8028237497568985504L

序列化字段

type

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

 
另请参见:
Cursor.getType()

name

String name
光标的用户可视名称。

 
另请参见:
Cursor.getName()

java.awt.DefaultFocusTraversalPolicy 继承 ContainerOrderFocusTraversalPolicy 实现 Serializable

java.awt.Dialog 继承 Window 实现 Serializable

serialVersionUID: 5920926903803293709L

序列化字段

resizable

boolean resizable
A dialog's resizable property. Will be true if the Dialog is to be resizable, otherwise it will be false.

 
另请参见:
Dialog.setResizable(boolean)

undecorated

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

 
从以下版本开始:
1.4
另请参见:
Dialog.setUndecorated(boolean), Dialog.isUndecorated(), Component.isDisplayable()

modal

boolean modal
Will be true if the Dialog is modal, otherwise the dialog will be modeless. A modal Dialog grabs all the input to the owner frame from the user.

 
另请参见:
Dialog.isModal(), Dialog.setModal(boolean)

title

String title
Specifies the title of the Dialog. This field can be null.

 
另请参见:
Dialog.getTitle(), Dialog.setTitle(String)

java.awt.Dialog.AccessibleAWTDialog 继承 Window.AccessibleAWTWindow 实现 Serializable

serialVersionUID: 4837230331833941201L

java.awt.Dimension 继承 Dimension2D 实现 Serializable

serialVersionUID: 4723952579491349524L

序列化字段

width

int width
dimension 的宽度,可以使用负值。

 
另请参见:
Dimension.getSize(), Dimension.setSize(double, double)

height

int height
dimension 的高度,可以使用负值。

 
另请参见:
Dimension.getSize(), Dimension.setSize(double, double)

java.awt.Event 继承 Object 实现 Serializable

serialVersionUID: 5488922509400504703L

序列化字段

target

Object target
目标组件。这指示事件针对该组件发生,或事件与该组件关联。此对象已经由 AWTEvent.getSource() 取代。

 
另请参见:
EventObject.getSource()

when

long when
时间戳。由 InputEvent.getWhen() 取代。

 
另请参见:
InputEvent.getWhen()

id

int id
指示事件是什么类型的事件,其他哪个 Event 变量与该事件有关。它已经由 AWTEvent.getID() 取代。

 
另请参见:
AWTEvent.getID()

x

int x
事件的 x 坐标。由 MouseEvent.getX() 取代。

 
另请参见:
MouseEvent.getX()

y

int y
事件的 y 坐标。由 MouseEvent.getY() 取代。

 
另请参见:
MouseEvent.getY()

key

int key
在键盘事件中被按下的键的键代码。这已经由 KeyEvent.getKeyCode() 取代。

 
另请参见:
KeyEvent.getKeyCode()

modifiers

int modifiers
修饰符键的状态。这已经由 InputEvent.getModifiers() 取代。在 java 1.1 中,MouseEvent 和 KeyEvent 是 InputEvent 的子类。

 
另请参见:
InputEvent.getModifiers()

clickCount

int clickCount
对于 MOUSE_DOWN 事件来说,此字段指示连续点击的次数。对于其他事件,其值为 0。此字段由 MouseEvent.getClickCount() 取代。

 
另请参见:
MouseEvent.getClickCount().

arg

Object arg
事件的任意参数。此字段的值取决于事件的类型。arg 已经由事件指定的属性取代。

 

evt

Event evt
下一事件。将事件放入到链接列表时设置此字段。这已经由 EventQueue 取代。

 
另请参见:
EventQueue

consumed

boolean consumed
此字段控制当目标处理完事件时,该事件是否发送回同位体——如果为 false,则发送回同位体,如果为 true,则不发送。

 
另请参见:
Event.isConsumed()

java.awt.FileDialog 继承 Dialog 实现 Serializable

serialVersionUID: 5035145889651310422L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
读取 ObjectInputStream,并执行向后兼容检查,将 dir 或等于空字符串的 file 转换为 null

抛出:
ClassNotFoundException
IOException
序列化字段

mode

int mode

dir

String dir

file

String file

filter

FilenameFilter filter

java.awt.FlowLayout 继承 Object 实现 Serializable

serialVersionUID: -7262534875583282631L

序列化方法

readObject

private void readObject(ObjectInputStream stream)
                 throws IOException,
                        ClassNotFoundException
从序列化流读取此对象,处理由类的较旧版本写入的对象,该版本不包含我们现在使用的所有字段。

抛出:
IOException
ClassNotFoundException
序列化字段

align

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

 
另请参见:
FlowLayout.getAlignment(), FlowLayout.setAlignment(int)

newAlign

int newAlign
newAlign is the property that determines how each row distributes empty space for the Java 2 platform, v1.2 and greater. It can be one of the following three values:

 
从以下版本开始:
1.2
另请参见:
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 and between the components and the borders of the Container.

 
另请参见:
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 and between the the rows and the borders of the Container.

 
另请参见:
FlowLayout.getHgap(), FlowLayout.setHgap(int)

serialVersionOnStream

int serialVersionOnStream
表示正被使用的 currentSerialVersion。它将是以下两个值之一:0,Java 2 平台 v1.2 之前的版本1,Java 2 平台 v1.2 之后的版本

 
从以下版本开始:
1.2

java.awt.Font 继承 Object 实现 Serializable

serialVersionUID: -4206021311591459213L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
读取 ObjectInputStream。未识别的密钥或值将被忽略。

抛出:
ClassNotFoundException
IOException
另请参见:
Font.writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws ClassNotFoundException,
                         IOException
将默认的可序列化字段写入流中。

抛出:
ClassNotFoundException
IOException
另请参见:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener), Font.readObject(java.io.ObjectInputStream)
序列化字段

fRequestedAttributes

Hashtable<K,V> fRequestedAttributes
此字体中可用的字体属性的映射。属性包括连字和字形替换。

 
另请参见:
Font.getAttributes()

name

String name
Font 的逻辑名称,它被传递到构造方法中。

 
从以下版本开始:
JDK1.0
另请参见:
Font.getName()

style

int style
Font 的样式,它被传递到构造方法中。此样式可以为 PLAIN、BOLD、ITALIC 或 BOLD+ITALIC。

 
从以下版本开始:
JDK1.0
另请参见:
Font.getStyle()

size

int size
Font 的点大小,舍入为整数。

 
从以下版本开始:
JDK1.0
另请参见:
Font.getSize()

pointSize

float pointSize
float 形式表示的 Font 的点大小。

 
另请参见:
Font.getSize(), Font.getSize2D()

fontSerializedDataVersion

int fontSerializedDataVersion
Font 的可序列化数据形式。

 

java.awt.FontFormatException 继承 Exception 实现 Serializable

java.awt.FontMetrics 继承 Object 实现 Serializable

serialVersionUID: 1681126225205050147L

序列化字段

font

Font font
实际的 Font,字体规格是由此创建的。它不能为 null。

 
另请参见:
FontMetrics.getFont()

java.awt.Frame 继承 Window 实现 Serializable

serialVersionUID: 2673458971256075116L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
读取 ObjectInputStream。尝试读取一个 Icon,它是从 1.4 版本开始可用的可选数据。如果有一个 Icon 不可用,但是已经检测了除 EOF 之外的所有数据,则抛出 OptionalDataException。未识别的键或值将被忽略。

抛出:
OptionalDataException - 如果某个 Icon 不可用,但是已经检测了除 EOF 之外的所有数据
HeadlessException - 如果 GraphicsEnvironment.isHeadless 返回 true
ClassNotFoundException
IOException
另请参见:
GraphicsEnvironment.isHeadless(), Icon, Frame.writeObject(ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
将默认的可序列化字段写入流中。写入可选的序列化 Icon,从 1.4 开始,该图标是可用的。

序列数据:
可选的 Icon
抛出:
IOException
另请参见:
Icon, Frame.readObject(ObjectInputStream)
序列化字段

maximizedBounds

Rectangle maximizedBounds
Maximized bounds for this frame.

 
从以下版本开始:
1.4
另请参见:
Frame.setMaximizedBounds(Rectangle), Frame.getMaximizedBounds()

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 = "".

 
另请参见:
Frame.getTitle(), Frame.setTitle(String)

menuBar

MenuBar menuBar
The frames menubar. If menuBar = null the frame will not have a menubar.

 
另请参见:
Frame.getMenuBar(), Frame.setMenuBar(MenuBar)

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.

 
另请参见:
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.

 
从以下版本开始:
1.4
另请参见:
Frame.setUndecorated(boolean), Frame.isUndecorated(), Component.isDisplayable()

mbManagement

boolean mbManagement
mbManagement is only used by the Motif implementation.

 

state

int state

ownedWindows

Vector<E> ownedWindows

frameSerializedDataVersion

int frameSerializedDataVersion
Frame 的序列化数据版本。

 

java.awt.Frame.AccessibleAWTFrame 继承 Window.AccessibleAWTWindow 实现 Serializable

serialVersionUID: -6172960752956030250L

java.awt.GraphicsConfigTemplate 继承 Object 实现 Serializable

java.awt.GridBagConstraints 继承 Object 实现 Serializable

serialVersionUID: -1000070633030801713L

序列化字段

gridx

int gridx
指定包含组件的显示区域开始边的单元格,其中行的第一个单元格为 gridx=0。组件显示区域的开始边指的是水平、从左到右容器的左边缘和水平、从右到左容器的右边缘。值 RELATIVE 指定将组件放置在添加此组件之前刚刚添加到容器的组件的后面。

默认值为 RELATIVEgridx 应为非负值。

 
另请参见:
GridBagConstraints.clone(), GridBagConstraints.gridy, ComponentOrientation

gridy

int gridy
指定位于组件显示区域的顶部的单元格,其中最上边的单元格为 gridy=0。值 RELATIVE 指定将组件放置在添加此组件之前刚刚添加到容器的组件的下面。

默认值为 RELATIVEgridy 应为非负值。

 
另请参见:
GridBagConstraints.clone(), GridBagConstraints.gridx

gridwidth

int gridwidth
指定在组件显示区域的一行中的单元格数。

使用 REMAINDER 指定组件的显示区域从 gridx 到该行的最后一个单元格。使用 RELATIVE 指定组件的显示区域从 gridx 到它所在行的倒数第二个单元格。

gridwidth 应为非负,默认值为 1。

 
另请参见:
GridBagConstraints.clone(), GridBagConstraints.gridheight

gridheight

int gridheight
指定在组件显示区域的一列中的单元格数。

使用 REMAINDER 指定组件的显示区域从 gridy 到该列的最后一个单元格。使用 RELATIVE 指定组件的显示区域从 gridy 到它所在列的倒数第二个单元格。

gridheight 应为非负,默认值为 1。

 
另请参见:
GridBagConstraints.clone(), GridBagConstraints.gridwidth

weightx

double weightx
指定如何分布额外的水平空间。

网格包布局管理器计算出列的权重就是列的所有组件中最大的 weightx。如果得到的布局在水平方向上比需要填充的区域小,则系统会将额外的空间按照其权重比例分布到每一列。权重为零的列不会得到额外的空间。

如果所有的权重都为零,则所有的额外空间都将出现在单元格的网格之间和左右边缘之间。

此字段的默认值为 0weightx 应为非负值。

 
另请参见:
GridBagConstraints.clone(), GridBagConstraints.weighty

weighty

double weighty
指定如何分布额外的垂直空间。

网格包布局管理器计算出行的权重就是行的所有组件中最大的 weighty。如果得到的布局在垂直方向上比需要填充的区域小,则系统会将额外的空间按照其权重比例分布到每一行。权重为零的行不会得到额外的空间。

如果所有的权重都为零,则所有的额外空间都将出现在单元格的网格之间和上下边缘之间。

此字段的默认值为 0weighty 应为非负值。

 
另请参见:
GridBagConstraints.clone(), GridBagConstraints.weightx

anchor

int anchor
当组件小于其显示区域时使用此字段。它可以确定在显示区域中放置组件的位置。

可能的值有两种:相对和绝对。相对值的解释是相对于容器的组件方向属性,而绝对值则不然。绝对值有:CENTERNORTHNORTHEASTEASTSOUTHEASTSOUTHSOUTHWESTWESTNORTHWEST。相对值有:PAGE_STARTPAGE_ENDLINE_STARTLINE_ENDFIRST_LINE_STARTFIRST_LINE_ENDLAST_LINE_STARTLAST_LINE_END。默认值为 CENTER

 
另请参见:
GridBagConstraints.clone(), ComponentOrientation

fill

int fill
当组件的显示区域大于它所请求的显示区域的大小时使用此字段。它可以确定是否调整组件大小,以及如果需要,如何调整。

以下值适用于 fill

默认值为 NONE

 
另请参见:
GridBagConstraints.clone()

insets

Insets insets
此字段指定组件的外部填充,即组件与其显示区域边缘之间间距的最小量。

默认值为 new Insets(0, 0, 0, 0)

 
另请参见:
GridBagConstraints.clone()

ipadx

int ipadx
此字段指定组件的内部填充,即给组件的最小宽度添加多大的空间。组件的宽度至少为其最小宽度加上 ipadx 像素。

默认值为 0

 
另请参见:
GridBagConstraints.clone(), GridBagConstraints.ipady

ipady

int ipady
此字段指定内部填充,即给组件的最小高度添加多大的空间。组件的高度至少为其最小高度加上 ipady 像素。

默认值为 0。

 
另请参见:
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.

 
另请参见:
GridBagConstraints.ipady

minHeight

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

 
另请参见:
GridBagConstraints.ipadx

java.awt.GridBagLayout 继承 Object 实现 Serializable

serialVersionUID: 8838754796412211005L

序列化字段

comptable

Hashtable<K,V> comptable
此哈希表维持组件与其网格包约束之间的关联。comptable 中的键是组件,值是 GridBagConstraints 的实例。

 
另请参见:
GridBagConstraints

defaultConstraints

GridBagConstraints defaultConstraints
此字段保持包含默认值的网格包约束实例,因此如果某个组件没有与其相关联的网格包约束,则会分配给该组件一个 defaultConstraints 的副本。

 
另请参见:
GridBagLayout.getConstraints(Component), GridBagLayout.setConstraints(Component, GridBagConstraints), GridBagLayout.lookupConstraints(Component)

layoutInfo

java.awt.GridBagLayoutInfo layoutInfo
此字段保持网格包的布局信息。此字段中的信息以最近验证的网格包为基础。如果 layoutInfonull,这指示网格包中不存在组件,或者即使存在,也是尚未经过验证的组件。

 
另请参见:
GridBagLayout.getLayoutInfo(Container, int)

columnWidths

int[] columnWidths
此字段保持对列最小宽度的重写。如果此字段为非 null,则在计算全部最小列宽度之后将该值应用到网格包。如果 columnWidths 的元素多于列数,则在网格包中添加列以匹配 columnWidth 中的元素数。

 
另请参见:
GridBagLayout.getLayoutDimensions()

rowHeights

int[] rowHeights
此字段保持对行最小高度的重写。如果此字段为非 null,则在计算全部最小行高度之后将值应用到网格包。如果 rowHeights 的元素多于行数,则在网格包中添加行以匹配 rowHeights 中的元素数。

 
另请参见:
GridBagLayout.getLayoutDimensions()

columnWeights

double[] columnWeights
此字段保持对列权重的重写。如果此字段为非 null,则在计算全部列权重之后将值应用到网格包。如果 columnWeights[i] 大于列 i 的权重,则将 columnWeights[i] 中的权重分配给列 i。如果 columnWeights 的元素多于列数,则多余的元素将被忽略——它们不会导致更多列的创建。

 

rowWeights

double[] rowWeights
此字段保持对行权重的重写。如果此字段为非 null,则在计算全部行权重之后将值应用到网格包。如果 rowWeights[i] 大于行 i 的权重,则将 rowWeights[i] 中的权重分配给行 i。如果 rowWeights 的元素多于行数,则多余的元素将被忽略——它们不会导致更多行的创建。

 

java.awt.GridLayout 继承 Object 实现 Serializable

序列化字段

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.

 
另请参见:
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.

 
另请参见:
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.

 
另请参见:
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.

 
另请参见:
GridLayout.getColumns(), GridLayout.setColumns(int)

java.awt.HeadlessException 继承 UnsupportedOperationException 实现 Serializable

serialVersionUID: 167183644944358563L

java.awt.IllegalComponentStateException 继承 IllegalStateException 实现 Serializable

serialVersionUID: -1889339587208144238L

java.awt.Insets 继承 Object 实现 Serializable

serialVersionUID: -2272572637695466749L

序列化字段

top

int top
顶部的 inset。将此值添加到长方形的 Top,以产生一个新的 Top 位置。

 
另请参见:
Insets.clone()

left

int left
左边的 inset。将此值添加到长方形的 Left,以产生一个新的 Left 边缘位置。

 
另请参见:
Insets.clone()

bottom

int bottom
底部的 inset。从长方形的 Bottom 减去此值,以产生一个新的 Bottom 位置。

 
另请参见:
Insets.clone()

right

int right
右边的 inset。从长方形的 Right 减去此值,以产生一个新的 Right 边缘位置。

 
另请参见:
Insets.clone()

java.awt.Label 继承 Component 实现 Serializable

serialVersionUID: 3094126758329070636L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
从对象输入流读取标签。

抛出:
HeadlessException - 如果 GraphicsEnvironment.isHeadless() 返回 true
ClassNotFoundException
IOException
从以下版本开始:
1.4
另请参见:
GraphicsEnvironment.isHeadless()
序列化字段

text

String text
The text of this label. This text can be modified by the program but never by the user.

 
另请参见:
Label.getText(), Label.setText(String)

alignment

int alignment
The label's alignment. The default alignment is set to be left justified.

 
另请参见:
Label.getAlignment(), Label.setAlignment(int)

java.awt.Label.AccessibleAWTLabel 继承 Component.AccessibleAWTComponent 实现 Serializable

serialVersionUID: -3568967560160480438L

java.awt.List 继承 Component 实现 Serializable

serialVersionUID: -3304312411574666869L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
读取 ObjectInputStream,如果它不为 null,则添加侦听器以接收由 List 激活的项事件和操作事件(由存储在流中的键指定)。未识别的键或值将被忽略。

抛出:
HeadlessException - 如果为 GraphicsEnvironment.isHeadless,则返回 true
ClassNotFoundException
IOException
另请参见:
List.removeItemListener(ItemListener), List.addItemListener(ItemListener), GraphicsEnvironment.isHeadless(), List.writeObject(ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
将默认的可序列化字段写入流中。写入可序列化的 ItemListenersActionListeners 的列表作为可选数据。检测不可序列化的侦听器并且不尝试对其进行序列化。

序列数据:
null 终止 0 或更多对的序列;这些对由一个 String 和一个 Object 组成;String 指示对象类型,为以下任意一种:itemListenerK 指示一个 ItemListener 对象;actionListenerK 指示一个 ActionListener 对象。
抛出:
IOException
另请参见:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener), Component.itemListenerK, Component.actionListenerK, List.readObject(ObjectInputStream)
序列化字段

items

Vector<E> items
A vector created to contain items which will become part of the List Component.

 
另请参见:
List.addItem(String), List.getItem(int)

rows

int rows
This field will represent the number of visible rows in the List Component. It is specified only once, and that is when the list component is actually created. It will never change.

 
另请参见:
List.getRows()

multipleMode

boolean multipleMode
multipleMode is a variable that will be set to true if a list component is to be set to multiple selection mode, that is where the user can select more than one item in a list at one time. multipleMode will be set to false if the list component is set to single selection, that is where the user can only select one item on the list at any one time.

 
另请参见:
List.isMultipleMode(), List.setMultipleMode(boolean)

selected

int[] selected
selected is an array that will contain the indices of items that have been selected.

 
另请参见:
List.getSelectedIndexes(), List.getSelectedIndex()

visibleIndex

int visibleIndex
This variable contains the value that will be used when trying to make a particular list item visible.

 
另请参见:
List.makeVisible(int)

listSerializedDataVersion

int listSerializedDataVersion
List 组件的序列化数据版本 (Serialized Data Version)。

 

java.awt.List.AccessibleAWTList 继承 Component.AccessibleAWTComponent 实现 Serializable

serialVersionUID: 7924617370136012829L

java.awt.List.AccessibleAWTList.AccessibleAWTListChild 继承 Component.AccessibleAWTComponent 实现 Serializable

serialVersionUID: 4412022926028300317L

序列化字段

parent

List parent

indexInParent

int indexInParent

java.awt.MediaTracker 继承 Object 实现 Serializable

serialVersionUID: -483174189758638095L

序列化字段

target

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

 
另请参见:
MediaTracker.MediaTracker(Component)

head

java.awt.MediaEntry head
The head of the list of Images that is being tracked by the MediaTracker.

 
另请参见:
MediaTracker.addImage(Image, int), MediaTracker.removeImage(Image)

java.awt.Menu 继承 MenuItem 实现 Serializable

serialVersionUID: -8809584163345499784L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException,
                        HeadlessException
读取 ObjectInputStream。未识别的密钥或值将被忽略。

抛出:
HeadlessException - 如果 GraphicsEnvironment.isHeadless 返回 true
IOException
ClassNotFoundException
另请参见:
GraphicsEnvironment.isHeadless(), Menu.writeObject(ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
将默认可序列化字段写入流中。

抛出:
IOException
另请参见:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener), Menu.readObject(ObjectInputStream)
序列化字段

items

Vector<E> items
A vector of the items that will be part of the Menu.

 
另请参见:
Menu.countItems()

tearOff

boolean tearOff
This field indicates whether the menu has the tear of property or not. It will be set to true if the menu has the tear off property and it will be set to false> if it does not. A torn off menu can be deleted by a user when it is no longer needed.

 
另请参见:
Menu.isTearOff()

isHelpMenu

boolean isHelpMenu
This field will be set to true if the Menu in question is actually a help menu. Otherwise it will be set to false.

 

menuSerializedDataVersion

int menuSerializedDataVersion
菜单序列化的数据版本。

 

java.awt.Menu.AccessibleAWTMenu 继承 MenuItem.AccessibleAWTMenuItem 实现 Serializable

serialVersionUID: 5228160894980069094L

java.awt.MenuBar 继承 MenuComponent 实现 Serializable

serialVersionUID: -4930327919388951260L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
读取 ObjectInputStream。未识别的键或值将被忽略。

抛出:
HeadlessException - 如果 GraphicsEnvironment.isHeadless 返回 true
ClassNotFoundException
IOException
另请参见:
GraphicsEnvironment.isHeadless(), MenuBar.writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws ClassNotFoundException,
                         IOException
将默认的可序列化字段写入流中。

抛出:
ClassNotFoundException
IOException
另请参见:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener), MenuBar.readObject(java.io.ObjectInputStream)
序列化字段

menus

Vector<E> menus
This field represents a vector of the actual menus that will be part of the MenuBar.

 
另请参见:
MenuBar.countMenus()

helpMenu

Menu helpMenu
This menu is a special menu dedicated to help. The one thing to note about this menu is that on some platforms it appears at the right edge of the menubar.

 
另请参见:
MenuBar.getHelpMenu(), MenuBar.setHelpMenu(Menu)

menuBarSerializedDataVersion

int menuBarSerializedDataVersion
MenuBar 的序列化数据版本。

 

java.awt.MenuBar.AccessibleAWTMenuBar 继承 MenuComponent.AccessibleAWTMenuComponent 实现 Serializable

serialVersionUID: -8577604491830083815L

java.awt.MenuComponent 继承 Object 实现 Serializable

serialVersionUID: -4536902356223894379L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
从对象输入流读取该菜单组件。

抛出:
HeadlessException - 如果 GraphicsEnvironment.isHeadless 返回 true
ClassNotFoundException
IOException
另请参见:
GraphicsEnvironment.isHeadless()
序列化字段

font

Font font
The menu component's font. This value can be null at which point a default will be used. This defaults to null.

 
另请参见:
MenuComponent.setFont(Font), MenuComponent.getFont()

name

String name
该菜单组件的名称,默认为 null

 
另请参见:
MenuComponent.getName(), MenuComponent.setName(String)

nameExplicitlySet

boolean nameExplicitlySet
指示是否显式设置名称的变量。如果为 true,将以显式方式设置该名称。此变量默认为 false

 
另请参见:
MenuComponent.setName(String)

newEventsOnly

boolean newEventsOnly
Defaults to false.

 
另请参见:
MenuComponent.dispatchEvent(AWTEvent)

accessibleContext

AccessibleContext accessibleContext

java.awt.MenuComponent.AccessibleAWTMenuComponent 继承 AccessibleContext 实现 Serializable

serialVersionUID: -4269533416223798698L

java.awt.MenuItem 继承 MenuComponent 实现 Serializable

serialVersionUID: -21757335363267194L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
读取 ObjectInputStream,如果它不为 null,则添加一个侦听器,以接收由 Menu 项引发的操作事件。未识别的键或值将被忽略。

抛出:
HeadlessException - 如果 GraphicsEnvironment.isHeadless 返回 true
ClassNotFoundException
IOException
另请参见:
#removeActionListener(actionListener), #addActionListener(actionListener), MenuItem.writeObject(ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
将默认的可序列化字段写入流中。将一个可序列化的 ActionListeners 列表作为可选数据写入。检测不可序列化的侦听器并且不尝试对其进行序列化。

序列数据:
null 表示终止 0 或更多对的序列;这种对是由 StringObject 组成的;String 指示对象类型,它为以下类型之一:指示 ActionListener 对象的 actionListenerK
抛出:
IOException
另请参见:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener), MenuItem.readObject(ObjectInputStream)
序列化字段

enabled

boolean enabled
A value to indicate whether a menu item is enabled or not. If it is enabled, enabled will be set to true. Else enabled will be set to false.

 
另请参见:
MenuItem.isEnabled(), MenuItem.setEnabled(boolean)

label

String label
label is the label of a menu item. It can be any string.

 
另请参见:
MenuItem.getLabel(), MenuItem.setLabel(String)

actionCommand

String actionCommand
This field indicates the command tha has been issued by a particular menu item. By default the actionCommand is the label of the menu item, unless it has been set using setActionCommand.

 
另请参见:
MenuItem.setActionCommand(String), MenuItem.getActionCommand()

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.

 

shortcut

MenuShortcut shortcut
与菜单项关联的关键字序列。注意,在 1.1.2 中,必须使用菜单项上的 setActionCommand(),才可以使快捷方式工作。

 
另请参见:
MenuItem.getShortcut(), MenuItem.setShortcut(MenuShortcut), MenuItem.deleteShortcut()

menuItemSerializedDataVersion

int menuItemSerializedDataVersion
菜单项的序列化数据版本。

 

java.awt.MenuItem.AccessibleAWTMenuItem 继承 MenuComponent.AccessibleAWTMenuComponent 实现 Serializable

serialVersionUID: -217847831945965825L

java.awt.MenuShortcut 继承 Object 实现 Serializable

serialVersionUID: 143448358473180225L

序列化字段

key

int key
The virtual keycode for the menu shortcut. This is the keycode with which the menu shortcut will be created. Note that it is a virtual keycode, not a character, e.g. KeyEvent.VK_A, not 'a'. Note: in 1.1.x you must use setActionCommand() on a menu item in order for its shortcut to work, otherwise it will fire a null action command.

 
从以下版本开始:
JDK1.1
另请参见:
MenuShortcut.getKey(), MenuShortcut.usesShiftModifier(), KeyEvent

usesShift

boolean usesShift
Indicates whether the shft key was pressed. If true, the shift key was pressed. If false, the shift key was not pressed

 
从以下版本开始:
JDK1.1
另请参见:
MenuShortcut.usesShiftModifier()

java.awt.Panel 继承 Container 实现 Serializable

serialVersionUID: -2728009084054400034L

java.awt.Panel.AccessibleAWTPanel 继承 Container.AccessibleAWTContainer 实现 Serializable

serialVersionUID: -6409552226660031050L

java.awt.Point 继承 Point2D 实现 Serializable

serialVersionUID: -5276940640259749850L

序列化字段

x

int x
x 坐标。如果未设置 x 坐标,则默认为 0。

 
另请参见:
Point.getLocation(), Point.move(int, int)

y

int y
y 坐标。如果未设置 y 坐标,则默认为 0。

 
另请参见:
Point.getLocation(), Point.move(int, int)

java.awt.Polygon 继承 Object 实现 Serializable

serialVersionUID: -6460061437900069969L

序列化字段

npoints

int npoints
点的总数。npoints 的值表示在此 Polygon 中有效的点的数量,该值可以小于 xpointsypoints 中元素的个数。此值可以为 NULL。

 
另请参见:
Polygon.addPoint(int, int)

xpoints

int[] xpoints
x 坐标的数组。此数组中元素的个数可以大于此 Polygonx 坐标的个数。额外的元素允许新的点添加到此 Polygon 中,而无需重新创建此数组。npoints 的值等于此 Polygon 中有效点的个数。

 
另请参见:
Polygon.addPoint(int, int)

ypoints

int[] ypoints
y 坐标的数组。此数组中元素的个数可以大于此 Polygony 坐标的个数。额外的元素允许新的点添加到 Polygon 中,而无需重新创建此数组。npoints 的值等于此 Polygon 中有效点的个数。

 
另请参见:
Polygon.addPoint(int, int)

bounds

Rectangle bounds
多边形的边界。此值可以为 NULL。请参见 javadoc 注释 getBounds()。

 
另请参见:
Polygon.getBoundingBox(), Polygon.getBounds()

java.awt.PopupMenu 继承 Menu 实现 Serializable

serialVersionUID: -4620452533522760060L

java.awt.PopupMenu.AccessibleAWTPopupMenu 继承 Menu.AccessibleAWTMenu 实现 Serializable

serialVersionUID: -4282044795947239955L

java.awt.Rectangle 继承 Rectangle2D 实现 Serializable

serialVersionUID: -4345857070255674764L

序列化字段

x

int x
Rectanglex 坐标。

 
另请参见:
Rectangle.setLocation(int, int), Rectangle.getLocation()

y

int y
Rectangley 坐标。

 
另请参见:
Rectangle.setLocation(int, int), Rectangle.getLocation()

width

int width
Rectangle 的宽度。

 
从以下版本开始:
JDK1.0.
另请参见:
Rectangle.setSize(int, int), Rectangle.getSize()

height

int height
Rectangle 的高度。

 
另请参见:
Rectangle.setSize(int, int), Rectangle.getSize()

java.awt.Scrollbar 继承 Component 实现 Serializable

serialVersionUID: 8451667562882310543L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
读取 ObjectInputStream,如果它不为 null,则添加一个侦听器,以接收 Scrollbar 触发的调整事件。忽略未被识别的键或值。

抛出:
HeadlessException - 如果 GraphicsEnvironment.isHeadless 返回 true
ClassNotFoundException
IOException
另请参见:
GraphicsEnvironment.isHeadless(), Scrollbar.writeObject(ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
将默认可序列化字段写入流中。写入可序列化 AdjustmentListeners 的一个列表作为可选数据。检测不可序列化的侦听器并且不尝试对其进行序列化。

序列数据:
null 表示终止 0 或更多对的序列;这种对是由 StringObject 组成的;String 指示对象类型,它为以下类型之一:指示 AdjustmentListener 对象的 adjustmentListenerK
抛出:
IOException
另请参见:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener), Component.adjustmentListenerK, Scrollbar.readObject(ObjectInputStream)
序列化字段

value

int value
The value of the Scrollbar. This property must be greater than or equal to minimum and less than or equal to maximum - visibleAmount

 
另请参见:
Scrollbar.getValue(), Scrollbar.setValue(int)

maximum

int maximum
The maximum value of the Scrollbar. This value must be greater than the minimum value.

 
另请参见:
Scrollbar.getMaximum(), Scrollbar.setMaximum(int)

minimum

int minimum
The minimum value of the Scrollbar. This value must be less than the maximum value.

 
另请参见:
Scrollbar.getMinimum(), Scrollbar.setMinimum(int)

visibleAmount

int visibleAmount
The size of the Scrollbar's bubble. When a scroll bar is used to select a range of values, the visibleAmount represents the size of this range. This is visually indicated by the size of the bubble.

 
另请参见:
Scrollbar.getVisibleAmount(), Scrollbar.setVisibleAmount(int)

orientation

int orientation
The Scrollbar's orientation--being either horizontal or vertical. This value should be specified when the scrollbar is created.
orientation can be either : VERTICAL or HORIZONTAL only.

 
另请参见:
Scrollbar.getOrientation(), Scrollbar.setOrientation(int)

lineIncrement

int lineIncrement
The amount by which the scrollbar value will change when going up or down by a line. This value must be greater than zero.

 
另请参见:
Scrollbar.getLineIncrement(), Scrollbar.setLineIncrement(int)

pageIncrement

int pageIncrement
The amount by which the scrollbar value will change when going up or down by a page. This value must be greater than zero.

 
另请参见:
Scrollbar.getPageIncrement(), Scrollbar.setPageIncrement(int)

scrollbarSerializedDataVersion

int scrollbarSerializedDataVersion
滚动条的序列化 Data Version。

 

java.awt.Scrollbar.AccessibleAWTScrollBar 继承 Component.AccessibleAWTComponent 实现 Serializable

serialVersionUID: -344337268523697807L

java.awt.ScrollPane 继承 Container 实现 Serializable

serialVersionUID: 7956609840827222915L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
将默认可序列化字段读入流中。

抛出:
HeadlessException - 如果 GraphicsEnvironment.isHeadless() 返回 true
ClassNotFoundException
IOException
另请参见:
GraphicsEnvironment.isHeadless()

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
将默认可序列化字段写入流中。

抛出:
IOException
序列化字段

scrollbarDisplayPolicy

int scrollbarDisplayPolicy
有三种显示滚动条的方法。此整数将显示三种显示方法之一——(SCROLLBARS_ALWAYS、SCROLLBARS_AS_NEEDED 和 SCROLLBARS_NEVER)

 
另请参见:
ScrollPane.getScrollbarDisplayPolicy()

vAdjustable

ScrollPaneAdjustable vAdjustable
一个可调整的垂直滚动条。注意到不必 调用三种 Adjustable 方法非常重要,这三种方法是:setMinimum()setMaximum()setVisibleAmount()

 
另请参见:
ScrollPane.getVAdjustable()

hAdjustable

ScrollPaneAdjustable hAdjustable
一个可调整的水平滚动条。注意到不必 调用三种 Adjustable 方法非常重要,这三种方法是:setMinimum()setMaximum()setVisibleAmount()

 
另请参见:
ScrollPane.getHAdjustable()

wheelScrollingEnabled

boolean wheelScrollingEnabled
指示是否应该在接收 MouseWheelEvent 时进行滚动。

 
从以下版本开始:
1.4

java.awt.ScrollPane.AccessibleAWTScrollPane 继承 Container.AccessibleAWTContainer 实现 Serializable

serialVersionUID: 6100703663886637L

java.awt.ScrollPaneAdjustable 继承 Object 实现 Serializable

serialVersionUID: -3359745691033257079L

序列化字段

sp

ScrollPane sp
此对象是其滚动条的 ScrollPane

 

orientation

int orientation
此滚动条的方向。

 
另请参见:
ScrollPaneAdjustable.getOrientation(), Adjustable.HORIZONTAL, Adjustable.VERTICAL

value

int value
此滚动条的值。value 应该大于 minimum 且小于 maximum

 
另请参见:
ScrollPaneAdjustable.getValue(), ScrollPaneAdjustable.setValue(int)

minimum

int minimum
此滚动条的最小值。只能通过 ScrollPane 设置此值。

ATTN: 在当前实现中,minimum 总是为 0。只能通过 setSpan 方法更改此字段,并且 ScrollPane 总是调用 minimum 为 0 的此方法。getMinimum 方法总是返回 0 而不检查此字段。

 
另请参见:
ScrollPaneAdjustable.getMinimum(), ScrollPaneAdjustable.setSpan(int, int, int)

maximum

int maximum
此滚动条的最大值。只能通过 ScrollPane 设置此值。

 
另请参见:
ScrollPaneAdjustable.getMaximum(), ScrollPaneAdjustable.setSpan(int, int, int)

visibleAmount

int visibleAmount
此滚动条可视部分的大小。只能通过 ScrollPane 设置此值。

 
另请参见:
ScrollPaneAdjustable.getVisibleAmount(), ScrollPaneAdjustable.setSpan(int, int, int)

unitIncrement

int unitIncrement
当滚动条向上或向下移动一行时,滚动条值更改的量。该值应该是一个非负整数。

 
另请参见:
ScrollPaneAdjustable.getUnitIncrement(), ScrollPaneAdjustable.setUnitIncrement(int)

blockIncrement

int blockIncrement
当滚动条向上或向下移动一页时,滚动条值更改的量。该值应该是一个非负整数。

 
另请参见:
ScrollPaneAdjustable.getBlockIncrement(), ScrollPaneAdjustable.setBlockIncrement(int)

adjustmentListener

AdjustmentListener adjustmentListener

java.awt.SystemColor 继承 Color 实现 Serializable

serialVersionUID: 4503142729533789064L

java.awt.TextArea 继承 TextComponent 实现 Serializable

serialVersionUID: 3692302836626095722L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
读取 ObjectInputStream。

抛出:
HeadlessException - 如果 GraphicsEnvironment.isHeadless() 返回 true
ClassNotFoundException
IOException
另请参见:
GraphicsEnvironment.isHeadless()
序列化字段

rows

int rows
The number of rows in the TextArea. This parameter will determine the text area's height. Guaranteed to be non-negative.

 
另请参见:
TextArea.getRows(), TextArea.setRows(int)

columns

int columns
The number of columns in the TextArea. A column is an approximate average character width that is platform-dependent. This parameter will determine the text area's width. Guaranteed to be non-negative.

 
另请参见:
TextArea.setColumns(int), TextArea.getColumns()

scrollbarVisibility

int scrollbarVisibility
确定为文本区创建哪种滚动条。它可以是以下四个值之一:SCROLLBARS_BOTH = 两种滚动条都创建。
SCROLLBARS_HORIZONTAL_ONLY = 只创建水平滚动条。
SCROLLBARS_VERTICAL_ONLY = 只创建垂直滚动条。
SCROLLBARS_NONE = 不创建滚动条。

 
另请参见:
TextArea.getScrollbarVisibility()

textAreaSerializedDataVersion

int textAreaSerializedDataVersion
The textArea Serialized Data Version.

 

java.awt.TextArea.AccessibleAWTTextArea 继承 TextComponent.AccessibleAWTTextComponent 实现 Serializable

serialVersionUID: 3472827823632144419L

java.awt.TextComponent 继承 Component 实现 Serializable

serialVersionUID: -2214773872412987419L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
读取 ObjectInputStream,如果它不为 null,则添加一个侦听器,以接收 TextComponent 触发的文本事件。未识别的密钥或值将被忽略。

抛出:
HeadlessException - 如果 GraphicsEnvironment.isHeadless() 返回 true
ClassNotFoundException
IOException
另请参见:
#removeTextListener(), #addTextListener(), GraphicsEnvironment.isHeadless()

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
将默认的可序列化字段写入流中。写入可序列化 TextListener 的一个列表作为可选数据。检测不可序列化的 TextListener,并且不尝试对其进行序列化。

序列数据:
以 null 终止的 0 或多对序列。由 String 和 Object 组成的一对序列。String 指示对象类型,它是以下之一: textListenerK 指示 TextListener 对象。
抛出:
IOException
另请参见:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener), Component.textListenerK
序列化字段

text

String text
The value of the text. A null value is the same as "".

 
另请参见:
TextComponent.setText(String), TextComponent.getText()

editable

boolean editable
A boolean indicating whether or not this TextComponent is editable. It will be true if the text component is editable and false if not.

 
另请参见:
TextComponent.isEditable()

selectionStart

int selectionStart
The selection refers to the selected text, and the selectionStart is the start position of the selected text.

 
另请参见:
TextComponent.getSelectionStart(), TextComponent.setSelectionStart(int)

selectionEnd

int selectionEnd
The selection refers to the selected text, and the selectionEnd is the end position of the selected text.

 
另请参见:
TextComponent.getSelectionEnd(), TextComponent.setSelectionEnd(int)

backgroundSetByClientCode

boolean backgroundSetByClientCode

textComponentSerializedDataVersion

int textComponentSerializedDataVersion
textComponent 的 SerializedDataVersion。

 

checkForEnableIM

boolean checkForEnableIM

java.awt.TextComponent.AccessibleAWTTextComponent 继承 Component.AccessibleAWTComponent 实现 Serializable

serialVersionUID: 3631432373506317811L

java.awt.TextField 继承 TextComponent 实现 Serializable

serialVersionUID: -2966288784432217853L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
读取 ObjectInputStream,如果它不为 null,则添加一个侦听器,以接收 TextField 触发的操作事件。未识别的密钥或值将被忽略。

抛出:
HeadlessException - 如果 GraphicsEnvironment.isHeadless() 返回 true
ClassNotFoundException
IOException
另请参见:
TextField.removeActionListener(ActionListener), TextField.addActionListener(ActionListener), GraphicsEnvironment.isHeadless()

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
将默认的可序列化字段写入流中。写入可序列化 ActionListener 的一个列表作为可选数据。检测不可序列化的 ActionListener,并且不尝试对其进行序列化。

序列数据:
以 null 终止的 0 或多对序列。由 String 和 Object 组成的一对序列。String 指示对象类型,它是以下类型之一:指示 ActionListener 对象的 ActionListenerK。
抛出:
IOException
另请参见:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener), Component.actionListenerK
序列化字段

columns

int columns
The number of columns in the text field. A column is an approximate average character width that is platform-dependent. Guaranteed to be non-negative.

 
另请参见:
TextField.setColumns(int), TextField.getColumns()

echoChar

char echoChar
The echo character, which is used when the user wishes to disguise the characters typed into the text field. The disguises are removed if echoChar = 0.

 
另请参见:
TextField.getEchoChar(), TextField.setEchoChar(char), TextField.echoCharIsSet()

textFieldSerializedDataVersion

int textFieldSerializedDataVersion
textField 的 Serialized Data Version。

 

java.awt.TextField.AccessibleAWTTextField 继承 TextComponent.AccessibleAWTTextComponent 实现 Serializable

serialVersionUID: 6219164359235943158L

java.awt.Window 继承 Container 实现 Serializable

serialVersionUID: 4497834738069338734L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException,
                        HeadlessException
读取 ObjectInputStream 和侦听器的可选列表,以接收由该组件引发的各种事件;并且读取子窗口(可能为 null)的列表。未识别的键或值将被忽略。

抛出:
HeadlessException - 如果 GraphicsEnvironment.isHeadless 返回 true
ClassNotFoundException
IOException
另请参见:
GraphicsEnvironment.isHeadless(), Window.writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
将默认的可序列化字段写入流中。写入可序列化的 WindowListenerWindowFocusListener 的列表作为可选数据。将子窗口的列表作为可选数据写入。

序列数据:
null 表示终止 0 或更多对的序列;这种对是由 StringObject 组成的;String 指示对象类型,它为以下类型之一:windowListenerK 指示 WindowListener 对象;windowFocusWindowK 指示 WindowFocusListener 对象;ownedWindowK 指示 Window 子对象
抛出:
IOException
另请参见:
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener), Component.windowListenerK, Component.windowFocusListenerK, Component.ownedWindowK, Window.readObject(ObjectInputStream)
序列化字段

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.

 
另请参见:
Window.getWarningString()

syncLWRequests

boolean syncLWRequests

state

int state
An Integer value representing the Window State.

 
从以下版本开始:
1.2
另请参见:
Window.show()

alwaysOnTop

boolean alwaysOnTop
表示窗口 always-on-top 状态的布尔值

 
从以下版本开始:
1.5
另请参见:
Window.setAlwaysOnTop(boolean), Window.isAlwaysOnTop()

focusMgr

java.awt.FocusManager focusMgr
未使用。为序列化向后兼容性而维护。

 
从以下版本开始:
1.2

focusableWindowState

boolean focusableWindowState
指示此窗口是否可以成为聚焦窗口。

 
从以下版本开始:
1.4
另请参见:
Window.getFocusableWindowState(), Window.setFocusableWindowState(boolean)

windowSerializedDataVersion

int windowSerializedDataVersion
窗口序列化的数据版本。

 

locationByPlatform

boolean locationByPlatform

java.awt.Window.AccessibleAWTWindow 继承 Container.AccessibleAWTContainer 实现 Serializable

serialVersionUID: 4215068635060671780L


软件包 java.awt.color

java.awt.color.CMMException 继承 RuntimeException 实现 Serializable

java.awt.color.ColorSpace 继承 Object 实现 Serializable

serialVersionUID: -409452704308689724L

序列化字段

type

int type

numComponents

int numComponents

java.awt.color.ICC_ColorSpace 继承 ColorSpace 实现 Serializable

serialVersionUID: 3455889114070431483L

序列化字段

thisProfile

ICC_Profile thisProfile

minVal

float[] minVal

maxVal

float[] maxVal

diffMinMax

float[] diffMinMax

invDiffMinMax

float[] invDiffMinMax

needScaleInit

boolean needScaleInit

java.awt.color.ICC_Profile 继承 Object 实现 Serializable

serialVersionUID: -3938515861990936766L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
从流中读取默认的可序列化字段。从流中读取 string 和 byte 数组作为额外的数据。

序列数据:
如果 profile 对象是预定义颜色空间(如 "CS_sRGB")的某个配置文件,则 StringColorSpace 类中所定义的 CS_* 常量之一。否则 string 为 null

byte[] 数组是该配置文件的配置文件数据。对于预定义的配置文件而言,它通常为 null

如果将该 string 识别为预定义颜色空间的常量名,则将对象解析为使用 getInstance(int cspace) 所获得的配置文件,并且忽略配置文件数据。否则将对象解析为使用 getInstance(byte[] data) 所获得的配置文件。

抛出:
IOException - 由 ObjectInputStream 抛出。
ClassNotFoundException - 由 ObjectInputStream 抛出。
另请参见:
ICC_Profile.readResolve(), ICC_Profile.getInstance(int), ICC_Profile.getInstance(byte[])

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
将默认的可序列化字段写入流。向流中写入 string 和 byte 数组作为额外的数据。

序列数据:
如果 profile 对象是预定义颜色空间(如 "CS_sRGB")的某个配置文件,则 StringColorSpace 类中所定义的 CS_* 常量之一。否则 string 为 null

byte[] 数组是该配置文件的配置文件数据。对于预定义的颜色空间,写入的是 null 而不是配置文件数据。如果在以后的 Java API 版本中添加了新的预定义颜色空间,则此类的以后版本中可能会选择这条道:不但写入新预定义颜色空间的颜色空间名称,而且还要写入配置文件数据,以使旧版本仍能反序列化对象。

抛出:
IOException - 由 ObjectInputStream 抛出。

readResolve

protected Object readResolve()
                      throws ObjectStreamException
解析将被反序列化为用 CMM 注册的实例的实例。

抛出:
永远不会抛出 - ObjectStreamException,但是要受序列化规范的限制。
ObjectStreamException
序列化字段

iccProfileSerializedDataVersion

int iccProfileSerializedDataVersion
流中其他序列化数据的格式版本。版本 1 对应于 Java 2 平台,1.3 版

 
从以下版本开始:
1.3

java.awt.color.ICC_ProfileGray 继承 ICC_Profile 实现 Serializable

java.awt.color.ICC_ProfileRGB 继承 ICC_Profile 实现 Serializable

java.awt.color.ProfileDataException 继承 RuntimeException 实现 Serializable


软件包 java.awt.datatransfer

java.awt.datatransfer.DataFlavor 继承 Object 实现 Serializable

serialVersionUID: 8367026044764648243L

序列化方法

readExternal

public void readExternal(ObjectInput is)
                  throws IOException,
                         ClassNotFoundException
从 Serialized 状态还原此 DataFlavor

抛出:
IOException - 如果发生 I/O 错误
ClassNotFoundException - 如果无法找到需要恢复的某个对象的类。

writeExternal

public void writeExternal(ObjectOutput os)
                   throws IOException
序列化此 DataFlavor

抛出:
IOException - 包含可能发生的所有 I/O 异常

java.awt.datatransfer.FlavorEvent 继承 EventObject 实现 Serializable

java.awt.datatransfer.UnsupportedFlavorException 继承 Exception 实现 Serializable

serialVersionUID: 5383814944251665601L


软件包 java.awt.dnd

java.awt.dnd.DragGestureEvent 继承 EventObject 实现 Serializable

serialVersionUID: 9080172649166731306L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
反序列化此 DragGestureEvent。此方法首先为所有的非 transient 字段执行默认的反序列化。然后还要尝试反序列化此对象动作事件的 List。通过反序列化字段 events 来进行首次尝试,因为在发布版本 1.4 之前,此名称的非 transient 字段存储动作事件的 List。如果此尝试失败,则使用流中的下一个对象。如果结果 Listnull,则设置此对象的动作事件 List 为空 List

抛出:
ClassNotFoundException
IOException
从以下版本开始:
1.4

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
序列化此 DragGestureEvent。当且仅当可以序列化此对象的动作事件 List 时才执行默认的序列化,然后写出该 List。如果无法序列化,则写出 null。在这种情况下,从得到的反序列化流中创建的 DragGestureEvent 将包含一个空的动作事件 List

序列数据:
按字母顺序排列的默认可序列化字段,后跟 List 实例或 null
抛出:
IOException
从以下版本开始:
1.4
序列化字段

dragSource

DragSource dragSource
与此 DragGestureEvent 关联的 DragSource。

 

component

Component component
与此 DragGestureEvent 关联的 Component。

 

origin

Point origin
拖动的原点。

 

action

int action
用户的首选操作。

 

java.awt.dnd.DragGestureRecognizer 继承 Object 实现 Serializable

serialVersionUID: 8996673345831063337L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
反序列化此 DragGestureRecognizer。此方法首先为所有的非 transient 字段执行默认的反序列化。然后通过使用流中的下一个对象,还要反序列化此对象的 DragGestureListener

抛出:
ClassNotFoundException
IOException
从以下版本开始:
1.4

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
序列化此 DragGestureRecognizer。此方法首先执行默认的序列化。然后当且仅当可以序列化此对象的 DragGestureListener 时将其写出。如果无法序列化,则写出 null

序列数据:
按字母顺序排列的默认可序列化字段,后跟 DragGestureListenernull
抛出:
IOException
从以下版本开始:
1.4
序列化字段

dragSource

DragSource dragSource
与此 DragGestureRecognizer 关联的 DragSource

 

component

Component component
与此 DragGestureRecognizer 关联的 Component

 

sourceActions

int sourceActions
此 Drag 和 Drop 操作中所用动作类型的 int 表示形式。

 

events

ArrayList<E> events
DragGestureRecognizer“识别”为触发拖动的“动作”事件列表(按顺序)。

 

java.awt.dnd.DragSource 继承 Object 实现 Serializable

serialVersionUID: 6236096958971414066L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
反序列化此 DragSource。此方法首先执行默认的反序列化。然后使用流中的下一个对象反序列化此对象的 FlavorMap。如果得到的 FlavorMapnull,则将此对象的 FlavorMap 设置为此线程的 ClassLoader 的默认 FlavorMap。然后反序列化此对象的侦听器,方法是从流中读取以 null 终止的 0 序列或者更多的键/值对:

抛出:
ClassNotFoundException
IOException
从以下版本开始:
1.4
另请参见:
SystemFlavorMap.getDefaultFlavorMap()

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
序列化此 DragSource。此方法首先执行默认的序列化。然后当且仅当可以序列化此对象的 FlavorMap 时写出该 FlavorMap。如果无法序列化,则写出 null。然后写出向此对象注册的 Serializable 侦听器。使用以 null 终止的 0 序列或更多数据对的形式写出这些侦听器。该数据对由 StringObject 组成;String 指示该 Object 的类型,为以下某个值:

序列数据:
FlavorMap 实例或 null,后跟以 null 终止的 0 序列或更多数据对;该数据对由 StringObject 组成;String 指示该 Object 的类型,为以下某个值:
  • dragSourceListenerK 表示 DragSourceListener 对象;
  • dragSourceMotionListenerK 表示 DragSourceMotionListener 对象。
抛出:
IOException
从以下版本开始:
1.4

java.awt.dnd.DragSourceContext 继承 Object 实现 Serializable

serialVersionUID: -115407898692194719L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
反序列化此 DragSourceContext 此方法首先为所有的非 transient 字段执行默认的反序列化。然后通过使用流中的下两个对象,还要反序列化此对象的 TransferableDragSourceListener 如果得到的 Transferablenull,则将此对象的 Transferable 设置为支持无 DataFlavor 的哑 Transferable

抛出:
ClassNotFoundException
IOException
从以下版本开始:
1.4

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
序列化此 DragSourceContext 此方法首先执行默认的序列化。然后当且仅当可以序列化此对象的 Transferable 时将其写出。如果无法序列化,则写出 null 在这种情况下,从得到的反序列化流中创建的 DragSourceContext 将包含一个支持无 DataFlavor 的哑 Transferable。最后,当且仅当可以序列化此对象的 DragSourceListener 时将其写出。如果无法序列化,则写出 null

序列数据:
按字母顺序排列的默认可序列化字段,后跟 Transferable 实例或 null,然后是 DragSourceListener 实例或 null
抛出:
IOException
从以下版本开始:
1.4
序列化字段

trigger

DragGestureEvent trigger
触发拖动开始的事件。

 

cursor

Cursor cursor
当前的拖动光标。

 

useCustomCursor

boolean useCustomCursor
如果使用了自定义的拖动光标,而不是默认的拖动光标,则为 true

 

sourceActions

int sourceActions
DnDConstants 的位掩码,表示拖动源针对与此 DragSourceContext 关联的拖动操作所支持的放置动作集合。

 

java.awt.dnd.DragSourceDragEvent 继承 DragSourceEvent 实现 Serializable

serialVersionUID: 481346297933902471L

序列化字段

targetActions

int targetActions
目标放置动作。

 

dropAction

int dropAction
用户放置动作。

 

gestureModifiers

int gestureModifiers
与用户动作关联的输入设备组合键状态。

 

invalidModifiers

boolean invalidModifiers
指示 gestureModifiers 是否无效。

 

java.awt.dnd.DragSourceDropEvent 继承 DragSourceEvent 实现 Serializable

serialVersionUID: -5571321229470821891L

序列化字段

dropSuccess

boolean dropSuccess
如果放置成功,则为 true

 

dropAction

int dropAction
放置操作。

 

java.awt.dnd.DragSourceEvent 继承 EventObject 实现 Serializable

serialVersionUID: -763287114604032641L

序列化字段

locationSpecified

boolean locationSpecified
指示是否为此事件指定了光标位置的 boolean 值。

 

x

int x
如果为此事件指定了光标位置,则为事件发生时该光标位置的水平坐标;否则为零。

 

y

int y
如果为此事件指定了光标位置,则为事件发生时该光标位置的垂直坐标;否则为零。

 

java.awt.dnd.DropTarget 继承 Object 实现 Serializable

serialVersionUID: -6283860791671019047L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
反序列化此 DropTarget 此方法首先为所有的非 transient 字段执行默认的反序列化。然后还要尝试反序列化此对象的 DropTargetListener 通过反序列化字段 dtListener 来进行首次尝试,因为在发布版本 1.4 之前,此名称的非 transient 字段存储 DropTargetListener 如果此尝试失败,则使用流中的下一个对象。

抛出:
ClassNotFoundException
IOException
从以下版本开始:
1.4

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
序列化此 DropTarget 当且仅当可以执行序列化时才执行默认的序列化,然后写出此对象的 DropTargetListener 如果无法序列化,则写出 null

序列数据:
按字母顺序排列的默认可序列化字段,后跟 DropTargetListener 实例或 null
抛出:
IOException
从以下版本开始:
1.4
序列化字段

dropTargetContext

DropTargetContext dropTargetContext
与此 DropTarget 关联的 DropTargetContext。

 

component

Component component
与此 DropTarget 关联的 Component。

 

actions

int actions
Default permissible actions supported by this DropTarget.

 
另请参见:
DropTarget.setDefaultActions(int), DropTarget.getDefaultActions()

active

boolean active
true if the DropTarget is accepting Drag & Drop operations.

 

java.awt.dnd.DropTargetContext 继承 Object 实现 Serializable

serialVersionUID: -634158968993743371L

序列化字段

dropTarget

DropTarget dropTarget
与此 DropTargetContext 相关的 DropTarget。

 

java.awt.dnd.DropTargetDragEvent 继承 DropTargetEvent 实现 Serializable

serialVersionUID: -8422265619058953682L

序列化字段

location

Point location
Component 坐标中 drag 光标的热点位置。

 

actions

int actions
源 drop 操作。

 

dropAction

int dropAction
用户 drop 操作。

 

java.awt.dnd.DropTargetDropEvent 继承 DropTargetEvent 实现 Serializable

serialVersionUID: -1721911170440459322L

序列化字段

location

Point location
Component 坐标中 drag 光标的热点位置。

 

actions

int actions
源 drop 操作。

 

dropAction

int dropAction
用户 drop 操作。

 

isLocalTx

boolean isLocalTx
如果源对象与目标对象处于相同的 JVM 中,则为 true

 

java.awt.dnd.DropTargetEvent 继承 EventObject 实现 Serializable

serialVersionUID: 2821229066521922993L

序列化字段

context

DropTargetContext context
与此 DropTargetEvent 相关的 DropTargetContext

 

java.awt.dnd.InvalidDnDOperationException 继承 IllegalStateException 实现 Serializable

java.awt.dnd.MouseDragGestureRecognizer 继承 DragGestureRecognizer 实现 Serializable

serialVersionUID: 6220099344182281120L


软件包 java.awt.event

java.awt.event.ActionEvent 继承 AWTEvent 实现 Serializable

serialVersionUID: -7671078796273832149L

序列化字段

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.

 
另请参见:
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.

 
另请参见:
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.

 
另请参见:
ActionEvent.getModifiers()

java.awt.event.AdjustmentEvent 继承 AWTEvent 实现 Serializable

serialVersionUID: 5700290645205279921L

序列化字段

adjustable

Adjustable adjustable
The adjustable object that fired the event.

 
另请参见:
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.

 
另请参见:
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.

 
另请参见:
AdjustmentEvent.getAdjustmentType()

isAdjusting

boolean isAdjusting
The isAdjusting is true if the event is one of the series of multiple adjustment events.

 
从以下版本开始:
1.4
另请参见:
AdjustmentEvent.getValueIsAdjusting()

java.awt.event.ComponentEvent 继承 AWTEvent 实现 Serializable

serialVersionUID: 8101406823902992965L

java.awt.event.ContainerEvent 继承 ComponentEvent 实现 Serializable

serialVersionUID: -4114942250539772041L

序列化字段

child

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

 
另请参见:
ContainerEvent.getChild()

java.awt.event.FocusEvent 继承 ComponentEvent 实现 Serializable

serialVersionUID: 523753786457416396L

序列化字段

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.

 
另请参见:
FocusEvent.isTemporary()

java.awt.event.HierarchyEvent 继承 AWTEvent 实现 Serializable

序列化字段

changed

Component changed

changedParent

Container changedParent

changeFlags

long changeFlags

java.awt.event.InputEvent 继承 ComponentEvent 实现 Serializable

serialVersionUID: -2482525981698309786L

序列化字段

when

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

 
另请参见:
InputEvent.getWhen()

modifiers

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

 
另请参见:
InputEvent.getModifiers(), InputEvent.getModifiersEx(), KeyEvent, MouseEvent

java.awt.event.InputMethodEvent 继承 AWTEvent 实现 Serializable

serialVersionUID: 4727190874778922661L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
如果 when 字段未出现在对象输入流中,则初始化它。在这种情况下,将通过调用 EventQueue.getMostRecentEventTime() 来初始化该字段。

抛出:
ClassNotFoundException
IOException
序列化字段

when

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

 
从以下版本开始:
1.4
另请参见:
InputMethodEvent.getWhen()

java.awt.event.InvocationEvent 继承 AWTEvent 实现 Serializable

serialVersionUID: 436056344909459450L

序列化字段

runnable

Runnable runnable
调用其 run() 方法的 Runnable。


notifier

Object notifier
在 Runnable.run() 方法返回之后立即调用其 notifyAll() 方法的对象(可能为 null)。


catchExceptions

boolean catchExceptions
如果 dispatch() 捕获了 Throwable 并将其存储在异常实例变量中,则设置为 true。如果设置为 false,则会将 Throwable 传播到 EventDispatchThread 的调度循环中。


exception

Exception exception
在执行 Runnable.run() 方法期间抛出的 Exception(可能为 null)。如果特定实例没有捕获异常,则此变量也为 null。


throwable

Throwable throwable
在执行 Runnable.run() 方法期间抛出的 Throwable(可能为 null)。如果特定实例没有捕获异常,则此变量也为 null。


when

long when
此事件发生时的时间戳。

 
另请参见:
InvocationEvent.getWhen()

java.awt.event.ItemEvent 继承 AWTEvent 实现 Serializable

serialVersionUID: -608708132447206933L

序列化字段

item

Object item
The item whose selection state has changed.

 
另请参见:
ItemEvent.getItem()

stateChange

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

 
另请参见:
ItemEvent.getStateChange()

java.awt.event.KeyEvent 继承 InputEvent 实现 Serializable

serialVersionUID: -2352130953028126954L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
根据旧的修饰符来设置新的修饰符。键修饰符可重写与鼠标修饰符重合的部分。

抛出:
IOException
ClassNotFoundException
序列化字段

isProxyActive

boolean isProxyActive
存储本机事件调度系统的状态。如果创建事件时事件代理机制是活动的,则为 true;如果是非活动的,则为 false。该状态用于 Component.dispatchEventImpl 中,以在代理是活动的情况下正确地调度事件。


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.

 
另请参见:
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.

 
另请参见:
KeyEvent.getKeyChar(), KeyEvent.setKeyChar(char)

keyLocation

int keyLocation
The location of the key on the keyboard. Some keys occur more than once on a keyboard, e.g. the left and right shift keys. Additionally, some keys occur on the numeric keypad. This variable is used to distinguish such keys. The only legal values are KEY_LOCATION_UNKNOWN, KEY_LOCATION_STANDARD, KEY_LOCATION_LEFT, KEY_LOCATION_RIGHT, and KEY_LOCATION_NUMPAD.

 
另请参见:
KeyEvent.getKeyLocation()

java.awt.event.MouseEvent 继承 InputEvent 实现 Serializable

serialVersionUID: -991214153494842848L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
根据旧的修饰符来设置新的修饰符。

抛出:
IOException
ClassNotFoundException
序列化字段

x

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

 
另请参见:
MouseEvent.getX()

y

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

 
另请参见:
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.

 
另请参见:
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.

 
另请参见:
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.

 
另请参见:
PopupMenu, MouseEvent.isPopupTrigger()

java.awt.event.MouseWheelEvent 继承 MouseEvent 实现 Serializable

序列化字段

scrollType

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

另请参见:
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.

另请参见:
MouseWheelEvent.getScrollAmount(), MouseWheelEvent.getScrollType()

wheelRotation

int wheelRotation
Indicates how far the mouse wheel was rotated.

另请参见:
MouseWheelEvent.getWheelRotation()

java.awt.event.PaintEvent 继承 ComponentEvent 实现 Serializable

serialVersionUID: 1267492026433337593L

序列化字段

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.

 
另请参见:
Rectangle, PaintEvent.setUpdateRect(Rectangle), PaintEvent.getUpdateRect()

java.awt.event.TextEvent 继承 AWTEvent 实现 Serializable

serialVersionUID: 6269902291250941179L

java.awt.event.WindowEvent 继承 ComponentEvent 实现 Serializable

serialVersionUID: -1567959133147912127L

序列化字段

oldState

int oldState
TBS


newState

int newState

软件包 java.awt.font

java.awt.font.NumericShaper 继承 Object 实现 Serializable

序列化字段

key

int key
针对上下文成形的上下文索引,值的范围是 0 到 18


mask

int mask
此标志指示是否以上下文方式成形(高位),以及要成形哪些数字范围(0-18 位)

java.awt.font.TextAttribute 继承 AttributedCharacterIterator.Attribute 实现 Serializable

serialVersionUID: 7744112784117861702L

序列化方法

readResolve

protected Object readResolve()
                      throws InvalidObjectException
将反序列化的实例解析成预定义常量。

抛出:
InvalidObjectException

java.awt.font.TransformAttribute 继承 Object 实现 Serializable

serialVersionUID: 3356247357827709530L

序列化方法

writeObject

private void writeObject(ObjectOutputStream s)
                  throws ClassNotFoundException,
                         IOException
抛出:
ClassNotFoundException
IOException
序列化字段

transform

AffineTransform transform
TransformAttributeAffineTransform;如果 AffineTransform 为恒等变换,则为 null


软件包 java.awt.geom

java.awt.geom.AffineTransform 继承 Object 实现 Serializable

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
抛出:
ClassNotFoundException
IOException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws ClassNotFoundException,
                         IOException
抛出:
ClassNotFoundException
IOException
序列化字段

m00

double m00
The X coordinate scaling element of the 3x3 affine transformation matrix.

 

m10

double m10
The Y coordinate shearing element of the 3x3 affine transformation matrix.

 

m01

double m01
The X coordinate shearing element of the 3x3 affine transformation matrix.

 

m11

double m11
The Y coordinate scaling element of the 3x3 affine transformation matrix.

 

m02

double m02
The X coordinate of the translation element of the 3x3 affine transformation matrix.

 

m12

double m12
The Y coordinate of the translation element of the 3x3 affine transformation matrix.

 

java.awt.geom.IllegalPathStateException 继承 RuntimeException 实现 Serializable

java.awt.geom.NoninvertibleTransformException 继承 Exception 实现 Serializable


软件包 java.awt.image

java.awt.image.ImagingOpException 继承 RuntimeException 实现 Serializable

java.awt.image.RasterFormatException 继承 RuntimeException 实现 Serializable


软件包 java.awt.image.renderable

java.awt.image.renderable.ParameterBlock 继承 Object 实现 Serializable

序列化字段

sources

Vector<E> sources
源的 Vector,存储为任意 Objects。


parameters

Vector<E> parameters
一个非源参数的 Vector,存储为任意 Object。


软件包 java.awt.print

java.awt.print.PrinterAbortException 继承 PrinterException 实现 Serializable

java.awt.print.PrinterException 继承 Exception 实现 Serializable

java.awt.print.PrinterIOException 继承 PrinterException 实现 Serializable

serialVersionUID: 5850870712125932846L

序列化字段

mException

IOException mException
终止打印作业的 IO 错误。

 

软件包 java.beans

java.beans.IndexedPropertyChangeEvent 继承 PropertyChangeEvent 实现 Serializable

序列化字段

index

int index

java.beans.IntrospectionException 继承 Exception 实现 Serializable

java.beans.PropertyChangeEvent 继承 EventObject 实现 Serializable

序列化字段

propertyName

String propertyName
已更改属性的名称。如果该名称未知,则为 null。

 

newValue

Object newValue
属性的新值。如果该值未知,则为 null。

 

oldValue

Object oldValue
属性以前的值。如果该值未知,则为 null。

 

propagationId

Object propagationId
传播 ID。可能为 null。

 
另请参见:
#getPropagationId.

java.beans.PropertyChangeSupport 继承 Object 实现 Serializable

serialVersionUID: 6401253773779951803L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
抛出:
ClassNotFoundException
IOException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
序列数据:
Null terminated list of PropertyChangeListeners

在进行序列化时,跳过不可序列化的侦听器,只序列化可序列化的侦听器。

抛出:
IOException
序列化字段

children

Hashtable<K,V> children
管理特定属性的侦听器的哈希表。将属性名称映射到 PropertyChangeSupport 对象。

 
从以下版本开始:
1.2

source

Object source
将作为所有已生成事件的“源”提供的对象。

 

propertyChangeSupportSerializedDataVersion

int propertyChangeSupportSerializedDataVersion
内部版本号

 
从以下版本开始:

java.beans.PropertyVetoException 继承 Exception 实现 Serializable

序列化字段

evt

PropertyChangeEvent evt
描述所禁止的更改的 PropertyChangeEvent。

 

java.beans.VetoableChangeSupport 继承 Object 实现 Serializable

serialVersionUID: -5090210921595982017L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws ClassNotFoundException,
                        IOException
抛出:
ClassNotFoundException
IOException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
序列数据:
Null terminated list of VetoableChangeListeners.

在进行序列化时,跳过不可序列化的侦听器,只序列化可序列化的侦听器。

抛出:
IOException
序列化字段

children

Hashtable<K,V> children
管理特定属性的侦听器的哈希表。将属性名称映射到 VetoableChangeSupport 对象。

 
从以下版本开始:
1.2

source

Object source
将作为所有已生成事件的“源”而提供的对象。

 

vetoableChangeSupportSerializedDataVersion

int vetoableChangeSupportSerializedDataVersion
内部版本号

 

软件包 java.beans.beancontext

java.beans.beancontext.BeanContextChildSupport 继承 Object 实现 Serializable

serialVersionUID: 6328947014421475877L

序列化方法

readObject

private void readObject(ObjectInputStream ois)
                 throws IOException,
                        ClassNotFoundException
恢复一个持久对象,必须等待后续 setBeanContext() 完全恢复从新的嵌套 BeanContext 中获得的所有资源

抛出:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream oos)
                  throws IOException
写入对象的持久状态。

抛出:
IOException
序列化字段

beanContextChildPeer

BeanContextChild beanContextChildPeer
在其中嵌套此 BeanContextChildBeanContext


pcSupport

PropertyChangeSupport pcSupport
与此 BeanContextChildSupport 相关联的 PropertyChangeSupport


vcSupport

VetoableChangeSupport vcSupport
与此 BeanContextChildSupport 相关联的 VetoableChangeSupport

java.beans.beancontext.BeanContextEvent 继承 EventObject 实现 Serializable

序列化字段

propagatedFrom

BeanContext propagatedFrom
作为此事件的传播源的 BeanContext

java.beans.beancontext.BeanContextMembershipEvent 继承 BeanContextEvent 实现 Serializable

序列化字段

children

Collection<E> children
受此事件通知影响的子级的列表。

java.beans.beancontext.BeanContextServiceAvailableEvent 继承 BeanContextEvent 实现 Serializable

序列化字段

serviceClass

Class<T> serviceClass
新近可用服务的 Class 引用

java.beans.beancontext.BeanContextServiceRevokedEvent 继承 BeanContextEvent 实现 Serializable

序列化字段

serviceClass

Class<T> serviceClass
将被取消服务的 Class 引用。


invalidateRefs

boolean invalidateRefs

java.beans.beancontext.BeanContextServicesSupport 继承 BeanContextSupport 实现 Serializable

序列化方法

readObject

private void readObject(ObjectInputStream ois)
                 throws IOException,
                        ClassNotFoundException
反序列化实例。

抛出:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream oos)
                  throws IOException
序列化实例。

抛出:
IOException

java.beans.beancontext.BeanContextServicesSupport.BCSSChild 继承 BeanContextSupport.BCSChild 实现 Serializable

serialVersionUID: -3263851306889194873L

java.beans.beancontext.BeanContextServicesSupport.BCSSServiceProvider 继承 Object 实现 Serializable

序列化字段

serviceProvider

BeanContextServiceProvider serviceProvider

java.beans.beancontext.BeanContextSupport 继承 BeanContextChildSupport 实现 Serializable

serialVersionUID: -4879613978649577204L

序列化方法

readObject

private void readObject(ObjectInputStream ois)
                 throws IOException,
                        ClassNotFoundException
反序列化内容。如果此实例有截然不同的同位体,则子级在这里“不”被序列化,同位体的 readObject() 必须在反序列化此实例之后调用 readChildren()。

抛出:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream oos)
                  throws IOException,
                         ClassNotFoundException
序列化 BeanContextSupport,如果此实例有一个截然不同的同位体(即此对象正充当另一个对象的代理),则此实例的子级在这里不被序列化,因为在序列化此实例的同时反序列化其子级会产生“先有鸡还是先有蛋”的问题。 所以,在具有此实例的截然不同同位体的情况下,应该总是在调用 writeObject() 之后调用 writeChildren(),并在调用 readObject() 之后调用 readChildren()。

抛出:
IOException
ClassNotFoundException
序列化字段

serializable

int serializable

locale

Locale locale
此 BeanContext 的当前语言环境。


okToUseGui

boolean okToUseGui
指示此实例现在能否呈现 GUI 的 boolean 值。


designTime

boolean designTime
指示此对象目前是否处于设计时间模式下的 boolean 值。

java.beans.beancontext.BeanContextSupport.BCSChild 继承 Object 实现 Serializable

serialVersionUID: -5815286101609939109L

序列化字段

child

Object child

proxyPeer

Object proxyPeer

软件包 java.io

java.io.CharConversionException 继承 IOException 实现 Serializable

java.io.EOFException 继承 IOException 实现 Serializable

java.io.File 继承 Object 实现 Serializable

serialVersionUID: 301077366599181567L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
调用 readObject 来恢复此文件名。读取原有的分隔符字符。如果它于此系统上的分隔符字符不同,则使用本地分隔符替换原有的分隔符。

抛出:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
调用 WriteObject 保存此文件名。还要保存分隔符字符,以便用不同主机类型重构该路径时可以对它进行替换。

抛出:
IOException
序列化字段

path

String path
此抽象路径名的规范化路径名字符串。规范化路径名字符串使用默认名称分隔符,并且不包含任何重复或多余的分隔符。

 

java.io.FileNotFoundException 继承 IOException 实现 Serializable

类 java.io.FilePermissionCollection 继承 PermissionCollection 实现 Serializable

serialVersionUID: 2202956749081564585L

序列化方法

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
抛出:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
序列数据:
"permissions" field (a Vector containing the FilePermissions).
抛出:
IOException
序列化字段

permissions

Vector<E> permissions
A list of FilePermission objects.

java.io.InterruptedIOException 继承 IOException 实现 Serializable

序列化字段

bytesTransferred

int bytesTransferred
报告 I/O 操作中断之前传输了其中多少字节。

 

java.io.InvalidClassException 继承 ObjectStreamException 实现 Serializable

序列化字段

classname

String classname
无效类的名称。

无效类的名称。

java.io.InvalidObjectException 继承 ObjectStreamException 实现 Serializable

java.io.IOException 继承 Exception 实现 Serializable

java.io.NotActiveException 继承 ObjectStreamException 实现 Serializable

java.io.NotSerializableException 继承 ObjectStreamException 实现 Serializable

java.io.ObjectStreamClass 继承 Object 实现 Serializable

serialVersionUID: -6120832682080437368L

序列化字段

java.io.ObjectStreamException 继承 IOException 实现 Serializable

java.io.OptionalDataException 继承 ObjectStreamException 实现 Serializable

序列化字段

length

int length
当前缓冲区中可读取的基本数据的字节数。

 

eof

boolean eof
如果流的缓冲部分不再有数据,则为 True。

 

java.io.SerializablePermission 继承 BasicPermission 实现 Serializable

序列化字段

actions

String actions
 

java.io.StreamCorruptedException 继承 ObjectStreamException 实现 Serializable

java.io.SyncFailedException 继承 IOException 实现 Serializable

java.io.UnsupportedEncodingException 继承 IOException 实现 Serializable

java.io.UTFDataFormatException 继承 IOException 实现 Serializable

java.io.WriteAbortedException 继承 ObjectStreamException 实现 Serializable

serialVersionUID: -3326426625597282442L

序列化字段

detail

Exception detail
在写入 ObjectStream 时捕获的异常。

此字段早于通用异常链设施。Throwable.getCause() 方法现在是获取此信息的首选方法。

 

软件包 java.lang

java.lang.AbstractMethodError 继承 IncompatibleClassChangeError 实现 Serializable

java.lang.ArithmeticException 继承 RuntimeException 实现 Serializable

java.lang.ArrayIndexOutOfBoundsException 继承 IndexOutOfBoundsException 实现 Serializable

java.lang.ArrayStoreException 继承 RuntimeException 实现 Serializable

java.lang.AssertionError 继承 Error 实现 Serializable

java.lang.Boolean 继承 Object 实现 Serializable

serialVersionUID: -3665804199014368530L

序列化字段

value

boolean value
布尔值。

 

java.lang.Byte 继承 Number 实现 Serializable

serialVersionUID: -7183698231559129828L

序列化字段

value

byte value
Byte 的值。

 

java.lang.Character 继承 Object 实现 Serializable

serialVersionUID: 3786198910865385080L

序列化字段

value

char value
Character 的值。

 

java.lang.Class 继承 Object 实现 Serializable

serialVersionUID: 3206093459760846163L

序列化概述
Class 类是 Serialization Stream Protocol 中的一个特例。 Class 实例最初是以下列格式写入 ObjectOutputStream 的:
      TC_CLASS ClassDescriptor
      ClassDescriptor 是 java.io.ObjectStreamClass 实例的一个特殊序列化。
 
类描述符写入该流的初始时刻会生成一个新的句柄。未来对该类描述符的引用写作对此初始类描述符实例的引用。

另请参见:
ObjectStreamClass
序列化字段

java.lang.ClassCastException 继承 RuntimeException 实现 Serializable

java.lang.ClassCircularityError 继承 LinkageError 实现 Serializable

java.lang.ClassFormatError 继承 LinkageError 实现 Serializable

java.lang.ClassNotFoundException 继承 Exception 实现 Serializable

serialVersionUID: 9176873029745254542L

序列化字段

ex

Throwable ex
如果使用 ClassNotFoundException(String s, Throwable ex) 构造方法来实例化对象,则此字段保持异常 ex。

 
从以下版本开始:
1.2

java.lang.CloneNotSupportedException 继承 Exception 实现 Serializable

java.lang.Double 继承 Number 实现 Serializable

serialVersionUID: -9172774392245257468L

序列化字段

value

double value
Double 的值。

 

java.lang.Enum 继承 Object 实现 Serializable

序列化字段

name

String name
此枚举常量的名称,在枚举声明中声明。大多数程序员应该使用 Enum.toString() 方法,而不是访问此字段。


ordinal

int ordinal
此枚举常量的序数(它在枚举声明中的位置,其中初始常量序数为零)。 大多数程序员不会使用此字段。它被设计用于复杂的基于枚举的数据结构,比如 EnumSetEnumMap

java.lang.EnumConstantNotPresentException 继承 RuntimeException 实现 Serializable

序列化字段

enumType

Class<T> enumType
缺少的枚举常量的类型。


constantName

String constantName
缺少的枚举常量的名称。

java.lang.Error 继承 Throwable 实现 Serializable

serialVersionUID: 4980196508277280342L

java.lang.Exception 继承 Throwable 实现 Serializable

serialVersionUID: -3387516993124229948L

java.lang.ExceptionInInitializerError 继承 LinkageError 实现 Serializable

serialVersionUID: 1521711792217232256L

序列化字段

exception

Throwable exception
如果使用 ExceptionInInitializerError(Throwable thrown) 构造方法来实例化此对象,则该字段将保持异常

 

java.lang.Float 继承 Number 实现 Serializable

serialVersionUID: -2671257302660747028L

序列化字段

value

float value
Float 的值。

 

java.lang.IllegalAccessError 继承 IncompatibleClassChangeError 实现 Serializable

java.lang.IllegalAccessException 继承 Exception 实现 Serializable

java.lang.IllegalArgumentException 继承 RuntimeException 实现 Serializable

serialVersionUID: -5365630128856068164L

java.lang.IllegalMonitorStateException 继承 RuntimeException 实现 Serializable

java.lang.IllegalStateException 继承 RuntimeException 实现 Serializable

serialVersionUID: -1848914673093119416L

java.lang.IllegalThreadStateException 继承 IllegalArgumentException 实现 Serializable

java.lang.IncompatibleClassChangeError 继承 LinkageError 实现 Serializable

java.lang.IndexOutOfBoundsException 继承 RuntimeException 实现 Serializable

java.lang.InstantiationError 继承 IncompatibleClassChangeError 实现 Serializable

java.lang.InstantiationException 继承 Exception 实现 Serializable

java.lang.Integer 继承 Number 实现 Serializable

serialVersionUID: 1360826667806852920L

序列化字段

value

int value
Integer 的值。

 

java.lang.InternalError 继承 VirtualMachineError 实现 Serializable

java.lang.InterruptedException 继承 Exception 实现 Serializable

java.lang.LinkageError 继承 Error 实现 Serializable

java.lang.Long 继承 Number 实现 Serializable

serialVersionUID: 4290774380558885855L

序列化字段

value

long value
Long 的值。

 

java.lang.NegativeArraySizeException 继承 RuntimeException 实现 Serializable

java.lang.NoClassDefFoundError 继承 LinkageError 实现 Serializable

java.lang.NoSuchFieldError 继承 IncompatibleClassChangeError 实现 Serializable

java.lang.NoSuchFieldException 继承 Exception 实现 Serializable

java.lang.NoSuchMethodError 继承 IncompatibleClassChangeError 实现 Serializable

java.lang.NoSuchMethodException 继承 Exception 实现 Serializable

java.lang.NullPointerException 继承 RuntimeException 实现 Serializable

java.lang.Number 继承 Object 实现 Serializable

serialVersionUID: -8742448824652078965L

java.lang.NumberFormatException 继承 IllegalArgumentException 实现 Serializable

serialVersionUID: -2848938806368998894L

java.lang.OutOfMemoryError 继承 VirtualMachineError 实现 Serializable

java.lang.RuntimeException 继承 Exception 实现 Serializable

serialVersionUID: -7034897190745766939L

java.lang.RuntimePermission 继承 BasicPermission 实现 Serializable

serialVersionUID: 7399184964622342223L

java.lang.SecurityException 继承 RuntimeException 实现 Serializable

serialVersionUID: 6878364983674394167L

java.lang.Short 继承 Number 实现 Serializable

serialVersionUID: 7515723908773894738L

序列化字段

value

short value
Short 值。

 

java.lang.StackOverflowError 继承 VirtualMachineError 实现 Serializable

java.lang.StackTraceElement 继承 Object 实现 Serializable

serialVersionUID: 6992337162326171013L

序列化字段

declaringClass

String declaringClass

methodName

String methodName

fileName

String fileName

lineNumber

int lineNumber

java.lang.String 继承 Object 实现 Serializable

serialVersionUID: -6849794470754667710L

序列化概述
String 类被专门放入 Serialization Stream Protocol。 String 实例最初以如下格式被写入 ObjectOutputStream:
      TC_STRING (utf String)
 
该 String 由方法 DataOutput.writeUTF 写入。生成一个新句柄以访问流中对此字符串实例的所有将来引用。

序列化字段

java.lang.StringBuffer 继承 java.lang.AbstractStringBuilder 实现 Serializable

serialVersionUID: 3388685877147921107L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
调用 readObject,从流中恢复 StringBuffer 的状态。

抛出:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
调用 readObject,从流中恢复 StringBuffer 的状态。

抛出:
IOException
序列化概述
StringBuffer 的可序列化字段。

序列化字段

count

int count
该 StringBuffer 中的字符数。

shared

boolean shared
指示是否共享底层数组的标志。在反序列化时忽略该值。

value

char[] value
该 StringBuffer 的底层字符数组。

java.lang.StringBuilder 继承 java.lang.AbstractStringBuilder 实现 Serializable

serialVersionUID: 4383685877147921099L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
调用 readObject,从流中恢复 StringBuffer 的状态。

抛出:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
StringBuilder 实例的状态保存到流中(也就是将其序列化)。

序列数据:
当前存储在字符串生成器中的字符数(int),后跟字符串生成器中的字符(char[])。char 数组的长度可能大于当前存储在字符串生成器中的字符数,在这种情况下,将忽略多出的字符。
抛出:
IOException

java.lang.StringIndexOutOfBoundsException 继承 IndexOutOfBoundsException 实现 Serializable

java.lang.ThreadDeath 继承 Error 实现 Serializable

java.lang.Throwable 继承 Object 实现 Serializable

serialVersionUID: -3042686055658047285L

序列化方法

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
抛出:
IOException
序列化字段

detailMessage

String detailMessage
有关 Throwable 的详细信息。例如,对于 FileNotFoundException,这包含了无法找到的文件名称。

 

cause

Throwable cause
由此 throwable 引起的 throwable 被抛出,如果 throwable 未由其他 throwable 引起,或作为 cause 的 throwable 未知,则为空。如果此字段等于该 throwable 本身,它表示该 throwable 的 cause 尚未初始化。

 
从以下版本开始:
1.4

stackTrace

StackTraceElement[] stackTrace
堆栈跟踪,由 Throwable.getStackTrace() 返回。

 
从以下版本开始:
1.4

java.lang.TypeNotPresentException 继承 RuntimeException 实现 Serializable

序列化字段

typeName

String typeName

java.lang.UnknownError 继承 VirtualMachineError 实现 Serializable

java.lang.UnsatisfiedLinkError 继承 LinkageError 实现 Serializable

java.lang.UnsupportedClassVersionError 继承 ClassFormatError 实现 Serializable

java.lang.UnsupportedOperationException 继承 RuntimeException 实现 Serializable

serialVersionUID: -1242599979055084673L

java.lang.VerifyError 继承 LinkageError 实现 Serializable

java.lang.VirtualMachineError 继承 Error 实现 Serializable


软件包 java.lang.annotation

java.lang.annotation.AnnotationFormatError 继承 Error 实现 Serializable

java.lang.annotation.AnnotationTypeMismatchException 继承 RuntimeException 实现 Serializable

序列化字段

element

Method element
注释元素的 Method 对象。


foundType

String foundType
在注释中找到的数据(错误)类型。该字符串可以,但不一定包含该值。字符串的确切格式没有指定。

java.lang.annotation.IncompleteAnnotationException 继承 RuntimeException 实现 Serializable

序列化字段

annotationType

Class<T> annotationType

elementName

String elementName

软件包 java.lang.instrument

java.lang.instrument.IllegalClassFormatException 继承 Exception 实现 Serializable

java.lang.instrument.UnmodifiableClassException 继承 Exception 实现 Serializable


软件包 java.lang.management

java.lang.management.ManagementPermission 继承 BasicPermission 实现 Serializable


软件包 java.lang.reflect

java.lang.reflect.GenericSignatureFormatError 继承 ClassFormatError 实现 Serializable

java.lang.reflect.InvocationTargetException 继承 Exception 实现 Serializable

serialVersionUID: 4085088731926701167L

序列化字段

target

Throwable target
如果使用 InvocationTargetException(Throwable target) 构造方法来实例化该对象,则此字段将保持目标

 

java.lang.reflect.MalformedParameterizedTypeException 继承 RuntimeException 实现 Serializable

java.lang.reflect.Proxy 继承 Object 实现 Serializable

serialVersionUID: -2222568056686623797L

序列化字段

h

InvocationHandler h
此代理实例的调用处理程序。

 

java.lang.reflect.ReflectPermission 继承 BasicPermission 实现 Serializable

serialVersionUID: 7412737110241507485L

java.lang.reflect.UndeclaredThrowableException 继承 RuntimeException 实现 Serializable

serialVersionUID: 330127114055056639L

序列化字段

undeclaredThrowable

Throwable undeclaredThrowable
抛出的经过检查的未声明异常

 

软件包 java.math

java.math.BigDecimal 继承 Number 实现 Serializable

serialVersionUID: 6108874887143696463L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
从流重构 BigDecimal 实例(也就是将其反序列化)。

抛出:
IOException
ClassNotFoundException
序列化字段

intVal

BigInteger intVal
此 BigDecimal 的非标度值,由 BigDecimal.unscaledValue() 返回。

 
另请参见:
BigDecimal.unscaledValue()

scale

int scale
此 BigDecimal 的标度,由 BigDecimal.scale 返回。

 
另请参见:
BigDecimal.scale

java.math.BigInteger 继承 Number 实现 Serializable

serialVersionUID: -8287574255936472291L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
从流中重构 BigInteger 实例(也就是将其反序列化)。由于历史原因,该大小作为一个字节数组读入,但它被转换为一个 int 数组,并丢弃字节数组。

抛出:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
BigInteger 实例保存到流。由于历史原因,BigInteger 的大小被序列化为一个字节数组。

序列数据:
将写入两个必需字段和一些过时字段,以便与较旧版本兼容。
抛出:
IOException
序列化概述
BigInteger 的可序列化字段。

序列化字段

bitCount

int bitCount
此 BigInteger 中的位数

bitLength

int bitLength
此 BigInteger 最小的二进制补码表示形式的位数

lowestSetBit

int lowestSetBit
二进制补码表示形式的最低设置位

magnitude

int[] magnitude
此 BigInteger 的大小数组。

signum

int signum
此 BigInteger 的正负号。

java.math.MathContext 继承 Object 实现 Serializable

serialVersionUID: 5579720004786848255L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
从流重构 MathContext 实例(也就是将其反序列化)。

抛出:
IOException
ClassNotFoundException
序列化字段

precision

int precision
某个操作使用的数位。值为 0 指示将使用无限精度(需要多少位就用多少位)。注意,前导零(在某个数的系数中)不是有效数字。

precision 始终为非负数。

 

roundingMode

RoundingMode roundingMode
某个操作使用的舍入算法。

 
另请参见:
RoundingMode

软件包 java.net

java.net.BindException 继承 SocketException 实现 Serializable

java.net.ConnectException 继承 SocketException 实现 Serializable

java.net.HttpRetryException 继承 IOException 实现 Serializable

序列化字段

responseCode

int responseCode

location

String location

java.net.Inet4Address 继承 InetAddress 实现 Serializable

serialVersionUID: 3286316764910316507L

序列化方法

writeReplace

private Object writeReplace()
                     throws ObjectStreamException
用 InetAddress 对象取代要序列化的对象。

抛出:
ObjectStreamException - 如果无法创建取代此对象的新对象

java.net.Inet6Address 继承 InetAddress 实现 Serializable

serialVersionUID: 6880410070516793377L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
仅当范围接口名称在此系统上有效时,从包括范围信息的流还原此对象的状态。

抛出:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
重写默认行为以便以 String 的形式,而不是以不可序列化的 NetworkInterface 的形式写入 scope_ifname 字段。

抛出:
IOException
序列化字段

ipaddress

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

 

scope_id

int scope_id
scope_id。创建对象时指定的范围。如果对象是使用接口名称创建的,则到需要时才确定 scope_id。


scope_id_set

boolean scope_id_set
当 scope_id 字段包含有效的整数 scope_id 时,将其设置为 true。


scope_ifname_set

boolean scope_ifname_set
在使用范围接口而不是数字范围 id 构造对象时设置。


ifname

String ifname
仅在序列化/反序列化期间才使用后跟字段

java.net.InetAddress 继承 Object 实现 Serializable

serialVersionUID: 3286316764910316507L

序列化方法

readResolve

private Object readResolve()
                    throws ObjectStreamException
用 Inet4Address 对象取代反序列化对象。

抛出:
ObjectStreamException - 如果无法创建取代此对象的新对象
序列化字段

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.

 

java.net.InetSocketAddress 继承 SocketAddress 实现 Serializable

serialVersionUID: 5076001401234631237L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
抛出:
IOException
ClassNotFoundException
序列化字段

hostname

String hostname

addr

InetAddress addr

port

int port

java.net.MalformedURLException 继承 IOException 实现 Serializable

java.net.NetPermission 继承 BasicPermission 实现 Serializable

serialVersionUID: -8343910153355041693L

java.net.NoRouteToHostException 继承 SocketException 实现 Serializable

java.net.PortUnreachableException 继承 SocketException 实现 Serializable

java.net.ProtocolException 继承 IOException 实现 Serializable

java.net.SocketAddress 继承 Object 实现 Serializable

java.net.SocketException 继承 IOException 实现 Serializable

类 java.net.SocketPermissionCollection 继承 PermissionCollection 实现 Serializable

serialVersionUID: 2787186408602843674L

序列化方法

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
抛出:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
序列数据:
"permissions" field (a Vector containing the SocketPermissions).
抛出:
IOException
序列化字段

permissions

Vector<E> permissions
A list of the SocketPermissions for this set.

java.net.SocketTimeoutException 继承 InterruptedIOException 实现 Serializable

java.net.UnknownHostException 继承 IOException 实现 Serializable

java.net.UnknownServiceException 继承 IOException 实现 Serializable

java.net.URI 继承 Object 实现 Serializable

serialVersionUID: -6052424284110960213L

序列化方法

readObject

private void readObject(ObjectInputStream is)
                 throws ClassNotFoundException,
                        IOException
从给定的串行流重构 URI。

调用 ObjectInputStream.defaultReadObject() 方法以读取 string 字段的值。然后按通常方式对结果进行解析。

抛出:
ClassNotFoundException
IOException

writeObject

private void writeObject(ObjectOutputStream os)
                  throws IOException
将此 URI 的内容保存到给定的串行流中。

URI 实例的惟一可序列化字段是 string 字段。如果该字段原来没有值,则给定一个值,然后调用给定对象输出流的 ObjectOutputStream.defaultWriteObject() 方法。

抛出:
IOException
序列化字段

string

String string
此 URI 的字符串表示形式。

 

java.net.URISyntaxException 继承 Exception 实现 Serializable

序列化字段

input

String input

index

int index

java.net.URL 继承 Object 实现 Serializable

serialVersionUID: -7627629688361524110L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
调用 readObject,以便从流中恢复 URL 的状态。它读取 URL 的各个组成部分并查找本地流处理程序。

抛出:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream s)
                  throws IOException
调用 WriteObject,将 URL 的状态保存到 ObjectOutputStream 中。不保存该处理程序,因为它特定于此系统。

序列数据:
默认的写入对象的值。当读取返回时,reader 必须确保调用的具有协议变量的 getURLStreamHandler 返回有效的 URLStreamHandler,如果返回无效的 URLStreamHandler,则抛出 IOException 异常。
抛出:
IOException
序列化字段

protocol

String protocol
要使用的协议(ftp、http、nntp,...等)。

 

host

String host
要连接的主机名。

 

port

int port
要连接的协议端口。

 

file

String file
相应主机上的指定文件名。file 定义的格式为 path[?query]

 

authority

String authority
此 URL 的授权部分。

 

ref

String ref
# 引用。

 

hashCode

int hashCode

软件包 java.nio

java.nio.BufferOverflowException 继承 RuntimeException 实现 Serializable

java.nio.BufferUnderflowException 继承 RuntimeException 实现 Serializable

java.nio.InvalidMarkException 继承 IllegalStateException 实现 Serializable

java.nio.ReadOnlyBufferException 继承 UnsupportedOperationException 实现 Serializable


软件包 java.nio.channels

java.nio.channels.AlreadyConnectedException 继承 IllegalStateException 实现 Serializable

java.nio.channels.AsynchronousCloseException 继承 ClosedChannelException 实现 Serializable

java.nio.channels.CancelledKeyException 继承 IllegalStateException 实现 Serializable

java.nio.channels.ClosedByInterruptException 继承 AsynchronousCloseException 实现 Serializable

java.nio.channels.ClosedChannelException 继承 IOException 实现 Serializable

java.nio.channels.ClosedSelectorException 继承 IllegalStateException 实现 Serializable

java.nio.channels.ConnectionPendingException 继承 IllegalStateException 实现 Serializable

java.nio.channels.FileLockInterruptionException 继承 IOException 实现 Serializable

java.nio.channels.IllegalBlockingModeException 继承 IllegalStateException 实现 Serializable

java.nio.channels.IllegalSelectorException 继承 IllegalArgumentException 实现 Serializable

java.nio.channels.NoConnectionPendingException 继承 IllegalStateException 实现 Serializable

java.nio.channels.NonReadableChannelException 继承 IllegalStateException 实现 Serializable

java.nio.channels.NonWritableChannelException 继承 IllegalStateException 实现 Serializable

java.nio.channels.NotYetBoundException 继承 IllegalStateException 实现 Serializable

java.nio.channels.NotYetConnectedException 继承 IllegalStateException 实现 Serializable

java.nio.channels.OverlappingFileLockException 继承 IllegalStateException 实现 Serializable

java.nio.channels.UnresolvedAddressException 继承 IllegalArgumentException 实现 Serializable

java.nio.channels.UnsupportedAddressTypeException 继承 IllegalArgumentException 实现 Serializable


软件包 java.nio.charset

java.nio.charset.CharacterCodingException 继承 IOException 实现 Serializable

java.nio.charset.CoderMalfunctionError 继承 Error 实现 Serializable

java.nio.charset.IllegalCharsetNameException 继承 IllegalArgumentException 实现 Serializable

序列化字段

charsetName

String charsetName

java.nio.charset.MalformedInputException 继承 CharacterCodingException 实现 Serializable

序列化字段

inputLength

int inputLength

java.nio.charset.UnmappableCharacterException 继承 CharacterCodingException 实现 Serializable

序列化字段

inputLength

int inputLength

java.nio.charset.UnsupportedCharsetException 继承 IllegalArgumentException 实现 Serializable

序列化字段

charsetName

String charsetName

软件包 java.rmi

java.rmi.AccessException 继承 RemoteException 实现 Serializable

serialVersionUID: 6314925228044966088L

java.rmi.AlreadyBoundException 继承 Exception 实现 Serializable

serialVersionUID: 9218657361741657110L

java.rmi.ConnectException 继承 RemoteException 实现 Serializable

serialVersionUID: 4863550261346652506L

java.rmi.ConnectIOException 继承 RemoteException 实现 Serializable

serialVersionUID: -8087809532704668744L

java.rmi.MarshalException 继承 RemoteException 实现 Serializable

serialVersionUID: 6223554758134037936L

java.rmi.MarshalledObject 继承 Object 实现 Serializable

serialVersionUID: 8988374069173025854L

序列化字段

objBytes

byte[] objBytes
字节的序列化表示形式。如果 objBytesnull,则已编组的对象为 null 引用。

locBytes

byte[] locBytes
equals 忽略的字节位置注释。如果 locBytes 为 null,则在编组过程中存在非 null 注释。

hash

int hash
所包含对象存储的哈希码。
另请参见:
MarshalledObject.hashCode()

java.rmi.NoSuchObjectException 继承 RemoteException 实现 Serializable

serialVersionUID: 6619395951570472985L

java.rmi.NotBoundException 继承 Exception 实现 Serializable

serialVersionUID: -1857741824849069317L

java.rmi.RemoteException 继承 IOException 实现 Serializable

serialVersionUID: -5148567311918794206L

序列化字段

detail

Throwable detail
远程异常的原因。

此字段早于通用异常链设施。Throwable.getCause() 方法现在是获取此信息的首选方法。

 

java.rmi.RMISecurityException 继承 SecurityException 实现 Serializable

serialVersionUID: -8433406075740433514L

java.rmi.ServerError 继承 RemoteException 实现 Serializable

serialVersionUID: 8455284893909696482L

java.rmi.ServerException 继承 RemoteException 实现 Serializable

serialVersionUID: -4775845313121906682L

java.rmi.ServerRuntimeException 继承 RemoteException 实现 Serializable

serialVersionUID: 7054464920481467219L

java.rmi.StubNotFoundException 继承 RemoteException 实现 Serializable

serialVersionUID: -7088199405468872373L

java.rmi.UnexpectedException 继承 RemoteException 实现 Serializable

serialVersionUID: 1800467484195073863L

java.rmi.UnknownHostException 继承 RemoteException 实现 Serializable

serialVersionUID: -8152710247442114228L

java.rmi.UnmarshalException 继承 RemoteException 实现 Serializable

serialVersionUID: 594380845140740218L


软件包 java.rmi.activation

java.rmi.activation.Activatable 继承 RemoteServer 实现 Serializable

serialVersionUID: -3120617863591563455L

序列化字段

id

ActivationID id
此对象的激活标识符。

java.rmi.activation.ActivateFailedException 继承 RemoteException 实现 Serializable

serialVersionUID: 4863550261346652506L

java.rmi.activation.ActivationDesc 继承 Object 实现 Serializable

serialVersionUID: 7455834104417690957L

序列化字段

groupID

ActivationGroupID groupID
组标识符

className

String className
对象的类名

location

String location
对象的代码基

data

MarshalledObject data
对象的初始化数据

restart

boolean restart
表示对象是否应当被重新启动。

java.rmi.activation.ActivationException 继承 Exception 实现 Serializable

serialVersionUID: -4320118837291406071L

序列化字段

detail

Throwable detail
激活异常的原因。

此字段早于通用异常链设施。Throwable.getCause() 方法现在是获取此信息的首选方法。

 

java.rmi.activation.ActivationGroup 继承 UnicastRemoteObject 实现 Serializable

serialVersionUID: -7696947875314805420L

序列化字段

groupID

ActivationGroupID groupID
组标识符

monitor

ActivationMonitor monitor
组监视器

incarnation

long incarnation
组的代号

java.rmi.activation.ActivationGroup_Stub 继承 RemoteStub 实现 Serializable

java.rmi.activation.ActivationGroupDesc 继承 Object 实现 Serializable

serialVersionUID: -4936225423168276595L

序列化字段

className

String className
组的完全限定包的类名。

location

String location
要加载组类的位置。

data

MarshalledObject data
组的初始化数据。

env

ActivationGroupDesc.CommandEnvironment env
在另一个进程中执行 VM 的控制选项。

props

Properties props
一个将重写子进程环境中默认设置的属性映射表。

java.rmi.activation.ActivationGroupDesc.CommandEnvironment 继承 Object 实现 Serializable

serialVersionUID: 6165754737887770191L

序列化字段

command

String command
 

options

String[] options
 

java.rmi.activation.ActivationGroupID 继承 Object 实现 Serializable

serialVersionUID: -1648432278909740833L

序列化字段

system

ActivationSystem system
组的激活系统。

uid

UID uid
组的惟一 id。

java.rmi.activation.ActivationID 继承 Object 实现 Serializable

serialVersionUID: -4608673054848209235L

序列化方法

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
针对自定义序列化的 readObject

此方法为此类读取此对象的序列化形式,方式如下:

readObject 方法在 in 被调用,以读取此对象的惟一标识符(一个 UID 实例)。

接下来,readUTF 方法在 in 上被调用,以读取此对象的激活器的 RemoteRef 实例的外部引用类型名称。然后,对应于外部引用类型名称(由 readUTF 返回),RemoteRef 实例由一个特定于实现的类创建,并且 readExternal 方法在该 RemoteRef 实例上被调用,以读取对应于外部引用类型名称的外部形式。

注:如果外部引用类型名称为 "UnicastRef""UnicastServerRef""UnicastRef2""UnicastServerRef2""ActivatableRef",则必须找到对应的特定于实现的类,并且其 readExternal 方法必须为外部类型名称读取序列数据,正如指定将此类写入 serialData 文档一样。如果外部引用类型名称是任何其他字符串(长度不为零),则将抛出 ClassNotFoundException,除非该实现提供了对应于外部引用类型名称的特定于实现的类,在这种情况下,RemoteRef 将是特定于实现的类的一个实例。

抛出:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException,
                         ClassNotFoundException
针对自定义序列化的 writeObject

此方法为此类写入此对象的序列化形式,方式如下:

传入此对象的惟一标识符(一个 UID 实例)作为参数,writeObject 方法在 out 上被调用。

接下来,getRefClass 方法在激活器的 RemoteRef 实例上被调用,以获得其外部引用类型名称。然后,writeUTF 方法使用 getRefClass 返回的值在 out 上被调用,接着 writeExternal 方法传递 out 作为参数在 RemoteRef 实例上被调用。

序列数据:
此类的序列化数据组成一个 java.rmi.server.UID(用 ObjectOutput.writeObject 方法写入),后面紧跟激活器 RemoteRef 实例(用 ObjectOutput.writeUTF 写入的一个字符串)的外部类型名称,后面紧跟由其 writeExternal 方法写入的 RemoteRef 实例的外部形式。

使用在 RemoteObjectwriteObject 方法 serialData 规范中指定的外部引用类型名称的定义来确定 RemoteRef 实例的外部引用类型名称。类似地,通过 RemoteRef 实现类的 writeExternal 方法写入和通过 readExternal 方法读取的数据对应于在 RemoteObject writeObject 方法 serialData 规范中指定的每一个已定义外部引用类型名称。

抛出:
IOException
ClassNotFoundException

java.rmi.activation.UnknownGroupException 继承 ActivationException 实现 Serializable

serialVersionUID: 7056094974750002460L

java.rmi.activation.UnknownObjectException 继承 ActivationException 实现 Serializable

serialVersionUID: 3425547551622251430L


软件包 java.rmi.dgc

java.rmi.dgc.Lease 继承 Object 实现 Serializable

serialVersionUID: -5713411624328831948L

序列化字段

vmid

VMID vmid
与此 Lease 关联的虚拟机 ID。
另请参见:
Lease.getVMID()

value

long value
此 lease 的期限。
另请参见:
Lease.getValue()

java.rmi.dgc.VMID 继承 Object 实现 Serializable

serialVersionUID: -538642295484486218L

序列化字段

addr

byte[] addr
惟一地标识创建于其上的主机的字节数组

uid

UID uid
有关创建于其上的主机的惟一标识符

软件包 java.rmi.server

java.rmi.server.ExportException 继承 RemoteException 实现 Serializable

serialVersionUID: -9155485338494060170L

java.rmi.server.ObjID 继承 Object 实现 Serializable

serialVersionUID: -6386392263968365220L

序列化字段

objNum

long objNum
object number
另请参见:
ObjID.hashCode()

space

UID space
address space identifier (unique to host over time)

java.rmi.server.RemoteObject 继承 Object 实现 Serializable

serialVersionUID: -3215090123894869218L

序列化方法

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
用于自定义序列化的 readObject

此方法按以下方式读取该类的此对象的序列化形式:

in 上调用 readUTF 方法来读取 RemoteRef 实例的外部 ref 类型名称,以将其填充到此对象的 ref 字段。如果 readUTF 返回的字符串长度为 0,则在 in 上调用 readObject 方法,然后将 readObject 返回的值转换为 RemoteRef,并将此对象的 ref 字段设置为该值。否则,此对象的 ref 字段将设置为从与 readUTF 返回的外部 ref 类型名称相对应的特定于实现的类创建的 RemoteRef 实例,然后在此对象的 ref 字段上调用 readExternal 方法。

如果外部 ref 类型名称为 "UnicastRef""UnicastServerRef""UnicastRef2""UnicastServerRef2""ActivatableRef",则必须找到一个相应的特定于实现的类,并且其 readExternal 方法在指定要写入此类的 serialData 文档时必须读取外部 ref 类型名称的序列数据。如果外部 ref 类型名称是任何其他字符串(长度不是 0),则将抛出 ClassNotFoundException,除非该实现提供相对于该外部 ref 类型名称的特定于实现的类,在这种情况下,将把此对象的 ref 字段设置为一个该特定于实现的类的实例。

抛出:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException,
                         ClassNotFoundException
用于自定义序列化的 writeObject

此方法按以下方式写入该类的此对象的序列化形式:

在此对象的 ref 字段上调用 getRefClass 方法,以获得其外部 ref 类型名称。如果 getRefClass 返回的值是长度大于 0 的非 null 字符串,则在具有 getRefClass 返回的值的 out 上调用 writeUTF 方法,然后在作为参数传递 out 的此对象的 ref 字段上调用 writeExternal 方法;否则,在具有 0 长度字符串 ("") 的 out 上调用 writeUTF 方法,然后在作为参数传递此对象的 ref 字段的 out 上调用 writeObject 方法。

序列数据:
此类的序列化数据包含一个字符串(用 ObjectOutput.writeUTF 写入),该字符串可以是包含的 RemoteRef 实例(ref 字段)的外部 ref 类型名称,也可以是一个 0 长度字符串,如果该字符串的长度不是 0,则后跟 writeExternal 方法写入的 ref 字段的外部形式;如果该字符串的长度为 0,则后跟将其传递到序列化流的 writeObject 时写入的 ref 字段的序列化形式。

如果此对象是一个从任何 UnicastRemoteObject.exportObject 方法返回的 RemoteStubRemoteObjectInvocationHandler 的实例,且未使用自定义套接字工厂,则外部 ref 类型名称为 "UnicastRef"。 如果此对象是一个从任何 UnicastRemoteObject.exportObject 方法返回的 RemoteStubRemoteObjectInvocationHandler 的实例,且使用自定义套接字工厂,则外部 ref 类型名称为 "UnicastRef2"。 如果此对象是一个从任何 java.rmi.activation.Activatable.exportObject 方法返回的 RemoteStubRemoteObjectInvocationHandler 的实例,则外部 ref 类型名称为 "ActivatableRef"。 如果此对象是一个从 RemoteObject.toStub 方法返回的 RemoteStubRemoteObjectInvocationHandler 的实例(并且传入 toStub 的参数本身不是 RemoteStub),则外部 ref 类型名称是一个传入 toStub 的远程对象的导出方式的函数,如上所述。 如果此对象是一个最初通过反序列化创建的 RemoteStubRemoteObjectInvocationHandler 的实例,则外部 ref 类型名称与此对象进行反序列化时读取的类型名称相同。

如果此对象是一个未使用自定义套接字工厂的 java.rmi.server.UnicastRemoteObject 的实例,则外部 ref 类型名称为 "UnicastServerRef"。 如果此对象是一个使用自定义套接字工厂的 UnicastRemoteObject 实例,则外部 ref 类型名称为 "UnicastServerRef2"

下面是必须由 writeExternal 方法写入且由 RemoteRef 实现类的 readExternal 方法读取的数据,该实现类对应于每个定义的外部 ref 类型名称:

对于 "UnicastRef"

对于具有 null 客户机套接字工厂的 "UnicastRef2"

对于具有非 null 客户机套接字工厂的 "UnicastRef2"

  • 字节值 0x01(指示非 null 客户机套接字工厂),由 DataOutput.writeByte(int) 写入
  • 引用的远程对象的主机名,由 DataOutput.writeUTF(String) 写入
  • 引用的远程对象的端口,由 DataOutput.writeInt(int) 写入
  • 客户机套接字工厂(类型 java.rmi.server.RMIClientSocketFactory 的对象),通过将其传递到流实例上的 writeObject 的调用写入
  • 作为引用中包含的 ObjID 实例上调用 {link java.rmi.server.ObjID#write(java.io.ObjectOutput)} 的结果写入的数据
  • boolean 值 false,由 DataOutput.writeBoolean(boolean) 写入

对于具有 null 嵌入远程引用的 "ActivatableRef"

  • java.rmi.activation.ActivationID 的实例,通过将其传递到流实例上的 writeObject 的调用写入
  • 0 长度字符串 (""),由 DataOutput.writeUTF(String) 写入

对于具有非 null 嵌入远程引用的 "ActivatableRef"

  • java.rmi.activation.ActivationID 的实例,通过将其传递到流实例上的 writeObject 的调用写入
  • 嵌入的远程引用的外部 ref 类型名称(必须是 "UnicastRef2"),由 DataOutput.writeUTF(String) 写入
  • 嵌入的远程引用的外部形式,通过调用其具有流实例的 writeExternal 方法写入(请参阅上述 "UnicastRef2" 的外部形式的描述)

对于 "UnicastServerRef""UnicastServerRef2",不能通过 writeExternal 方法写入数据,也不能通过 readExternal 方法读取数据。

抛出:
IOException
ClassNotFoundException

java.rmi.server.RemoteObjectInvocationHandler 继承 RemoteObject 实现 Serializable

serialVersionUID: 2L

序列化方法

readObjectNoData

private void readObjectNoData()
                       throws InvalidObjectException
抛出:
InvalidObjectException - 无条件抛出

java.rmi.server.RemoteServer 继承 RemoteObject 实现 Serializable

serialVersionUID: -4100238210092549637L

java.rmi.server.RemoteStub 继承 RemoteObject 实现 Serializable

serialVersionUID: -1585587260594494182L

java.rmi.server.ServerCloneException 继承 CloneNotSupportedException 实现 Serializable

serialVersionUID: 6617456357664815945L

序列化字段

detail

Exception detail
异常原因。

此字段早于通用异常链设施。Throwable.getCause() 方法现在是获取此信息的首选方法。

 

java.rmi.server.ServerNotActiveException 继承 Exception 实现 Serializable

serialVersionUID: 4687940720827538231L

java.rmi.server.SkeletonMismatchException 继承 RemoteException 实现 Serializable

serialVersionUID: -7780460454818859281L

java.rmi.server.SkeletonNotFoundException 继承 RemoteException 实现 Serializable

serialVersionUID: -7860299673822761231L

java.rmi.server.SocketSecurityException 继承 ExportException 实现 Serializable

serialVersionUID: -7622072999407781979L

java.rmi.server.UID 继承 Object 实现 Serializable

serialVersionUID: 1086053664494604050L

序列化字段

unique

int unique
惟一标识此 UID 在其中生成的 VM 的数字,该数字和主机和给定的时间有关

 

time

long time
UID 在其中生成的 VM 处于活动状态时的时间(由 System.currentTimeMillis() 返回)

 

count

short count
用来区分按同一时间在同一 VM 中创建的 UID 实例的 16 位数字

 

java.rmi.server.UnicastRemoteObject 继承 RemoteServer 实现 Serializable

serialVersionUID: 4974527148936298033L

序列化方法

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
将远程对象进行反序列化时重新将其导出。

抛出:
IOException
ClassNotFoundException
序列化字段

port

int port
要在其上导出对象的端口号

csf

RMIClientSocketFactory csf
客户端套接字工厂(如果有)

ssf

RMIServerSocketFactory ssf
导出对象时使用的服务器端套接字工厂(如果有)

软件包 java.security

java.security.AccessControlException 继承 SecurityException 实现 Serializable

serialVersionUID: 5138225684096988535L

序列化字段

perm

Permission perm

类 java.security.AllPermissionCollection 继承 PermissionCollection 实现 Serializable

serialVersionUID: -4023755556366636806L

序列化字段

all_allowed

boolean all_allowed

java.security.AuthProvider 继承 Provider 实现 Serializable

java.security.BasicPermission 继承 Permission 实现 Serializable

serialVersionUID: 6279438298436773498L

序列化方法

readObject

private void readObject(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
调用 readObject,从流中恢复 BasicPermission 的状态。

抛出:
IOException
ClassNotFoundException

类 java.security.BasicPermissionCollection 继承 PermissionCollection 实现 Serializable

serialVersionUID: 739301742472979399L

序列化方法

readObject

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

抛出:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
序列数据:
Default fields.
抛出:
IOException
序列化字段

all_allowed

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

permClass

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

permissions

Hashtable<K,V> 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.

java.security.CodeSigner 继承 Object 实现 Serializable

serialVersionUID: 6819288105193937581L

序列化字段

signerCertPath

CertPath signerCertPath
签名者的证书路径。

 

timestamp

Timestamp timestamp

java.security.CodeSource 继承 Object 实现 Serializable

serialVersionUID: 4977541819976013951L

序列化方法

readObject

private void readObject(ObjectInputStream ois)
                 throws IOException,
                        ClassNotFoundException
从流还原此对象(也就是将其反序列化)。

抛出:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream oos)
                  throws IOException
将此对象写出到流中(也就是将其序列化)。

序列数据:
初始 URL 后跟一个 int,指示要遵守的证书数(值“零”表示不存在与此对象关联的证书)。所有证书的撰写都以表示证书类型的 String 开头,后跟一个指定证书编码长度的 int,再后跟作为字节数组写出的证书编码本身。最后,如果出现代码签名者,则同时序列化和写出代码签名者的数组。
抛出:
IOException
序列化字段

location

URL location
代码位置。

 

java.security.DigestException 继承 GeneralSecurityException 实现 Serializable

serialVersionUID: 5821450303093652515L

java.security.GeneralSecurityException 继承 Exception 实现 Serializable

serialVersionUID: 894798122053539237L

java.security.GuardedObject 继承 Object 实现 Serializable

serialVersionUID: -5240450096227834308L

序列化方法

writeObject

private void writeObject(ObjectOutputStream oos)
                  throws IOException
将此对象写出到流中(即将其序列化)。如果存在 guard,则检查它。

抛出:
IOException
序列化字段

object

Object object

guard

Guard guard

java.security.Identity 继承 Object 实现 Serializable

serialVersionUID: 3609922007826600659L

序列化字段

name

String name
已过时。 
此 Identity 的名称。

 

publicKey

PublicKey publicKey
已过时。 
此 Identity 的公钥。

 

info

String info
已过时。 
Generic, descriptive information about the identity.

 

scope

IdentityScope scope
已过时。 
The scope of the identity.

 

certificates

Vector<E> certificates
已过时。 
The certificates for this identity.

 

java.security.IdentityScope 继承 Identity 实现 Serializable

serialVersionUID: -2337346281189773310L

java.security.InvalidAlgorithmParameterException 继承 GeneralSecurityException 实现 Serializable

serialVersionUID: 2864672297499471472L