private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException - 如果
GraphicsEnvironment.isHeadless()返回
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
AccessibleContext accessibleContext
byte[] bdata
int id
boolean consumed
protected Object readResolve() throws ObjectStreamException
AWTKeyStroke (或子类
AWTKeyStroke ),这是此实例相等。
char keyChar
int keyCode
int modifiers
boolean onKeyRelease
int hgap
hgap 。
int vgap
vgap 。
Component north
Component west
Component east
Component south
Component center
Component firstLine
NORTH个BEFORE_FIRST_LINE在一个容器中,其方向是常量LEFT_TO_RIGHT ,只有BEFORE_FIRST_LINE进行布局。
对于lastLine,firstItem,lastItem这将是一样的。
Component lastLine
Component firstItem
Component lastItem
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)
private void writeObject(ObjectOutputStream s) throws IOException
ActionListeners作为可选数据。
检测到不可序列化的ActionListeners ,并且不尝试串行化它们。
null终止的0或更多对的序列:该对由String和Object ;
String指示对象的类型,并且是以下之一: actionListenerK指示ActionListener对象
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) ,
Component.actionListenerK ,
Button.readObject(ObjectInputStream)
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
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)
private void writeObject(ObjectOutputStream s) throws IOException
ItemListeners作为可选数据。
检测到不可序列化的ItemListeners ,并且不尝试序列化它们。
null终止序列0或更多对;
该对由String和Object ;
String指示对象的类型,并且是以下之一: itemListenerK指示ItemListener对象
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) ,
Component.itemListenerK ,
Checkbox.readObject(ObjectInputStream)
String label
boolean state
Checkbox 。
CheckboxGroup group
int checkboxSerializedDataVersion
Checkbox selectedCheckbox
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
private void writeObject(ObjectOutputStream s) throws IOException
ItemListeners作为可选数据。
检测到不可序列化的ItemListeners ,并且不尝试串行化它们。
null终止序列0或更多对;
该对由String和Object ;
String指示对象的类型,并且是以下之一: itemListenerK指示ItemListener对象
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) ,
Component.itemListenerK ,
CheckboxMenuItem.readObject(ObjectInputStream)
boolean state
int checkboxMenuItemSerializedDataVersion
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)
private void writeObject(ObjectOutputStream s) throws IOException
ItemListeners作为可选数据。
检测到不可序列化的ItemListeners ,并且不尝试序列化它们。
null终止序列0或更多对;
该对由String和Object ;
String指示对象的类型,并且是以下之一: itemListenerK指示ItemListener对象
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) ,
Component.itemListenerK ,
Choice.readObject(ObjectInputStream)
int value
Color.getRGB()
float[] frgbvalue
ColorSpace为float组件(无alpha)。
如果null在对象null之后,这个必须是以8位精度构造的sRGB颜色,因此从int计算出颜色值。
float[] fvalue
ColorSpace中的颜色值为float组件(无alpha)。
如果null在对象null之后,这必须是用8位精度构造的sRGB颜色,因此从int计算颜色值。
float falpha
float组件。
如果frgbvalue是null ,这是无效数据,所以从int计算颜色值。
ColorSpace cs
ColorSpace 。
如果null ,那么它的默认是sRGB。
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream ,如果不是null添加一个监听器来接收组件触发的各种事件。
无法识别的键或值将被忽略。
private void writeObject(ObjectOutputStream s) throws IOException
null终止序列0或更多对;
该对由String和Object ;
所述String表示的对象的类型和是下列之一(作为1.4): componentListenerK指示ComponentListener对象;
focusListenerK表示FocusListener对象;
keyListenerK表示一个KeyListener对象;
mouseListenerK表示一个MouseListener对象;
mouseMotionListenerK表示一个MouseMotionListener对象;
inputMethodListenerK表示一个InputMethodListener对象;
hierarchyListenerK表示一个HierarchyListener对象;
hierarchyBoundsListenerK表示HierarchyBoundsListener对象;
mouseWheelListenerK指示MouseWheelListener对象,可选ComponentOrientation (之后inputMethodListener ,截至1.2)
IOException
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) ,
Component.componentListenerK ,
Component.focusListenerK ,
Component.keyListenerK ,
Component.mouseListenerK ,
Component.mouseMotionListenerK ,
Component.inputMethodListenerK ,
Component.hierarchyListenerK ,
Component.hierarchyBoundsListenerK ,
Component.mouseWheelListenerK ,
Component.readObject(ObjectInputStream)
int x
Component.getLocation()
int y
Component.getLocation()
int width
Component.getSize()
int height
Component.getSize()
Color foreground
foreground可以是null 。
Color background
background可以是null 。
Font font
font可以是null 。
Font peerFont
null如果不存在对等体)
Cursor cursor
null 。
Locale locale
boolean ignoreRepaint
Component.setIgnoreRepaint(boolean) ,
Component.getIgnoreRepaint()
boolean visible
boolean enabled
boolean valid
DropTarget dropTarget
DropTarget与此组件关联。
Component.setDropTarget(java.awt.dnd.DropTarget) ,
Component.getDropTarget()
Vector<E> popups
String name
null 。
boolean nameExplicitlySet
nameExplicitlySet将为false,如果该名称为true。
boolean focusable
Component.setFocusable(boolean) ,
Component.isFocusable()
int isFocusTraversableOverridden
Set<E>[] focusTraversalKeys
boolean focusTraversalKeysEnabled
Component.setFocusTraversalKeysEnabled(boolean) ,
Component.getFocusTraversalKeysEnabled()
Dimension minSize
boolean minSizeSet
Dimension prefSize
boolean prefSizeSet
Dimension maxSize
boolean maxSizeSet
boolean newEventsOnly
newEventsOnly将为真。
它将允许正常处理继续。
如果它为false,那么事件将被传递给组件的父级和上级树,直到事件消耗为止。
long eventMask
eventMask只能由子类通过enableEvents设置。
侦听器注册时不应设置掩码,以便我们可以区分侦听器请求事件和子类请求之间的差异。
一位用于指示是否启用输入法;
该位由enableInputMethods设置,默认情况下处于打开状态。
PropertyChangeSupport changeSupport
PropertyChangeListeners已被注册,
changeSupport字段描述它们。
boolean isPacked
int boundsOp
boolean autoFocusTransferOnDisposal
int componentSerializedDataVersion
AccessibleContext accessibleContext
AccessibleContext与此相关
Component 。
ComponentListener accessibleAWTComponentHandler
FocusListener accessibleAWTFocusHandler
int orientation
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
Container从指定的ObjectInputStream 。
private void writeObject(ObjectOutputStream s) throws IOException
Container到指定的ObjectOutputStream 。
null被写入。 null终止序列为0或更多对;
该对由String和Object ;
所述String表示的对象的类型,可以是以下之一: containerListenerK指示ContainerListener对象;
Container的FocusTraversalPolicy或null
IOException
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) ,
Component.containerListenerK ,
Container.readObject(ObjectInputStream)
Component[] component
int containerSerializedDataVersion
java.awt.LightweightDispatcher dispatcher
boolean focusCycleRoot
boolean focusTraversalPolicyProvider
LayoutManager layoutMgr
Dimension maxSize
int ncomponents
ContainerListener accessibleContainerHandler
int FORWARD_TRAVERSAL
int BACKWARD_TRAVERSAL
boolean implicitDownCycleTraversal
int type
DEFAULT_CURSOR 。
Cursor.getType()
String name
Cursor.getName()
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
boolean resizable
boolean undecorated
undecorated如果对话框未装饰将是真实的,否则会是假的。
Dialog.setUndecorated(boolean) ,
Dialog.isUndecorated() ,
Component.isDisplayable()
boolean modal
Dialog.ModalityType modalityType
ModalityType.MODELESS ,它将阻止所有用户输入到某些应用程序顶级窗口。
Dialog.ModalityType , Dialog.getModalityType() , Dialog.setModalityType(java.awt.Dialog.ModalityType)
String title
int width
Dimension.getSize() ,
Dimension.setSize(double, double)
int height
Dimension.getSize() ,
Dimension.setSize(double, double)
Object target
EventObject.getSource()
long when
InputEvent.getWhen()
int id
Event变量与事件相关。
这已被AWTEvent.getID()替代
AWTEvent.getID()
int x
MouseEvent.getX()
int y
MouseEvent.getY()
int key
KeyEvent.getKeyCode()
int modifiers
int clickCount
MOUSE_DOWN事件,此字段指示连续点击次数。
对于其他事件,其值为0 。
此字段已被MouseEvent.getClickCount()替代。
Object arg
arg已被事件特定属性替换。
Event evt
EventQueue
boolean consumed
Event.isConsumed()
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream并通过将
dir或
file等同于一个空字符串转换为
null执行向后兼容性检查。
int mode
String dir
String file
File[] files
FileDialog.getFiles()
boolean multipleMode
FileDialog.setMultipleMode(boolean) ,
FileDialog.isMultipleMode()
FilenameFilter filter
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
int align
align是确定每行如何分配空白空间的属性。
它可以是以下值之一:
LEFT RIGHT CENTER int newAlign
newAlign是确定每行如何为Java 2平台v1.2及更高版本分配空白空间的属性。
它可以是以下三个值之一:
LEFT RIGHT CENTER LEADING TRAILING FlowLayout.getAlignment() ,
FlowLayout.setAlignment(int)
int hgap
Container 。
int vgap
Container的行和边框之间的Container 。
boolean alignOnBaseline
int serialVersionOnStream
currentSerialVersion 。
它将是两个值之一: 0版本之前的Java 2平台v1.2 .. 1版本之后的Java 2平台v1.2 ..
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream 。
无法识别的键或值将被忽略。
private void writeObject(ObjectOutputStream s) throws ClassNotFoundException, IOException
Hashtable<K,V> fRequestedAttributes
Font.getAttributes()
String name
Font的逻辑名称,传递给构造函数。
Font.getName()
int style
Font的风格,传递给构造函数。
这种风格可以是PLAIN,BOLD,ITALIC或BOLD + ITALIC。
Font.getStyle()
int size
Font ,舍入到整数。
Font.getSize()
float pointSize
Font的点大小在
float 。
Font.getSize() ,
Font.getSize2D()
int fontSerializedDataVersion
Font序列化数据表。
Font font
Font 。
这不能为空。
FontMetrics.getFont()
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream 。
尝试读取图标Image ,这是可用的数据,从1.4开始。
如果图标Image不可用,但检测到除EOF之外的任何东西,则会抛出OptionalDataException 。
无法识别的键或值将被忽略。
OptionalDataException - 如果图标
Image不可用,但检测到除了EOF之外的任何东西
HeadlessException - 如果
GraphicsEnvironment.isHeadless返回
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless() , Image , Frame.getIconImage() , Frame.setIconImage(Image) , Frame.writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
Image ,从1.4开始可用。
Image
IOException
Image , Frame.getIconImage() , Frame.setIconImage(Image) , Frame.readObject(ObjectInputStream)
Rectangle maximizedBounds
Frame.setMaximizedBounds(Rectangle) ,
Frame.getMaximizedBounds()
String title
title可以为null,如果是title =“”的情况。
MenuBar menuBar
menuBar = null,框架将不会有菜单栏。
boolean resizable
resizable将为true,如果框架可调整大小,否则将为false。
Frame.isResizable()
boolean undecorated
undecorated如果框架未装饰,则为true,否则为false。
Frame.setUndecorated(boolean) ,
Frame.isUndecorated() ,
Component.isDisplayable()
boolean mbManagement
mbManagement只用于Motif的实现。
int state
Vector<E> ownedWindows
int frameSerializedDataVersion
Frame的序列化数据版本。
int gridx
gridx=0 。
组件显示区域的前沿是其左边缘,用于水平的从左到右的容器,其右边缘用于水平的从右到左的容器。
值RELATIVE指定该组件紧接在添加到该组件之前添加到容器的组件之后。
默认值为RELATIVE 。 gridx应为非负值。
int gridy
gridy=0 。
值RELATIVE指定组件被放置在添加到该组件之前添加到容器的组件的正下方。
默认值为RELATIVE 。 gridy应为非负值。
int gridwidth
使用REMAINDER指定组件的显示区域将从gridx到行中的最后一个单元格。 使用RELATIVE指定组件的显示区域将从gridx到其行中最后一个。
gridwidth应为非负数,默认值为1。
int gridheight
使用REMAINDER指定组件的显示区域将从gridy到列中的最后一个单元格。 使用RELATIVE指定组件的显示区域将从gridy到其列中的最后一个。
gridheight应为非负值,默认值为1。
double weightx
网格包布局管理器将列的权重计算为一列中所有组件的最大值weightx 。 如果生成的布局水平比其需要填充的面积小,则额外的空间按其重量的比例分配到每个列。 重量为零的列不会占用额外的空间。
如果所有重量都为零,则所有额外的空间出现在单元格的网格和左右边缘之间。
该字段的默认值为0 。 weightx应为非负值。
double weighty
网格包布局管理器将一行的权重计算为一行中所有组件的最大值weighty 。 如果生成的布局垂直于要填充的区域较小,那么额外的空间按照其重量的比例分配给每一行。 重量为零的行不会收到额外的空间。
如果所有重量都为零,则所有额外的空间出现在单元格的网格和顶部和底部边缘之间。
该字段的默认值为0 。 weighty应为非负值。
int anchor
有三种可能的值:取向相对,基线相对和绝对值。 方向相对值相对于容器的组件方向属性来解释,基线相对值相对于基线解释,绝对值不是。 该绝对值为: CENTER , NORTH , NORTHEAST , EAST , SOUTHEAST , SOUTH , SOUTHWEST , WEST和NORTHWEST 。 定向的相对值是: PAGE_START , PAGE_END , LINE_START , LINE_END , FIRST_LINE_START , FIRST_LINE_END , LAST_LINE_START和LAST_LINE_END 。 基线相对值是: BASELINE , BASELINE_LEADING , BASELINE_TRAILING , ABOVE_BASELINE , ABOVE_BASELINE_LEADING , ABOVE_BASELINE_TRAILING , BELOW_BASELINE , BELOW_BASELINE_LEADING和BELOW_BASELINE_TRAILING 。 默认值为CENTER 。
int fill
以下值适用于fill :
NONE :不要调整组件的大小。 HORIZONTAL :使组件宽度足以水平填充其显示区域,但不要更改其高度。 VERTICAL :使组件足够高以垂直填充其显示区域,但不要更改其宽度。 BOTH :使组件完全填充其显示区域。 默认值为NONE 。
Insets insets
默认值为new Insets(0, 0, 0, 0) 。
int ipadx
ipadx像素。
默认值为0 。
int ipady
ipady像素。
默认值为0。
int tempX
int tempY
int tempWidth
int tempHeight
int minWidth
ipady ,其中默认值为0。
GridBagConstraints.ipady
int minHeight
ipadx ,其中默认值为0。
GridBagConstraints.ipadx
Hashtable<K,V> comptable
comptable中的键是组件,值是GridBagConstraints的GridBagConstraints 。
GridBagConstraints
GridBagConstraints defaultConstraints
defaultConstraints 。
GridBagLayoutInfo layoutInfo
layoutInfo是null这表示在gridbag中没有组件,或者如果有组件,它们尚未被验证。
int[] columnWidths
null ,则在计算所有最小列宽度之后,将值应用于网格包。
如果columnWidths具有比列数更多的元素,列将添加到gridbag中以匹配columnWidth中的元素数。
int[] rowHeights
null ,则在计算所有最小行高后,将其应用于网格包。
如果rowHeights具有比行数更多的元素,则将行添加到rowHeights以匹配rowHeights中的元素rowHeights 。
double[] columnWeights
null ,则在计算所有列权重之后,将值应用于网格包。
如果对于列i,重量为columnWeights[i] ,则列i在columnWeights[i]被赋予权重。
如果columnWeights具有比列数更多的元素,则会忽略多余的元素 - 它们不会导致创建更多的列。
double[] rowWeights
null ,则在计算所有行权重之后,将值应用于网格包。
如果rowWeights[i] >第i行的权重,那么行i被分配在rowWeights[i]的权重。
如果rowWeights具有比行数更多的元素,则会忽略多余的元素 - 它们不会导致创建更多的行。
Component componentAdjusting
adjustForGravity之前设置的。
int width
int height
int startx
int starty
int[] minWidth
int[] minHeight
double[] weightX
double[] weightY
boolean hasBaseline
short[] baselineType
int[] maxAscent
int[] maxDescent
int hgap
int vgap
int rows
int cols
int top
Insets.clone()
int left
Insets.clone()
int bottom
Insets.clone()
int right
Insets.clone()
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException - 如果
GraphicsEnvironment.isHeadless()返回
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
String text
Label.getText() ,
Label.setText(String)
int alignment
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)
private void writeObject(ObjectOutputStream s) throws IOException
ItemListeners和ActionListeners作为可选数据。
检测到非串行化侦听器,并且不尝试序列化它们。
null终止序列为0或更多对;
该对由String和Object ;
String指示对象的类型,并且是以下之一: itemListenerK指示ItemListener对象;
actionListenerK指示ActionListener对象
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) ,
Component.itemListenerK ,
Component.actionListenerK ,
List.readObject(ObjectInputStream)
Vector<E> items
int rows
List组件。
它只被指定一次,那就是列表组件实际创建时。
它永远不会改变。
List.getRows()
boolean multipleMode
multipleMode是一个变量,如果true列表组件设置为多选模式,那么用户可以一次在列表中选择多个项目,该变量将被设置为true 。
multipleMode将被设置为false,如果列表组件设置为单选,那就是用户只能在任何一个时间在列表中选择一个项目。
int[] selected
selected是一个数组,它将包含已被选择的项目的索引。
int visibleIndex
List.makeVisible(int)
int listSerializedDataVersion
List组件的序列化数据版本。
List parent
int indexInParent
Component target
Component将由媒体跟踪器跟踪,最终将绘制图像。
java.awt.MediaEntry head
Images正由跟踪
MediaTracker 。
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException, HeadlessException
ObjectInputStream 。
无法识别的键或值将被忽略。
HeadlessException - 如果
GraphicsEnvironment.isHeadless返回
true
IOException
ClassNotFoundException
GraphicsEnvironment.isHeadless() ,
Menu.writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
Vector<E> items
Menu.countItems()
boolean tearOff
true如果菜单有撕纸财产,它会被设置为false ,如果它没有。
当用户不再需要时,可以删除已关闭的菜单。
Menu.isTearOff()
boolean isHelpMenu
true 。
否则将被设置为false 。
int menuSerializedDataVersion
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream 。
无法识别的键或值将被忽略。
HeadlessException - 如果
GraphicsEnvironment.isHeadless返回
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless() ,
MenuBar.writeObject(java.io.ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws ClassNotFoundException, IOException
Vector<E> menus
MenuBar.countMenus()
Menu helpMenu
int menuBarSerializedDataVersion
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException - 如果
GraphicsEnvironment.isHeadless返回
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
Font font
null ,在此处将使用默认值。
默认为null 。
String name
null 。
boolean nameExplicitlySet
true的名称将被明确设置。
默认值为false 。
boolean newEventsOnly
false 。
AccessibleContext accessibleContext
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream ,如果不是null添加一个监听器来接收由Menu项目触发的动作事件。
无法识别的键或值将被忽略。
HeadlessException - 如果
GraphicsEnvironment.isHeadless返回
true
ClassNotFoundException
IOException
MenuItem.removeActionListener(ActionListener) ,
MenuItem.addActionListener(ActionListener) ,
MenuItem.writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
ActionListeners作为可选数据。
检测到非串行化侦听器,并且不尝试序列化它们。
null终止序列0或更多对;
该对由String和Object ;
String指示对象的类型,并且是以下之一: actionListenerK指示ActionListener对象
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) ,
MenuItem.readObject(ObjectInputStream)
boolean enabled
enabled将被设置为true。
否则enabled将被设置为false。
String label
label是菜单项的标签。
它可以是任何字符串。
String actionCommand
actionCommand是菜单项的标签,除非已使用setActionCommand设置。
long eventMask
MenuShortcut shortcut
int menuItemSerializedDataVersion
int key
MenuShortcut.getKey() , MenuShortcut.usesShiftModifier() , KeyEvent
boolean usesShift
MenuShortcut.usesShiftModifier()
int x
Point的X Point 。
如果没有设置X坐标,它将默认为0。
Point.getLocation() ,
Point.move(int, int)
int y
Point 。
如果没有设置Y坐标,则默认为0。
Point.getLocation() ,
Point.move(int, int)
int npoints
Polygon.addPoint(int, int)
int[] xpoints
Polygon中的X坐标数。
额外的元素允许将新点添加到此Polygon而不重新创建此数组。
npoints的值等于此Polygon中有效点的Polygon 。
Polygon.addPoint(int, int)
int[] ypoints
Polygon中的Y坐标数。
额外的元素允许将新点添加到此Polygon而不重新创建此数组。
npoints的值等npoints中有效点的Polygon 。
Polygon.addPoint(int, int)
Rectangle bounds
Polygon 。
该值可以为null。
Polygon.getBoundingBox() ,
Polygon.getBounds()
int x
Rectangle 。
Rectangle.setLocation(int, int) ,
Rectangle.getLocation()
int y
Rectangle 。
Rectangle.setLocation(int, int) ,
Rectangle.getLocation()
int width
Rectangle 。
Rectangle.setSize(int, int) ,
Rectangle.getSize()
int height
Rectangle的高度。
Rectangle.setSize(int, int) ,
Rectangle.getSize()
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream ,如果不是null添加一个监听器来接收由Scrollbar触发的调整事件。
无法识别的键或值将被忽略。
HeadlessException - 如果
GraphicsEnvironment.isHeadless返回
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless() ,
Scrollbar.writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
AdjustmentListeners作为可选数据。
检测到非串行化侦听器,并且不尝试序列化它们。
null终止序列0或更多对;
该对由String和Object ;
String指示对象的类型,并且是以下之一: adjustmentListenerK指示AdjustmentListener对象
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) ,
Component.adjustmentListenerK ,
Scrollbar.readObject(ObjectInputStream)
int value
Scrollbar 。
此属性必须大于或等于minimum且小于或等于maximum - visibleAmount
int maximum
Scrollbar 。
该值必须大于minimum值。
int minimum
Scrollbar 。
该值必须小于maximum值。
int visibleAmount
Scrollbar的泡沫。
当使用滚动条来选择一个值范围时,visibleAmount表示此范围的大小。
根据平台,这可以通过气泡的尺寸在视觉上指示。
int orientation
Scrollbar的方向 - 水平或垂直。
创建滚动条时应指定此值。
VERTICAL或HORIZONTAL 。
int lineIncrement
int pageIncrement
int scrollbarSerializedDataVersion
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException - 如果
GraphicsEnvironment.isHeadless()返回
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int scrollbarDisplayPolicy
ScrollPaneAdjustable vAdjustable
Adjustable :方法,即setMinimum() , setMaximum() , setVisibleAmount() 。
ScrollPaneAdjustable hAdjustable
Adjustable :方法,即setMinimum() , setMaximum() , setVisibleAmount() 。
boolean wheelScrollingEnabled
ScrollPane sp
ScrollPane这个对象是一个滚动条。
int orientation
int value
value应大于minimum且小于maximum
int minimum
ScrollPane设置。
ATTN:在目前的实施中minimum总是0 。 该字段只能通过setSpan方法进行更改, ScrollPane始终将该方法与0调用为最小值。 getMinimum方法总是返回0而不检查此字段。
int maximum
ScrollPane设置。
int visibleAmount
ScrollPane设置。
int unitIncrement
int blockIncrement
AdjustmentListener adjustmentListener
private Object readResolve()
SystemColor类的设计假设存储在上述静态最终字段中的SystemColor对象实例是开发人员可以使用的唯一实例。
该方法通过使用存储在对象的序列化形式的值字段中的索引来维护对实例化的限制,以使用等效的静态对象常量字段替换序列化对象SystemColor 。
有关这些对象的序列化形式的更多信息,请参阅SystemColor.writeReplace()方法。
private Object writeReplace() throws ObjectStreamException
SystemColor对象的专门版本,用于写入序列化流。
SystemColor对象的值字段包含系统颜色的数组索引,而不是系统颜色的rgb数据。
该索引由SystemColor.readResolve()方法用于将反序列化对象解析回原始静态常量版本,以确保每个SystemColor对象的唯一实例。
ObjectStreamException
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException - 如果
GraphicsEnvironment.isHeadless()返回
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless()
int rows
TextArea中的行数。
此参数将确定文本区域的高度。
保证不为负。
int columns
TextArea中的列数。
一列是平台相关的近似平均字符宽度。
此参数将确定文本区域的宽度。
保证不为负。
int scrollbarVisibility
SCROLLBARS_BOTH =两个滚动条。
SCROLLBARS_HORIZONTAL_ONLY =仅限横杆。
SCROLLBARS_VERTICAL_ONLY =仅垂直栏。
SCROLLBARS_NONE =没有滚动条。
int textAreaSerializedDataVersion
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException - 如果
GraphicsEnvironment.isHeadless()返回
true
ClassNotFoundException
IOException
TextComponent.removeTextListener(java.awt.event.TextListener) ,
TextComponent.addTextListener(java.awt.event.TextListener) ,
GraphicsEnvironment.isHeadless()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) ,
Component.textListenerK
String text
null值与“”相同。
boolean editable
TextComponent是否可编辑。
这将是true ,如果文本组件为可编辑和false如果没有。
int selectionStart
selectionStart是所选文本的起始位置。
int selectionEnd
selectionEnd是所选文本的结束位置。
boolean backgroundSetByClientCode
int textComponentSerializedDataVersion
boolean checkForEnableIM
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
HeadlessException - 如果
GraphicsEnvironment.isHeadless()返回
true
ClassNotFoundException
IOException
TextField.removeActionListener(ActionListener) ,
TextField.addActionListener(ActionListener) ,
GraphicsEnvironment.isHeadless()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) ,
Component.actionListenerK
int columns
char echoChar
0删除0 。
int textFieldSerializedDataVersion
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException, HeadlessException
ObjectInputStream和可选的监听器列表,以接收组件触发的各种事件;
还读取(可能的null )子窗口的列表。
无法识别的键或值将被忽略。
HeadlessException - 如果
GraphicsEnvironment.isHeadless返回
true
ClassNotFoundException
IOException
GraphicsEnvironment.isHeadless() ,
Window.writeObject(java.io.ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
WindowListener S和WindowFocusListener S作为可选数据。
将子窗口列表作为可选数据写入。
将图标图像列表作为可选数据写入
null终止序列为0或更多对;
该对由String和Object ;
所述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)
String warningString
AWTPermission("showWindowWithoutWarningBanner") 。
此消息可以显示在窗口中的任何位置。
boolean syncLWRequests
int state
Window.show()
boolean alwaysOnTop
Window.setAlwaysOnTop(boolean) ,
Window.isAlwaysOnTop()
Dialog.ModalExclusionType modalExclusionType
java.awt.FocusManager focusMgr
boolean focusableWindowState
Window.getFocusableWindowState() ,
Window.setFocusableWindowState(boolean)
boolean autoRequestFocus
setVisible(true) )或被移动到前面(调用
toFront() )。
Window.setAutoRequestFocus(boolean) ,
Window.isAutoRequestFocus()
float opacity
Window.setOpacity(float) ,
Window.getOpacity()
Shape shape
null 。
Window.getShape() ,
Window.setShape(Shape)
Window.Type type
int windowSerializedDataVersion
boolean locationByPlatform
int type
int numComponents
ICC_Profile thisProfile
float[] minVal
float[] maxVal
float[] diffMinMax
float[] invDiffMinMax
boolean needScaleInit
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
String是中的一个的名称CS_*在定义的常量ColorSpace类,如果配置文件对象为预定义的颜色空间(例如,简档"CS_sRGB" )。
字符串是null否则。
byte[]阵列是配置文件的配置文件数据。 预定义的配置文件通常为null 。
如果字符串被识别为预定义颜色空间的常量名称,则对象将被解析为使用getInstance(int cspace)的配置文件,并且配置文件数据将被忽略。 否则对象将被解析为使用getInstance(byte[] data)获取的配置文件。
IOException - 抛出
ObjectInputStream 。
ClassNotFoundException - 抛出
ObjectInputStream 。
ICC_Profile.readResolve() ,
ICC_Profile.getInstance(int) ,
ICC_Profile.getInstance(byte[])
private void writeObject(ObjectOutputStream s) throws IOException
String是中的一个的名称CS_*在定义的常量ColorSpace类,如果配置文件对象为预定义的颜色空间(例如,简档"CS_sRGB" )。
字符串为null否则。
byte[]阵列是配置文件的配置文件数据。 对于预定义的颜色空间null而不是简档数据。 如果将来版本的Java API将添加新的预定义颜色空间,则此类的未来版本可能会选择为新的预定义颜色空间编写不仅颜色空间名称,而且还要配置文件数据,以便旧版本仍可反序列化物体。
IOException - 抛出
ObjectInputStream 。
protected Object readResolve() throws ObjectStreamException
ObjectStreamException - 从未抛出,但是由序列化规范强制。
int iccProfileSerializedDataVersion
1对应于Java 2 Platform,v1.3。
public void readExternal(ObjectInput is) throws IOException, ClassNotFoundException
DataFlavor 。
IOException - 如果发生I / O错误
ClassNotFoundException - 如果找不到正在还原的对象的类。
public void writeExternal(ObjectOutput os) throws IOException
DataFlavor 。
IOException - 包含可能发生的任何I / O异常
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
DragGestureEvent 。
该方法首先对所有非transient字段执行默认反transient 。
然后尝试反序列化此对象的List手势事件。
这是首先尝试反序列化字段events ,因为在1.4之前的版本中,该名称的非transient字段存储了手势事件的List 。
如果失败,则使用流中的下一个对象。
如果结果List是null ,则该对象的List的手势事件被设置为空List 。
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
DragGestureEvent 。
执行默认的序列化,然后写出此对象的List姿态的事件,当且仅当List可序列化。
如果不是,则写入null 。
在这种情况下,由DragGestureEvent产生的反序列化流创建的DragGestureEvent将包含一个空的List的手势事件。
List实例,或
null 。
IOException
DragSource dragSource
Component component
Point origin
int action
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
DragGestureRecognizer 。
该方法首先对所有非transient字段执行默认反transient 。
然后,通过使用流中的下一个对象,此对象的DragGestureListener也被反序列化。
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
DragGestureRecognizer 。
此方法首先执行默认序列化。
然后,当且仅当它可以被序列化时,该对象的DragGestureListener被写出。
如果不是,则写入null 。
DragGestureListener或
null 。
IOException
DragSource dragSource
DragSource与此相关
DragGestureRecognizer 。
Component component
Component与此
DragGestureRecognizer 。
int sourceActions
int表示此拖放操作中使用的操作类型。
ArrayList<E> events
DragGestureRecognizer “识别”作为触发拖动的“手势”的事件列表(顺序)。
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
DragSource 。
该方法首先执行默认反序列化。
接下来,该对象的FlavorMap通过使用流中的下一个对象进行反序列化。
如果得到FlavorMap是null ,该对象的FlavorMap被设置为默认的FlavorMap此线程的ClassLoader 。
接下来,通过从流中读取一个或多个键/值对的null终止序列来反序列化该对象的侦听器:
String等于dragSourceListenerK ,则DragSourceListener将使用相应的值对象反序列化并添加到此DragSource 。 String等于dragSourceMotionListenerK ,则DragSourceMotionListener将使用相应的值对象反序列化并添加到此DragSource 。 ClassNotFoundException
IOException
SystemFlavorMap.getDefaultFlavorMap()
private void writeObject(ObjectOutputStream s) throws IOException
DragSource 。
此方法首先执行默认序列化。
接下来,写出此对象的FlavorMap当且仅当它可以被序列化。
如果不是,则写入null 。
接下来,它写出了对这个对象Serializable Serializable个听众。
听众是写在一个null终止的0或更多对的序列。
该对由String和Object ;
所述String表示的类型Object ,可以是以下之一:
dragSourceListenerK表示一个DragSourceListener对象; dragSourceMotionListenerK指示一个DragSourceMotionListener对象。 FlavorMap实例,或null ,后面是一个null终止的0或更多对的序列;
该对由String和Object ;
所述String表示的类型Object ,可以是以下之一:
dragSourceListenerK表示一个DragSourceListener对象; dragSourceMotionListenerK表示一个DragSourceMotionListener对象。 IOException
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
DragSourceContext 。
该方法首先对所有非transient字段执行默认反transient 。
此对象的Transferable和DragSourceListener然后通过使用流中的下两个对象进行反序列化。
如果结果Transferable是null ,则该对象的Transferable被设置为一个虚拟的Transferable ,它不支持DataFlavor 。
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
DragSourceContext 。
此方法首先执行默认序列化。
接下来,当且仅当它可以被序列化时,该对象的Transferable被写出。
如果没有,则写入null 。
在这种情况下,由DragSourceContext产生的反序列化流创建的DragSourceContext将包含一个虚拟的Transferable ,它不支持DataFlavor 。
最后,当且仅当它可以被序列化时,该对象的DragSourceListener被写出。
如果不是,则写入null 。
Transferable实例或
null ,后跟
DragSourceListener实例或
null 。
IOException
DragGestureEvent trigger
Cursor cursor
boolean useCustomCursor
true如果使用自定义拖动光标而不是默认拖动光标。
int sourceActions
DnDConstants的按位掩码,代表与此
DragSourceContext.的拖动操作的拖动源支持的放置操作
DragSourceContext.
int targetActions
int dropAction
int gestureModifiers
boolean invalidModifiers
gestureModifiers无效。
boolean dropSuccess
true如果下降成功。
int dropAction
boolean locationSpecified
boolean指示是否为此事件指定了光标位置。
int x
int y
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
DropTarget 。
该方法首先对所有非transient字段执行默认反transient 。
然后尝试反序列化此对象的DropTargetListener 。
这是首先尝试反序列化字段dtListener ,因为在1.4之前的版本中,该名称的非transient字段存储了DropTargetListener 。
如果失败,则使用流中的下一个对象。
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
DropTarget 。
执行默认的序列化,然后写出该对象的DropTargetListener当且仅当它可以被序列化。
如果不是,则写入null 。
DropTargetListener实例或
null 。
IOException
DropTargetContext dropTargetContext
Component component
int actions
boolean active
true如果DropTarget接受拖放操作。
DropTarget dropTarget
Point location
int actions
int dropAction
Point location
int actions
int dropAction
boolean isLocalTx
true如果源与目标相同的JVM。
DropTargetContext context
DropTargetContext与此相关
DropTargetEvent 。
String actionCommand
long when
ActionEvent.getWhen()
int modifiers
Adjustable adjustable
int value
value将包含可调整对象的新值。
此值始终位于与可调对象相关的范围内。
int adjustmentType
adjustmentType描述了可调节对象值如何改变。
该值可以通过块与单位量增加/减少,其中块与页增量/减量相关联,并且单位与行增量/减量相关联。
boolean isAdjusting
isAdjusting是真实的。
AdjustmentEvent.getValueIsAdjusting()
Component child
boolean temporary
FocusEvent.isTemporary()
long when
InputEvent.getWhen()
int modifiers
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
when字段。
在这种情况下,字段将通过调用EventQueue.getMostRecentEventTime()进行初始化 。
long when
InputMethodEvent.getWhen()
Runnable runnable
Object notifier
Runnable listener
InvocationEvent.isDispatched()
boolean dispatched
run()所述的方法
runnable被执行与否。
InvocationEvent.isDispatched()
boolean catchExceptions
异常 exception
Throwable throwable
long when
Object item
ItemEvent.getItem()
int stateChange
stateChange表示是否
item被选择或取消选择。
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
boolean isProxyActive
int keyCode
char keyChar
keyChar是由键盘上的键或键组合触发的有效unicode字符。
int keyLocation
KEY_LOCATION_UNKNOWN , KEY_LOCATION_STANDARD , KEY_LOCATION_LEFT , KEY_LOCATION_RIGHT和KEY_LOCATION_NUMPAD 。
Component originalSource
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
int x
MouseEvent.getX()
int y
MouseEvent.getY()
int xAbs
int yAbs
int clickCount
MOUSE_CLICKED , MOUSE_PRESSED和MOUSE_RELEASED 。
对于上述, clickCount将至少为1.对于所有其他事件,计数将为0。
int button
MouseInfo.getNumberOfButtons()方法返回的值。
该范围内已经包括常量NOBUTTON , BUTTON1 , BUTTON2和BUTTON3如果这些按钮都存在。
所以也允许使用这些常量。
例如,对于具有两个按钮的鼠标,此字段可能包含以下值:
NOBUTTON ) BUTTON1 ) BUTTON2 ) NOBUTTON ) BUTTON1 ) BUTTON2 ) BUTTON3 ) Toolkit.areExtraMouseButtonsEnabled() ,则字段可能不包含大于BUTTON3的值。
boolean popupTrigger
popupTrigger = false ,则不会弹出菜单。
如果是true则应该出现弹出菜单。
PopupMenu , MouseEvent.isPopupTrigger()
int scrollType
int scrollAmount
int wheelRotation
double preciseWheelRotation
Rectangle updateRect
int oldState
int newState
private void writeObject(ObjectOutputStream stream) throws IOException
NumericShaper.Range基于枚举的参数,如果有的话,分配给位基于掩模的对应物和该对象写入到stream 。
任何没有基于位掩码的对等体的枚举常量都将在转换中被忽略。
IOException - 如果在写入
stream时发生I / O错误
int key
int mask
NumericShaper.Range shapingRange
Range的上下文成形或Range非上下文成形。
null用于基于位掩码的API。
protected Object readResolve() throws InvalidObjectException
InvalidObjectException - 如果要解析的对象不是
Attribute的实例
private void writeObject(ObjectOutputStream s) throws ClassNotFoundException, IOException
private Object readResolve() throws ObjectStreamException
AffineTransform transform
AffineTransform为
TransformAttribute ,或
null如果
AffineTransform是身份转换。
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
private void writeObject(ObjectOutputStream s) throws ClassNotFoundException, IOException
double m00
double m10
double m01
double m11
double m02
double m12
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream随后表示该的弧型字节
Arc2D实例。
byte表示弧型Arc2D.OPEN , Arc2D.CHORD ,或Arc2D.PIE 。 ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
ObjectOutputStream后跟一个指示此
Arc2D实例的弧类型的字节。
byte表示弧型Arc2D.OPEN , Arc2D.CHORD ,或Arc2D.PIE 。 IOException
double x
double y
double width
double height
double start
double extent
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream随后表示该的弧型字节
Arc2D实例。
byte表示弧型Arc2D.OPEN , Arc2D.CHORD ,或Arc2D.PIE 。 ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
ObjectOutputStream后跟一个指示此
Arc2D实例的弧类型的字节。
byte表示弧型Arc2D.OPEN , Arc2D.CHORD ,或Arc2D.PIE 。 IOException
float x
float y
float width
float height
float start
float extent
double x1
double y1
double ctrlx1
double ctrly1
double ctrlx2
double ctrly2
double x2
double y2
float x1
float y1
float ctrlx1
float ctrly1
float ctrlx2
float ctrly2
float x2
float y2
double x
Ellipse2D 。
double y
Ellipse2D 。
double width
Ellipse2D的整体宽度。
double height
Ellipse2D 。
float x
Ellipse2D 。
float y
Ellipse2D 。
float width
Ellipse2D的整体宽度。
float height
Ellipse2D的整体高度。
double x1
double y1
double x2
double y2
float x1
float y1
float x2
float y2
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream其次是存储在这个路径中的路径段的明确序列化。
没有默认的可序列化字段为1.6。
该对象的串行数据在writeObject方法中描述。
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
ObjectOutputStream然后显式序列化存储在此路径中的路径段。
WIND_EVEN_ODD或WIND_NON_ZERO ) NP (或无限,如果NP < 0 )由一个字节组成的值组成,表示路径段类型,后跟一个或多个表示路径段坐标的浮点或双对值 以下字节值常量用于Path2D对象的序列化形式:
SERIAL_STORAGE_FLT_ARRAY 0x30 A hint that the original Path2D object stored the coordinates in a Java array of floats. SERIAL_STORAGE_DBL_ARRAY 0x31 A hint that the original Path2D object stored the coordinates in a Java array of doubles. SERIAL_SEG_FLT_MOVETO 0x40 2 floats A moveTo path segment follows. SERIAL_SEG_FLT_LINETO 0x41 2 floats A lineTo path segment follows. SERIAL_SEG_FLT_QUADTO 0x42 4 floats A quadTo path segment follows. SERIAL_SEG_FLT_CUBICTO 0x43 6 floats A curveTo path segment follows. SERIAL_SEG_DBL_MOVETO 0x50 2 doubles A moveTo path segment follows. SERIAL_SEG_DBL_LINETO 0x51 2 doubles A lineTo path segment follows. SERIAL_SEG_DBL_QUADTO 0x52 4 doubles A curveTo path segment follows. SERIAL_SEG_DBL_CUBICTO 0x53 6 doubles A curveTo path segment follows. SERIAL_SEG_CLOSE 0x60 A closePath path segment. SERIAL_PATH_END 0x61 There are no more path segments following.
IOException
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream其次是存储在这个路径中的路径段的明确序列化。
没有默认的可序列化字段为1.6。
该对象的串行数据在writeObject方法中描述。
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
ObjectOutputStream然后显式序列化存储在此路径中的路径段。
WIND_EVEN_ODD或WIND_NON_ZERO ) NP (或无限,如果NP < 0 )由一个字节组成的值组成,表示路径段类型,后跟一个或多个表示路径段坐标的浮点或双对值 以下字节值常量以Path2D对象的序列化形式使用:
SERIAL_STORAGE_FLT_ARRAY 0x30 A hint that the original Path2D object stored the coordinates in a Java array of floats. SERIAL_STORAGE_DBL_ARRAY 0x31 A hint that the original Path2D object stored the coordinates in a Java array of doubles. SERIAL_SEG_FLT_MOVETO 0x40 2 floats A moveTo path segment follows. SERIAL_SEG_FLT_LINETO 0x41 2 floats A lineTo path segment follows. SERIAL_SEG_FLT_QUADTO 0x42 4 floats A quadTo path segment follows. SERIAL_SEG_FLT_CUBICTO 0x43 6 floats A curveTo path segment follows. SERIAL_SEG_DBL_MOVETO 0x50 2 doubles A moveTo path segment follows. SERIAL_SEG_DBL_LINETO 0x51 2 doubles A lineTo path segment follows. SERIAL_SEG_DBL_QUADTO 0x52 4 doubles A curveTo path segment follows. SERIAL_SEG_DBL_CUBICTO 0x53 6 doubles A curveTo path segment follows. SERIAL_SEG_CLOSE 0x60 A closePath path segment. SERIAL_PATH_END 0x61 There are no more path segments following.
IOException
double x
Point2D的X
Point2D 。
double y
Point2D 。
float x
Point2D的X
Point2D 。
float y
Point2D的Y
Point2D 。
double x1
double y1
double ctrlx
double ctrly
double x2
double y2
float x1
float y1
float ctrlx
float ctrly
float x2
float y2
double x
Rectangle2D的X
Rectangle2D 。
double y
Rectangle2D的Y
Rectangle2D 。
double width
Rectangle2D 。
double height
Rectangle2D的高度。
float x
Rectangle2D的X
Rectangle2D 。
float y
Rectangle2D 。
float width
Rectangle2D 。
float height
Rectangle2D 。
double x
RoundRectangle2D的X
RoundRectangle2D 。
double y
RoundRectangle2D的Y
RoundRectangle2D 。
double width
RoundRectangle2D 。
double height
RoundRectangle2D的高度。
double arcwidth
double archeight
float x
RoundRectangle2D的X
RoundRectangle2D 。
float y
RoundRectangle2D的Y
RoundRectangle2D 。
float width
RoundRectangle2D 。
float height
RoundRectangle2D的高度。
float arcwidth
float archeight
IOException mException
int index
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
private void writeObject(ObjectOutputStream s) throws IOException
PropertyChangeListeners 。
在序列化时间,我们跳过非可序列化的侦听器,并且仅序列化可序列化的侦听器。
IOException
PropertyChangeEvent evt
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
private void writeObject(ObjectOutputStream s) throws IOException
VetoableChangeListeners 。
在序列化时间,我们跳过非可序列化的侦听器,并且仅序列化可序列化的侦听器。
IOException
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
IOException
BeanContextChild beanContextChildPeer
BeanContext其中这个
BeanContextChild是嵌套的。
PropertyChangeSupport pcSupport
VetoableChangeSupport vcSupport
BeanContext propagatedFrom
BeanContext从这个事件传播
Collection<E> children
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
IOException
BeanContextServiceProvider serviceProvider
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException, ClassNotFoundException
int serializable
Locale locale
boolean okToUseGui
boolean designTime
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String path
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
int bytesTransferred
String classname
int length
boolean eof
String actions
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
InvalidObjectException - 如果对象无效或原因不是
IOException
IOException
ClassNotFoundException
异常 detail
该领域早于通用异常链接工具。 Throwable.getCause()方法现在是获取此信息的首选方法。
boolean value
byte value
Byte 。
char value
Character 。
TC_CLASS ClassDescriptor
A ClassDescriptor is a special cased serialization of
a java.io.ObjectStreamClass instance.
在类描述符写入流的初始时间内生成一个新的句柄。
对类描述符的未来引用将被写为初始类描述符实例的引用。
ObjectStreamClass
Throwable ex
double value
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void readObjectNoData()
throws ObjectStreamException
String name
Enum.toString()方法,而不是访问此字段。
int ordinal
Throwable exception
float value
int value
Integer 。
long value
Long 。
short value
Short 。
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int count
boolean shared
char[] value
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
StringBuilder实例的状态保存到流(即序列化它)。
int ),随后在字符串生成器(字符char[] )。
char数组的长度可能大于当前存储在字符串构建器中的字符数,在这种情况下会忽略额外的字符。
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
Throwable ,对字段执行良好的约束。
suppressedExceptions列表中suppressedExceptions条目和自我指针。
堆栈跟踪元素不允许使用空条目。
串行表单中的空堆栈跟踪将生成一个零长度的堆栈元素数组。
一个单元堆栈跟踪,其条目等于new StackTraceElement("", "", null, Integer.MIN_VALUE)导致null stackTrace字段。
请注意, cause字段可以保存的值没有约束;
null和this都是该字段的有效值。
private void writeObject(ObjectOutputStream s) throws IOException
Throwable对象写入流。
null堆栈跟踪字段以串行形式表示为单元素数组,其元素等于new StackTraceElement("", "", null, Integer.MIN_VALUE) 。
IOException
String detailMessage
FileNotFoundException ,它包含无法找到的文件的名称。
Throwable cause
StackTraceElement[] stackTrace
Throwable.getStackTrace()返回。
该字段被初始化为零长度数组。
此字段的null值表示后续调用Throwable.setStackTrace(StackTraceElement[])和Throwable.fillInStackTrace()将是no-ops。
List<E> suppressedExceptions
Throwable.getSuppressed()返回。
列表初始化为零元素不可修改的定点列表。
当读入序列化Throwable时,如果suppressedExceptions字段指向零元素列表,则该字段将重置为哨兵值。
String typeName
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException - 读取对象是否有问题
ClassNotFoundException - 如果其中一个组件类无法解析
MethodType.MethodType() ,
MethodType.readResolve() ,
MethodType.writeObject(java.io.ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
MethodType实例保存到流中。
writeObject方法写入,使用两个调用s.writeObject ,如下所示:
s.writeObject(this.returnType()); s.writeObject(this.parameterArray());
检查反序列化字段值,就像它们被提供给工厂方法methodType一样 。 例如,null值或void参数类型将导致反序列化期间的异常。
IOException - 如果写对象有问题
private Object readResolve()
MethodType后解析和初始化
MethodType对象。
MethodType 。
private Object readResolve() throws ReflectiveOperationException
类<T> capturingClass
String functionalInterfaceClass
String functionalInterfaceMethodName
String functionalInterfaceMethodSignature
String implClass
String implMethodName
String implMethodSignature
int implMethodKind
String instantiatedMethodType
Object[] capturedArgs
Throwable target
InvocationHandler h
Throwable undeclaredThrowable
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
BigDecimal实例(即反序列化它)。
private void writeObject(ObjectOutputStream s) throws IOException
BigDecimal有问题的流
IOException
BigInteger intVal
BigDecimal.unscaledValue()返回。
int scale
BigDecimal.scale返回。
BigDecimal.scale
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
BigInteger实例(即反序列化它)。
由于历史原因,幅度被读入一个字节数组,但它被转换为一个int数组,并且该字节数组被丢弃。
注意:当前的约定是将缓存字段bitCount,bitLength和minimumSetBit初始化为0而不是其他一些标记值。
因此,在readObject中不需要明确的设置这些字段的操作,因为这些字段已经有一个0值,因为defaultReadObject没有被使用。
private void writeObject(ObjectOutputStream s) throws IOException
BigInteger实例保存到流。
由于历史原因,BigInteger的大小被序列化为字节数组。
IOException
int bitCount
int bitLength
int lowestSetBit
int[] magnitude
int signum
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
MathContext实例(即反序列化它)。
int precision
precision将永远是非负的。
RoundingMode roundingMode
RoundingMode
int responseCode
String location
private Object writeReplace() throws ObjectStreamException
ObjectStreamException - 如果无法创建替换此对象的新对象
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String ifname
byte[] ipaddress
int scope_id
boolean scope_id_set
boolean scope_ifname_set
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private Object readResolve() throws ObjectStreamException
ObjectStreamException - 如果无法创建替换此对象的新对象
private void readObjectNoData(ObjectInputStream s) throws IOException, ClassNotFoundException
int address
int family
String hostName
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObjectNoData()
throws ObjectStreamException
InetAddress addr
String hostname
int port
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream is) throws ClassNotFoundException, IOException
ObjectInputStream.defaultReadObject()方法被调用来读取string字段的值。 结果以通常的方式解析。
private void writeObject(ObjectOutputStream os) throws IOException
URI实例的唯一可序列化字段是其string字段。 该字段被赋予一个值,如果它没有一个值,然后调用给定对象 - 输出流的ObjectOutputStream.defaultWriteObject()方法。
IOException
String string
String input
int index
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
String actions
String charsetName
int inputLength
int inputLength
String charsetName
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
InvalidObjectException - 如果对象无效或原因不是
IOException
IOException
ClassNotFoundException
String input
int index
String name
byte[] objBytes
objBytes是null那么对象编组是一个null参考。
byte[] locBytes
equals忽略。
如果locBytes为空,则编组期间没有非null注释。
int hash
Throwable detail
该领域早于通用异常链接工具。 Throwable.getCause()方法现在是获取此信息的首选方法。
ActivationGroupID groupID
String className
String location
MarshalledObject<T> data
boolean restart
Throwable detail
该领域早于通用异常链接工具。 Throwable.getCause()方法现在是获取此信息的首选方法。
ActivationGroupID groupID
ActivationMonitor monitor
long incarnation
String className
String location
MarshalledObject<T> data
ActivationGroupDesc.CommandEnvironment env
Properties props
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
readObject用于自定义序列化。
此方法读取此对象的序列化表单,如下所示:
该方法首先在指定的对象输入流上调用defaultReadObject ,如果options是null ,则options被设置为零长度的数组String 。
ActivationSystem system
UID uid
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
readObject进行自定义序列化。
此方法读取此对象的序列化表单,如下所示:
该readObject方法被调用上in阅读此对象的唯一标识符( UID实例)。
接着, readUTF方法被调用上in读取的外部ref类型名称RemoteRef实例此对象的活化剂。 接下来, RemoteRef实例是由与外部引用类型名称( readUTF返回)相对应的实现专用类创建的,并且RemoteRef实例上调用readExternal方法来读取对应于外部引用类型名称的外部格式。
注意:如果外部REF类型名称是"UnicastRef" , "UnicastServerRef" , "UnicastRef2" , "UnicastServerRef2" ,或"ActivatableRef" ,一个对应的特定于实现的类必须找到,而其readExternal要写入方法必须阅读作为指定外部ref类型名称的串行数据在该类的serialData文档中。 如果外部REF类型名称是任何其他字符串(非零长度的),一个ClassNotFoundException将被抛出,除非实现提供对应于外部引用类型名称的特定于实现的类,在这种情况下, RemoteRef将是一个实例的实现特定类。
private void writeObject(ObjectOutputStream out) throws IOException, ClassNotFoundException
writeObject用于自定义序列化。
此方法将此对象的序列化表单写入此类,如下所示:
writeObject方法在out上调用,传递该对象的唯一标识符(一个UID实例)作为参数。
接下来,在激活器的RemoteRef实例上调用getRefClass方法来获取其外部引用类型名称。 接着, writeUTF方法被调用上out与由返回的值getRefClass ,然后writeExternal方法被调用的RemoteRef实例传递out作为参数。
java.rmi.server.UID (用ObjectOutput.writeObject ),后面是激活器的RemoteRef实例的外部引用类型名称(一个用ObjectOutput.writeUTF编写的字符串),后面是由writeExternal方法写的RemoteRef实例的外部形式。
使用RemoteObject writeObject方法serialData规范中指定的外部引用类型名称的定义来确定RemoteRef实例的外部引用类型名称。 类似地,由写入的数据writeExternal方法和读出由readExternal的方法RemoteRef对应于每个定义的外部ref类型名称的实现类在被指定RemoteObject writeObject方法serialData规范。
IOException
ClassNotFoundException
VMID vmid
Lease.getVMID()
long value
Lease.getValue()
byte[] addr
UID uid
long objNum
ObjID.hashCode()
UID space
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
readObject用于自定义序列化。
此方法读取此对象的序列化表单,如下所示:
readUTF方法在in读取RemoteRef实例的外部参考类型名称,以填充到该对象的ref字段中。 如果返回的字符串readUTF具有长度为零, readObject方法被调用于in ,比返回的值readObject被转换为RemoteRef这个对象的ref字段设置为该值。 否则,该对象的ref字段设置为RemoteRef实例,该实例由readUTF返回的外部引用类型名称对应的实现特定类创建,然后在此对象的ref字段上调用readExternal方法。
如果外部REF类型名称是"UnicastRef" , "UnicastServerRef" , "UnicastRef2" , "UnicastServerRef2" ,或"ActivatableRef" ,一个对应的特定于实现的类必须找到,而其readExternal在要写入方法必须作为指定该外部ref类型名称读出的串行数据该类的serialData文档。 如果外部引用类型名称是任何其他字符串(非零长度),将抛出ClassNotFoundException ,除非实现提供了与该外部引用类型名称相对应的实现特定类,在这种情况下,此对象的ref字段将为设置为该实现特定类的实例。
private void writeObject(ObjectOutputStream out) throws IOException, ClassNotFoundException
writeObject用于自定义序列化。
此方法将此对象的序列化表单写入此类,如下所示:
在此对象的ref字段上调用getRefClass方法以获取其外部引用类型名称。 如果返回的值getRefClass是一个非null长度大于零的字符串,则writeUTF方法被调用上out与由返回的值getRefClass ,然后writeExternal方法被调用在该对象的ref场传递out作为参数; 否则, writeUTF方法被调用上out具有零长度的字符串( "" ),然后将writeObject方法被调用上out传递此对象的ref字段作为参数。
ObjectOutput.writeUTF ),它是包含的RemoteRef实例( ref字段)的外部参考类型名称或零长度字符串,后面是ref字段的外部格式如果字符串为非零长度,则通过其writeExternal方法写入, writeExternal如果字符串为零长度,则将ref字段的序列化形式传递给序列化流writeObject 。
如果此对象是从任何UnicastRemoteObject.exportObject方法返回的RemoteStub或RemoteObjectInvocationHandler的实例,并且未使用自定义套接字工厂,则外部引用类型名称为"UnicastRef" 。 如果此对象是从任何UnicastRemoteObject.exportObject方法返回的RemoteStub或RemoteObjectInvocationHandler的实例,并使用自定义套接字工厂,则外部引用类型名称为"UnicastRef2" 。 如果此对象是从任何java.rmi.activation.Activatable.exportObject方法返回的RemoteStub或RemoteObjectInvocationHandler的实例,则外部引用类型名称为"ActivatableRef" 。 如果此对象是从RemoteObject.toStub方法返回的RemoteStub或RemoteObjectInvocationHandler的实例(并且传递给toStub的参数本身不是RemoteStub ),则外部引用类型名称是远程对象传递给toStub的函数,如上所述。 如果此对象是最初通过反序列化创建的RemoteStub或RemoteObjectInvocationHandler的实例,则外部引用类型名称与此对象反序列化时所读取的名称相同。
如果这个对象的实例, java.rmi.server.UnicastRemoteObject不使用自定义套接字工厂,则外部ref类型名称为"UnicastServerRef" 。 如果这个对象的实例UnicastRemoteObject ,做使用自定义套接字工厂,则外部ref类型名称为"UnicastServerRef2" 。
以下是必须由被写入的数据writeExternal方法和读出由readExternal方法的RemoteRef对应于每个定义的外部ref类型名称的实现类:
对于"UnicastRef" :
DataOutput.writeUTF(String)编写 DataOutput.writeInt(int)编写 ObjID中包含的ObjID实例上调用{link java.rmi.server.ObjID#write(java.io.ObjectOutput)}的结果写入的数据) false ,由DataOutput.writeBoolean(boolean)编写 对于"UnicastRef2"与null客户端插座工厂:
0x00 (表示null客户端套接字工厂),由DataOutput.writeByte(int)编写 DataOutput.writeUTF(String)编写 DataOutput.writeInt(int)编写 ObjID实例上调用{link java.rmi.server.ObjID#write(java.io.ObjectOutput)}的结果写入的数据 false ,由DataOutput.writeBoolean(boolean)撰写 对于"UnicastRef2"与非null客户端插座工厂:
0x01 (表示非null客户端插座工厂),由DataOutput.writeByte(int) DataOutput.writeUTF(String)编写 DataOutput.writeInt(int)编写 java.rmi.server.RMIClientSocketFactory对象),通过将其传递给流实例上的writeObject ObjID中包含的ObjID实例上调用{link java.rmi.server.ObjID#write(java.io.ObjectOutput)}的结果写入的数据) false ,由DataOutput.writeBoolean(boolean)编写 对于"ActivatableRef"与一个null嵌套的远程引用:
java.rmi.activation.ActivationID的实例,通过将其传递给流实例上的writeObject的writeObject "" ),由DataOutput.writeUTF(String)编写 对于"ActivatableRef"与非null嵌套远程参考:
java.rmi.activation.ActivationID一个实例,通过将其传递给流实例上的writeObject的writeObject "UnicastRef2" ,由DataOutput.writeUTF(String)编写 writeExternal方法与流实例(见的外在形式的描述为"UnicastRef2"上文) 为"UnicastServerRef"和"UnicastServerRef2" ,没有数据被写入writeExternal方法或通过读readExternal方法。
IOException
ClassNotFoundException
private void readObjectNoData()
throws InvalidObjectException
InvalidObjectException - 无条件
异常 detail
该领域早于通用异常链接工具。 Throwable.getCause()方法现在是获取此信息的首选方法。
int unique
UID相对于其主机和给定时间生成的VM的号码
long time
UID生成的VM的时间(
System.currentTimeMillis()返回)还活着
short count
UID实例具有相同的时间值
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
int port
RMIClientSocketFactory csf
RMIServerSocketFactory ssf
Permission perm
boolean all_allowed
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
boolean all_allowed
类<T> permClass
Hashtable<K,V> permissions
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
URL之后是一个int ,表示要跟随的证书数(“零”表示没有与此对象关联的证书)。
每个证书被写出开始用String表示的证书类型,接着是int指定证书编码的长度,其次是证书编码本身被写出为字节数组。
最后,如果任何代码签名者存在,那么代码签名者的数组也被序列化并写出来。
IOException
URL location
private void writeObject(ObjectOutputStream oos) throws IOException
IOException
PrivateKey privateKey
PublicKey publicKey
protected Object readResolve() throws ObjectStreamException
此方法支持三种类型/格式组合:
ObjectStreamException - 如果类型/格式组合无法识别,如果算法,密钥格式或编码密钥字节无法识别/无效,则如果密钥的解析由于任何原因而失败
KeyRep.Type type
String algorithm
String format
byte[] encoded
String name
boolean readOnly
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
异常 exception
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
Provider provider
SecureRandomSpi secureRandomSpi
String algorithm
byte[] state
MessageDigest digest
byte[] randomBytes
int randomBytesUsed
long counter
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
byte[] content
byte[] signature
String thealgorithm
PrivateKey privateKey
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
String表示的type之后是String表示的name之后是String表示的actions之后是int指示跟随(“零”值的证书的数量表示不存在与此相关的证书目的)。
每个证书被写出开始用String表示的证书类型,接着是int指定证书编码的长度,其次是证书编码本身被写出为字节数组。
IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException - 如果无法创建表示此证书的新对象
String type
int hash
protected Object readResolve() throws ObjectStreamException
ObjectStreamException - 证书无法解决
String type
byte[] data
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
CertificateRevokedException实例。
private void writeObject(ObjectOutputStream oos) throws IOException
CertificateRevokedException实例。
IOException
Date revocationDate
CRLReason reason
X500Principal authority
X500Principal代表签署证书的吊销状态信息的机构的名称
protected Object writeReplace() throws ObjectStreamException
CertPath成与被序列
CertPathRep对象。
ObjectStreamException - 如果无法创建表示此认证路径的
CertPathRep对象
String type
protected Object readResolve() throws ObjectStreamException
CertPath CertPath。
ObjectStreamException - 如果一个
CertPath无法构建
String type
byte[] data
private void readObject(ObjectInputStream stream) throws ClassNotFoundException, IOException
int index
CertPath certPath
CertPath时抛出异常,目前正在验证
CertPathValidatorException.Reason reason
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
BatchUpdateException从一个流恢复BatchUpdateException的状态。
private void writeObject(ObjectOutputStream s) throws IOException, ClassNotFoundException
BatchUpdateException到流。
int[] updateCounts
long[] longUpdateCounts
int index
boolean parameter
boolean read
int dataSize
int transferSize
String SQLState
int vendorCode
SQLException next
int nanos
protected Object readResolve() throws InvalidObjectException
InvalidObjectException - 如果要解析的对象不是
Attribute的实例
String name
Attribute 。
该名称主要由readResolve用于在反序列化实例时查找相应的预定义实例。
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
InvalidObjectException - 如果从流读取的对象无效。
IOException
ClassNotFoundException
double[] choiceLimits
choiceFormats[i]如果被格式化的数量大于或等于choiceLimits[i]和小于choiceLimits[i+1] 。
String[] choiceFormats
choiceFormats[i]如果被格式化的数量大于或等于choiceLimits[i]和小于choiceLimits[i+1] 。
Calendar calendar
NumberFormat numberFormat
DateFormat用于在日期和时间格式化数字的数字格式化程序。
子类应将此初始化为适合与此DateFormat的区域设置的数字格式。
protected Object readResolve() throws InvalidObjectException
InvalidObjectException - 如果常数无法解决。
int calendarField
private void writeObject(ObjectOutputStream stream) throws IOException
zoneStrings字段被初始化,以确保向后兼容性。
IOException
String[] eras
Calendar.BC和Calendar.AD 。
String[] months
Calendar.JANUARY , Calendar.FEBRUARY ,等等。
String[] shortMonths
Calendar.JANUARY , Calendar.FEBRUARY ,等等。
String[] weekdays
Calendar.SUNDAY , Calendar.MONDAY等元件weekdays[0]被忽略。
String[] shortWeekdays
Calendar.SUNDAY , Calendar.MONDAY等元件shortWeekdays[0]被忽略。
String[] ampms
Calendar.AM和Calendar.PM 。
String[][] zoneStrings
TimeZone的本地化名称的条目。
每行包含( i范围从0 .. n -1):
zoneStrings[i][0] - 时区ID zoneStrings[i][1] - 标准时间的长名称 zoneStrings[i][2] - 标准时间区域的短名称 zoneStrings[i][3] - 夏令时区域的长名称 zoneStrings[i][4] - 夏令时区域的短名称 TimeZone类的有效ID之一,不是custom IDs 。
所有其他条目都是本地化名称。
TimeZone
String localPatternChars
DateFormat.ERA_FIELD , DateFormat.YEAR_FIELD ,等等。因此,如果字符串是“子XZ ...”,然后本地化的模式将采用“X”为时代和“Z”一年
Locale locale
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
BigInteger和BigDecimal对象之外的BigInteger数字的限制。 这些限制存储在超类中,以便与旧版本进行序列化兼容,而BigInteger和BigDecimal对象的限制保留在此类中。 如果在超类中,最小或最大整数位数大于DOUBLE_INTEGER_DIGITS或者如果最小或最大分数位数大于DOUBLE_FRACTION_DIGITS ,则流数据无效,此方法抛出InvalidObjectException 。 serialVersionOnStream小于4,则初始化roundingMode至RoundingMode.HALF_EVEN 。 该字段是第4版的新增功能。 serialVersionOnStream小于3,则使用相应超类getter的值调用最小和最大整数和小数位数的setter来初始化此类中的字段。 这个类中的字段是新的版本3。 serialVersionOnStream小于1,表示流由JDK 1.1编写,初始化useExponentialNotation为false,因为它不存在于JDK 1.1中。 serialVersionOnStream设置为允许的最大值,以便如果再次将该对象流式传输,默认序列化将正常工作。 超过2的流版本将不具有贴缀模式变量posPrefixPattern等。因此,它们将被初始化为null ,这意味着词缀将被视为文字值。 这正是我们想要的,因为它对应于pre-version-2的行为。
String positivePrefix
String positiveSuffix
String negativePrefix
String negativeSuffix
String posPrefixPattern
positivePrefix 。
该模式通过方法expandAffix()扩展为positivePrefix以更新后者以反映symbols更改。 如果此变量为null则positivePrefix将被视为字面值,当symbols更改时,该值不会更改。 这个变量始终是null为DecimalFormat比流恢复的流版本2较老的对象。
String posSuffixPattern
positiveSuffix 。
该变量类似于posPrefixPattern ;
看到该变量进一步的文档。
String negPrefixPattern
negativePrefix 。
该变量类似于posPrefixPattern ;
看到该变量进一步的文档。
String negSuffixPattern
negativeSuffix 。
此变量类似于posPrefixPattern ;
看到该变量进一步的文档。
int multiplier
byte groupingSize
NumberFormat.groupingUsed为真,则必须大于0。
boolean decimalSeparatorAlwaysShown
boolean parseBigDecimal
DecimalFormat.isParseBigDecimal()
DecimalFormatSymbols symbols
DecimalFormatSymbols对象。
它包含用于格式化数字的符号,例如分组分隔符,小数分隔符等。
boolean useExponentialNotation
byte minExponentDigits
useExponentialNotation不为真,则忽略此字段。
int maximumIntegerDigits
BigInteger或BigDecimal号码的整数部分允许的最大位数。
maximumIntegerDigits必须大于或等于minimumIntegerDigits 。
DecimalFormat.getMaximumIntegerDigits()
int minimumIntegerDigits
BigInteger或BigDecimal数字的整数部分允许的最小位数。
minimumIntegerDigits必须小于等于maximumIntegerDigits 。
DecimalFormat.getMinimumIntegerDigits()
int maximumFractionDigits
BigInteger或BigDecimal号码小数部分允许的最大位数。
maximumFractionDigits必须大于等于minimumFractionDigits 。
DecimalFormat.getMaximumFractionDigits()
int minimumFractionDigits
BigInteger或BigDecimal号码小数部分允许的最小位数。
minimumFractionDigits必须小于或等于maximumFractionDigits 。
DecimalFormat.getMinimumFractionDigits()
RoundingMode roundingMode
RoundingMode用于此DecimalFormat。
int serialVersionOnStream
useExponentialNotation和minExponentDigits 。 posPrefixPattern , posSuffixPattern , negPrefixPattern和negSuffixPattern 。 maximumIntegerDigits , minimumIntegerDigits , maximumFractionDigits , minimumFractionDigits和parseBigDecimal 。 roundingMode 。 private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
serialVersionOnStream小于1,则初始化monetarySeparator与decimalSeparator和exponential相同为“E”。
如果serialVersionOnStream是小于2时,初始化locale到根区域设置,并初始化如果serialVersionOnStream小于3,它初始化exponentialSeparator使用exponential 。
将serialVersionOnStream设置为允许的最大值,以便如果此对象再次流出,默认序列化将正常工作。
从intlCurrencySymbol字段初始化货币。
IOException
ClassNotFoundException
char zeroDigit
char groupingSeparator
char decimalSeparator
char perMill
char percent
char digit
char patternSeparator
String infinity
String NaN
char minusSign
String currencySymbol
String intlCurrencySymbol
char monetarySeparator
DecimalFormatSymbols.getMonetaryDecimalSeparator()
char exponential
请注意,即使实施和流格式支持,公共API也无法设置此字段。 意图是将来会将其添加到API中。
String exponentialSeparator
如果exponential和exponentialSeparator存在,则此exponentialSeparator具有优先权。
Locale locale
int serialVersionOnStream
DecimalFormatSymbols版本。
可能的值是:
monetarySeparator和exponential 。 locale字段。 exponentialSeparator字段。 DecimalFormatSymbols时,最新的格式(对应于最高允许的serialVersionOnStream )始终被写入。
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
InvalidObjectException - 从流中读取的对象是否无效。
IOException
ClassNotFoundException
Locale locale
String pattern
Format[] formats
int[] offsets
int[] argumentNumbers
int maxOffset
offsets中的条目offsets 。
也可以被认为是正在使用的offsets中最高编号元素的索引。
所有这些数组应该使用与offsets相同数量的元素,因此该变量足以告诉我们它们中有多少条目。
protected Object readResolve() throws InvalidObjectException
InvalidObjectException - 如果常数无法解决。
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
serialVersionOnStream小于1,表示流是由JDK 1.1编写的,则将int字段(例如maximumIntegerDigits设置为等于byte字段(如maxIntegerDigits ,因为int字段不存在于JDK 1.1中。
最后,将serialVersionOnStream设置为允许的最大值,以便如果此对象被再次流出,默认的序列化将正常工作。
如果minimumIntegerDigits大于maximumIntegerDigits或minimumFractionDigits大于maximumFractionDigits ,则流数据无效,此方法抛出InvalidObjectException 。 另外,如果这些值中的任何一个是负数,那么这个方法会抛出一个InvalidObjectException 。
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream stream) throws IOException
byte字段(例如
maxIntegerDigits设置为等于
int字段(例如
maximumIntegerDigits (或以
Byte.MAX_VALUE者为准)为int字段,以与JDK 1.1版本的流格式兼容。
IOException
boolean groupingUsed
byte maxIntegerDigits
maxIntegerDigits必须大于或等于minIntegerDigits 。
注意:此字段仅适用于与JDK 1.1的序列化兼容性。 在Java平台2 v1.2及更高版本中,使用新的int字段maximumIntegerDigits 。 当写入流时, maxIntegerDigits设置为maximumIntegerDigits或Byte.MAX_VALUE ,以maximumIntegerDigits者Byte.MAX_VALUE 。 从流中读取时,仅当serialVersionOnStream小于1时才使用此字段。
byte minIntegerDigits
minimumIntegerDigits必须小于或等于maximumIntegerDigits 。
注意:此字段仅适用于与JDK 1.1的序列化兼容性。 在Java平台2 v1.2及更高版本中,使用新的int字段minimumIntegerDigits 。 当写入流时, minIntegerDigits设置为minimumIntegerDigits或Byte.MAX_VALUE ,以minimumIntegerDigits者Byte.MAX_VALUE 。 从流中读取时,仅当serialVersionOnStream小于1时才使用此字段。
byte maxFractionDigits
maximumFractionDigits必须大于等于minimumFractionDigits 。
注意:此字段仅适用于与JDK 1.1的序列化兼容性。 在Java平台2 v1.2及更高版本中,使用新的int字段maximumFractionDigits 。 当写入流时, maxFractionDigits设置为maximumFractionDigits或Byte.MAX_VALUE ,以maximumFractionDigits者Byte.MAX_VALUE 。 从流中读取时,仅当serialVersionOnStream小于1时才使用此字段。
byte minFractionDigits
minimumFractionDigits必须小于等于maximumFractionDigits 。
注意:此字段仅适用于与JDK 1.1的序列化兼容性。 在Java平台2 v1.2及更高版本中,使用新的int字段minimumFractionDigits 。 当写入流时, minFractionDigits设置为minimumFractionDigits或Byte.MAX_VALUE ,以minimumFractionDigits者Byte.MAX_VALUE 。 从流中读取时,仅当serialVersionOnStream小于1时才使用此字段。
boolean parseIntegerOnly
int maximumIntegerDigits
maximumIntegerDigits必须大于或等于minimumIntegerDigits 。
NumberFormat.getMaximumIntegerDigits()
int minimumIntegerDigits
minimumIntegerDigits必须小于或等于maximumIntegerDigits 。
NumberFormat.getMinimumIntegerDigits()
int maximumFractionDigits
maximumFractionDigits必须大于等于minimumFractionDigits 。
NumberFormat.getMaximumFractionDigits()
int minimumFractionDigits
minimumFractionDigits必须小于或等于maximumFractionDigits 。
NumberFormat.getMinimumFractionDigits()
int serialVersionOnStream
NumberFormat版本。
可能的值是:
int字段(如maximumIntegerDigits )不存在,而使用byte字段(如maxIntegerDigits 。 byte字段(例如maxIntegerDigits的值,而使用int字段(例如maximumIntegerDigits 。 NumberFormat时,最新的格式(对应于最高允许的serialVersionOnStream )始终被写入。
protected Object readResolve() throws InvalidObjectException
InvalidObjectException - 如果常数无法解决。
int errorOffset
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
InvalidObjectException - 如果模式无效
IOException
ClassNotFoundException
int serialVersionOnStream
defaultCenturyStart流。 defaultCenturyStart 。 serialVersionOnStream被写入。
String pattern
DateFormatSymbols formatData
DateFormatSymbols
Date defaultCenturyStart
defaultCenturyStart开始的世纪,可能是任何日期。
可能不为空
Locale locale
SimpleDateFormat 。
如果此对象已由较旧的SimpleDateFormat创建并反SimpleDateFormat ,则该值可能为null。
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(1); // identifies a Duration out.writeLong(seconds); out.writeInt(nanos);
long seconds
int nanos
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(2); // identifies an Instant out.writeLong(seconds); out.writeInt(nanos);
long seconds
int nanos
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(3); // identifies a LocalDate out.writeInt(year); out.writeByte(month); out.writeByte(day);
int year
short month
short day
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(4); // identifies a LocalTime
if (nano == 0) {
if (second == 0) {
if (minute == 0) {
out.writeByte(~hour);
} else {
out.writeByte(hour);
out.writeByte(~minute);
}
} else {
out.writeByte(hour);
out.writeByte(minute);
out.writeByte(~second);
}
} else {
out.writeByte(hour);
out.writeByte(minute);
out.writeByte(second);
out.writeInt(nano);
}
byte hour
byte minute
byte second
int nano
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(13); // identifies a MonthDay out.writeByte(month); out.writeByte(day);
int month
int day
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
LocalDateTime dateTime
ZoneOffset offset
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
LocalTime time
ZoneOffset offset
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(14); // identifies a Period out.writeInt(years); out.writeInt(months); out.writeInt(days);
int years
int months
int days
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Externalizable接口读取对象。
writeReplace方法定义的流类型和参数被读取并传递给相应的静态工厂,以创建一个新的实例。
该实例作为解除序列化的Ser对象返回。
Duration.ofSeconds(seconds, nanos); Instant.ofEpochSecond(seconds, nanos); LocalDate.of(year, month, day); LocalDateTime.of(date, time); LocalTime.of(hour, minute, second, nano); MonthDay.of(month, day); OffsetTime.of(time, offset); OffsetDateTime.of(dateTime, offset); Period.of(years, months, days); Year.of(year); YearMonth.of(year, month); ZonedDateTime.ofLenient(dateTime, offset, zone); ZoneId.of(id); (offsetByte == 127 ? ZoneOffset.ofTotalSeconds(in.readInt()) : ZoneOffset.ofTotalSeconds(offsetByte * 900)); IOException - 如果发生I / O错误
ClassNotFoundException - 如果找不到要恢复的对象的类。
public void writeExternal(ObjectOutput out) throws IOException
Externalizable接口来写入对象。
writeReplace序列化形式,以获取类型和值类型的值。
IOException - 包括可能发生的任何I / O异常
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(11); // identifies a Year out.writeInt(year);
int year
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(12); // identifies a YearMonth out.writeInt(year); out.writeByte(month);
int year
int month
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
LocalDateTime dateTime
ZoneOffset offset
ZoneId zone
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(7); // identifies a ZoneId (not ZoneOffset)
out.writeUTF(getId());
当回读时, ZoneId将被创建为使用ZoneId.of(String) ,但在ID具有有效格式但不在已知的基于区域的ID集合的情况下没有任何异常。
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(8); // identifies a ZoneOffset
int offsetByte = totalSeconds % 900 == 0 ? totalSeconds / 900 : 127;
out.writeByte(offsetByte);
if (offsetByte == 127) {
out.writeInt(totalSeconds);
}
int totalSeconds
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(2); // identifies a ChronoLocalDateTime out.writeObject(toLocalDate()); out.witeObject(toLocalTime());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(3); // identifies a ChronoZonedDateTime out.writeObject(toLocalDateTime()); out.writeObject(getOffset()); out.writeObject(getZone());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
Object writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(6); // identifies a HijrahDate out.writeObject(chrono); // the HijrahChronology variant out.writeInt(get(YEAR)); out.writeByte(get(MONTH_OF_YEAR)); out.writeByte(get(DAY_OF_MONTH));
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
Object writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
Object writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(4); // identifies a JapaneseDate out.writeInt(get(YEAR)); out.writeByte(get(MONTH_OF_YEAR)); out.writeByte(get(DAY_OF_MONTH));
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(5); // identifies a JapaneseEra out.writeInt(getValue());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
Object writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(8); // identifies a MinguoDate out.writeInt(get(YEAR)); out.writeByte(get(MONTH_OF_YEAR)); out.writeByte(get(DAY_OF_MONTH));
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Externalizable接口读取对象。
writeReplace方法定义的流式类型和参数将被读取并传递给相应的静态工厂,以创建一个新的实例。
该实例作为解除序列化的Ser对象返回。
IOException - 如果发生I / O错误
ClassNotFoundException - 如果找不到正在还原的对象的类。
public void writeExternal(ObjectOutput out) throws IOException
Externalizable接口来写入对象。
writeReplace序列化形式,为类型的类型和值序列的值。
IOException - 包括可能发生的任何I / O异常
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
Object writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(10); // identifies a ThaiBuddhistDate out.writeInt(get(YEAR)); out.writeByte(get(MONTH_OF_YEAR)); out.writeByte(get(DAY_OF_MONTH));
String parsedString
int errorIndex
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException, InvalidObjectException
InvalidObjectException - 如果最小最小值大于最小最大值,或最小最大值大于最大最大值或最大最大值最大值最大值最大值
IOException
ClassNotFoundException
long minSmallest
long minLargest
long maxSmallest
long maxLargest
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException, InvalidObjectException
InvalidObjectException - 如果序列化对象对firstDayOfWeek或minimalDays具有无效值。
IOException
ClassNotFoundException
private Object readResolve() throws InvalidObjectException
firstDayOfWeek
minimalDays 。
InvalidObjectException - 如果序列化对象对firstDayOfWeek或minimalDays具有无效值。
DayOfWeek firstDayOfWeek
int minimalDays
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Externalizable接口读取对象。
writeReplace方法定义的流式类型和参数将被读取并传递给相应的静态工厂,以创建一个新的实例。
该实例作为反序列化的Ser对象返回。
ZoneRules.of(standardTransitions, standardOffsets, savingsInstantTransitions, wallOffsets, lastRules); ZoneOffsetTransition of(LocalDateTime.ofEpochSecond(epochSecond), offsetBefore, offsetAfter); ZoneOffsetTransitionRule.of(month, dom, dow, time, timeEndOfDay, timeDefinition, standardOffset, offsetBefore, offsetAfter); IOException - 如果发生I / O错误
ClassNotFoundException - 如果找不到正在恢复的对象的类。
public void writeExternal(ObjectOutput out) throws IOException
Externalizable接口来写入对象。
writeReplace序列化形式的类型和类型序列值。
IOException - 包括可能发生的任何I / O异常
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(2); // identifies a ZoneOffsetTransition out.writeEpochSec(toEpochSecond); out.writeOffset(offsetBefore); out.writeOffset(offsetAfter);
LocalDateTime transition
ZoneOffset offsetBefore
ZoneOffset offsetAfter
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(3); // identifies a ZoneOffsetTransition final int timeSecs = (timeEndOfDay ? 86400 : time.toSecondOfDay()); final int stdOffset = standardOffset.getTotalSeconds(); final int beforeDiff = offsetBefore.getTotalSeconds() - stdOffset; final int afterDiff = offsetAfter.getTotalSeconds() - stdOffset; final int timeByte = (timeSecs % 3600 == 0 ? (timeEndOfDay ? 24 : time.getHour()) : 31); final int stdOffsetByte = (stdOffset % 900 == 0 ? stdOffset / 900 + 128 : 255); final int beforeByte = (beforeDiff == 0 || beforeDiff == 1800 || beforeDiff == 3600 ? beforeDiff / 1800 : 3); final int afterByte = (afterDiff == 0 || afterDiff == 1800 || afterDiff == 3600 ? afterDiff / 1800 : 3); final int dowByte = (dow == null ? 0 : dow.getValue()); int b = (month.getValue() << 28) + // 4 bits ((dom + 32) << 22) + // 6 bits (dowByte << 19) + // 3 bits (timeByte << 14) + // 5 bits (timeDefinition.ordinal() << 12) + // 2 bits (stdOffsetByte << 4) + // 8 bits (beforeByte << 2) + // 2 bits afterByte; // 2 bits out.writeInt(b); if (timeByte == 31) { out.writeInt(timeSecs); } if (stdOffsetByte == 255) { out.writeInt(stdOffset); } if (beforeByte == 3) { out.writeInt(offsetBefore.getTotalSeconds()); } if (afterByte == 3) { out.writeInt(offsetAfter.getTotalSeconds()); }
Month month
byte dom
-1是本月的最后一天, -2是第二次到最后一天,等等。
DayOfWeek dow
LocalTime time
boolean timeEndOfDay
ZoneOffsetTransitionRule.TimeDefinition timeDefinition
ZoneOffset standardOffset
ZoneOffset offsetBefore
ZoneOffset offsetAfter
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
out.writeByte(1); // identifies a ZoneRules out.writeInt(standardTransitions.length); for (long trans : standardTransitions) { Ser.writeEpochSec(trans, out); } for (ZoneOffset offset : standardOffsets) { Ser.writeOffset(offset, out); } out.writeInt(savingsInstantTransitions.length); for (long trans : savingsInstantTransitions) { Ser.writeEpochSec(trans, out); } for (ZoneOffset offset : wallOffsets) { Ser.writeOffset(offset, out); } out.writeByte(lastRules.length); for (ZoneOffsetTransitionRule rule : lastRules) { rule.writeExternal(out); }
用于偏移的Epoch第二个值以可变长度的形式进行编码,以使常见的情况在流中放置较少的字节。
static void writeEpochSec(long epochSec, DataOutput out) throws IOException { if (epochSec >= -4575744000L && epochSec < 10413792000L && epochSec % 900 == 0) { // quarter hours between 1825 and 2300 int store = (int) ((epochSec + 4575744000L) / 900); out.writeByte((store >>> 16) & 255); out.writeByte((store >>> 8) & 255); out.writeByte(store & 255); } else { out.writeByte(255); out.writeLong(epochSec); } }
ZoneOffset值以可变长度的形式编码,因此常见的情况在流中放置较少的字节。
static void writeOffset(ZoneOffset offset, DataOutput out) throws IOException { final int offsetSecs = offset.getTotalSeconds(); int offsetByte = offsetSecs % 900 == 0 ? offsetSecs / 900 : 127; // compress to -72 to +72 out.writeByte(offsetByte); if (offsetByte == 127) { out.writeInt(offsetSecs); } }
long[] standardTransitions
ZoneOffset[] standardOffsets
long[] savingsInstantTransitions
LocalDateTime[] savingsLocalTransitions
ZoneOffset[] wallOffsets
ZoneOffsetTransitionRule[] lastRules
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
int )的deque,其后是其所有元素(每个对象引用),从头到尾顺序。
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int size
Object[] a
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
BitSet实例(即反序列化它)。
private void writeObject(ObjectOutputStream s) throws IOException
BitSet实例的状态保存到流(即序列化)。
IOException
long[] bits
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream stream) throws IOException
Calendar只会写出其状态数据和当前时间,并没有写任何字段数据出来,如fields[] , isTimeSet , areFieldsSet和isSet[] 。
nextStamp也不应该是持久状态的一部分。
不幸的是,在JDK 1.1发货之前没有发生。
要与JDK 1.1兼容,我们将始终要写出字段值和状态标志。
但是, nextStamp可以从序列化流中删除;
这可能会在不久的将来发生。
IOException
int[] fields
FIELD_COUNT整数的数组,索引值为ERA到DST_OFFSET 。
boolean[] isSet
FIELD_COUNT布尔数组,索引值为ERA到DST_OFFSET 。
long time
Calendar.isTimeSet
boolean isTimeSet
time的值是有效的。
通过对field[]的项目的更改使时间无效。
Calendar.time
boolean areFieldsSet
fields[]与当前设置的时间同步,则为真。
如果为假,则在下一次试图获得某一字段的值,将迫使各个领域的重新计算从当前值time 。
boolean lenient
True如果此日历的计算期间允许超出范围的字段值
time从
fields[] 。
TimeZone zone
TimeZone 。
Calendar使用时区数据在区域设置和GMT时间之间进行翻译。
int firstDayOfWeek
SUNDAY ,
MONDAY ,等等,这是一个区域设置相关的值。
int minimalDaysInFirstWeek
int nextStamp
stamp[] ,内部阵列。
这实际上不应该写入流中,并且在不久的将来可能会被从流中删除。
同时应使用MINIMUM_USER_STAMP的值。
int serialVersionOnStream
serialVersionOnStream被写入。
Collection<E> c
类<T> type
Object[] zeroLengthElementArray
NavigableMap<K,V> nm
NavigableSet<E> ns
int n
Object element
private Object readResolve()
private Object readResolve()
private Object readResolve()
private Object readResolve()
Comparator<T> cmp
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
Object element
Object element
private void writeObject(ObjectOutputStream s) throws IOException
IOException
Collection<E> c
Object mutex
private Object readResolve()
private void writeObject(ObjectOutputStream s) throws IOException
IOException
NavigableMap<K,V> nm
NavigableSet<E> ns
private Object writeReplace()
Collection<E> c
private Object readResolve()
NavigableMap<K,V> nm
NavigableSet<E> ns
private Object writeReplace()
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
getTime()返回的值被发出(长)。
这表示从1970年1月1日00:00:00 GMT以毫秒为单位的偏移量。
IOException
String flags
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String f
char c
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
long gregorianCutover
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
HashMap实例(即反序列化它)。
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int threshold
float loadFactor
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int threshold
float loadFactor
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int size
int c
String flags
int p
int w
int _errIdx
boolean accessOrder
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
LinkedList实例(即反序列化它)。
private void writeObject(ObjectOutputStream s) throws IOException
LinkedList实例的状态保存到流(即序列化它)。
IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
Locale 。
IOException
ClassNotFoundException
IllformedLocaleException
private void writeObject(ObjectOutputStream out) throws IOException
Locale到指定的
ObjectOutputStream 。
IOException
private Object readResolve() throws ObjectStreamException
Locale实例,相当于反序列化的Locale 。
当从对象数据流读取的序列化语言,国家和变体字段是“ja”,“JP”,“JP”或“th”,“TH”,“TH”和脚本/扩展字段都为空时, UNICODE_LOCALE_EXTENSION “ca”/“japanese”(日历类型是“japanese”)或“nu”/“thai”(数字脚本类型是“thai”)。
见Special Cases以获取更多信息。
String country
String extensions
int hashcode
String language
String script
String variant
String s
String s
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
PriorityQueue实例(即反序列化它)。
private void writeObject(ObjectOutputStream s) throws IOException
Object (int),后面是其所有元素(每个元素为
Object ),顺序是正确的。
IOException
int size
Comparator<T> comparator
Properties defaults
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
Random实例(即反序列化它)。
private void writeObject(ObjectOutputStream s) throws IOException
Random实例保存到流中。
IOException
boolean haveNextNextGaussian
double nextNextGaussian
long seed
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream stream) throws IOException
DOW_IN_MONTH_MODE规则,在所需部分,后面是完整规则,以打包格式,在可选部分。
可选部分将在流入时被JDK 1.1代码忽略。
可选部分的内容:字节数组的长度被发送(int); 这是这个版本的4。 发出给定长度的字节数组。 字节数组的内容字段的真值startDay , startDayOfWeek , endDay和endDayOfWeek 。 所需部分中的这些字段的值是适合于规则模式DOW_IN_MONTH_MODE ,它是JDK 1.1唯一识别的模式。
IOException
int startMonth
Calendar.JANUARY与Calendar.DECEMBER之间。
此值不能等于endMonth 。
如果useDaylight为false,则忽略该值。
int startDay
startMode == DOW_IN_MONTH
startDay表示根据startMonth ,夏令时起始时间从1到28,30或31的startMonth 。
startMode != DOW_IN_MONTH
startDay指示哪个startDayOfWeek本月startMonth夏令时开始的。
例如,和的1的值的startDayOfWeek的Calendar.SUNDAY表示的第一个星期日startMonth 。
同样,+2表示第二个星期日,-1表示最后一个星期日。
值为0是非法的。
如果useDaylight为false,则忽略此值。
int startDayOfWeek
Calendar.SUNDAY和Calendar.SATURDAY之间。
如果useDaylight为false或startMode == DAY_OF_MONTH ,则忽略此值。
int startTime
startTimeMode 。
如果useDaylight为false,则忽略此值。
int startTimeMode
int endMonth
Calendar.JANUARY与Calendar.UNDECIMBER之间。
该值不能等于startMonth 。
如果useDaylight为false,则忽略此值。
int endDay
endMode == DOW_IN_MONTH
endDay表示的月份中的日期endMonth上夏令时结束时,从1至28,30,或31,这取决于endMonth 。
endMode != DOW_IN_MONTH
endDay指示哪个endDayOfWeek在第一个月endMonth夏令时结束时上。
例如,和的1的值的endDayOfWeek的Calendar.SUNDAY表示的第一个星期日endMonth 。
同样,+2表示第二个星期日,-1表示最后一个星期日。
值为0是非法的。
如果useDaylight为false,则忽略该值。
int endDayOfWeek
Calendar.SUNDAY和Calendar.SATURDAY之间。
如果useDaylight为false或endMode == DAY_OF_MONTH ,则忽略此值。
int endTime
endTimeMode 。
如果useDaylight为false,则忽略此值。
int endTimeMode
WALL_TIME ,
STANDARD_TIME ,或
UTC_TIME 。
int startYear
int rawOffset
dstSavings 。
boolean useDaylight
byte[] monthLength
int startMode
DOM_MODE
DOW_IN_MONTH_MODE
DOW_GE_DOM_MODE
DOW_LE_DOM_MODE
startDay字段的解释。
如果useDaylight为false,则忽略此值。
int endMode
DOM_MODE
DOW_IN_MONTH_MODE
DOW_GE_DOM_MODE
DOW_LE_DOM_MODE
endDay字段的解释。
如果useDaylight为false,则忽略此值。
int dstSavings
如果useDaylight为false,则忽略该值。
int serialVersionOnStream
startMode , endMode和dstSavings 。
startTimeMode和endTimeMode 。
serialVersionOnStream被写入。
String ID
TimeZone 。
这是一个内部使用的编程标识符,用于从系统表中查找TimeZone对象,并将其映射到其本地化显示名称。
ID值在系统表中是唯一的,但可能不适用于动态创建的区域。
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
TreeMap实例(即反序列化它)。
private void writeObject(ObjectOutputStream s) throws IOException
TreeMap实例的状态保存到流中(即序列化它)。
IOException
Comparator<T> comparator
Comparator<T> reverseComparator
TreeMap<K,V> m
Object lo
Object hi
boolean fromStart
boolean toEnd
boolean loInclusive
boolean hiInclusive
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
TreeSet实例(即反序列化它)。
private void writeObject(ObjectOutputStream s) throws IOException
TreeSet实例的状态保存到流(即序列化它)。
null如果它服从其元素的自然顺序(对象),然后由该组的大小(元素的数量它包含)(INT),随后的所有元素(每个一个对象)按顺序(由集合的比较器确定,或者如果集合没有比较器,则通过元素的自然排序)。
IOException
String s
String flags
long mostSigBits
long leastSigBits
private void writeObject(ObjectOutputStream s) throws IOException
Vector实例的状态保存到流(即序列化它)。
该方法执行同步以确保序列化数据的一致性。
IOException
Object[] elementData
Vector中最后一个元素后面的任何数组元素都为空。
int elementCount
Vector对象中有效组件的数量。
组件elementData[0]至elementData[elementCount-1]是实际项目。
int capacityIncrement
Object[] items
int takeIndex
int putIndex
int count
ReentrantLock lock
Condition notEmpty
Condition notFull
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException - 如果找不到序列化对象的类
IOException - 如果发生I / O错误
private void writeObject(ObjectOutputStream s) throws IOException
ConcurrentHashMap实例的状态保存到流中(即将其序列化)。
IOException - 如果发生I / O错误
Object value
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException - 如果找不到序列化对象的类
IOException - 如果发生I / O错误
private void writeObject(ObjectOutputStream s) throws IOException
E )按照正确的顺序,后跟一个null
IOException - 如果发生I / O错误
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException - 如果无法找到序列化对象的类
IOException - 如果发生I / O错误
private void writeObject(ObjectOutputStream s) throws IOException
E )按照正确的顺序,后跟一个null
IOException - 如果发生I / O错误
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException - 如果无法找到序列化对象的类
IOException - 如果发生I / O错误
private void writeObject(ObjectOutputStream s) throws IOException
null 。
键值映射以按键顺序(由比较器确定,或按键“自然排序,如果没有比较器”)发出。
IOException - 如果发生I / O错误
Comparator<T> comparator
ConcurrentSkipListMap<K,V> m
Object lo
Object hi
boolean loInclusive
boolean hiInclusive
boolean isDescending
ConcurrentNavigableMap<K,V> m
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException - 如果找不到序列化对象的类
IOException - 如果发生I / O错误
private void writeObject(ObjectOutputStream s) throws IOException
IOException - 如果发生I / O错误
CopyOnWriteArrayList<E> al
CountedCompleter<T> completer
int pending
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException - 如果找不到序列化对象的类
IOException - 如果发生I / O错误
private void writeObject(ObjectOutputStream s) throws IOException
null
IOException - 如果发生I / O错误
int status
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException - 如果无法找到序列化对象的类
IOException - 如果发生I / O错误
private void writeObject(ObjectOutputStream s) throws IOException
Object )按正确的顺序,后跟一个null
IOException - 如果发生I / O错误
int capacity
ReentrantLock lock
Condition notEmpty
Condition notFull
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException - 如果无法找到序列化对象的类
IOException - 如果发生I / O错误
private void writeObject(ObjectOutputStream s) throws IOException
Object (int),其后是其所有元素(每个元素为
Object ),其顺序为正,
IOException - 如果发生I / O错误
int capacity
AtomicInteger count
ReentrantLock takeLock
Condition notEmpty
ReentrantLock putLock
Condition notFull
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException - 如果找不到序列化对象的类
IOException - 如果发生I / O错误
private void writeObject(ObjectOutputStream s) throws IOException
E )按照正确的顺序,后跟一个null
IOException - 如果发生I / O错误
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException - 如果无法找到序列化对象的类
IOException - 如果发生I / O错误
private void writeObject(ObjectOutputStream s) throws IOException
IOException - 如果发生I / O错误
ReentrantLock lock
Condition notEmpty
PriorityQueue<E> q
Object result
java.util.concurrent.Semaphore.Sync sync
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException - 如果找不到序列化对象的类
IOException - 如果发生I / O错误
private void writeObject(ObjectOutputStream s) throws IOException
IOException - 如果发生I / O错误
ReentrantLock qlock
java.util.concurrent.SynchronousQueue.WaitQueue waitingProducers
java.util.concurrent.SynchronousQueue.WaitQueue waitingConsumers
private void writeObject(ObjectOutputStream s) throws IOException
ThreadLocalRandom保存到流(即序列化它)。
IOException - 如果发生I / O错误
private Object readResolve()
current线程的
ThreadLocalRandom 。
boolean initialized
long rnd
int value
int value
int[] array
long value
long[] array
Object value
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException, InvalidObjectException
Object[] array
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
DoubleBinaryOperator function
long identity
private Object readResolve()
DoubleAccumulator对象。
double value
DoubleBinaryOperator function
long identity
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
private Object readResolve()
DoubleAdder对象。
double value
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
LongBinaryOperator function
long identity
private Object readResolve()
LongAccumulator对象。
long value
LongBinaryOperator function
long identity
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException - 永远
private Object writeReplace()
private Object readResolve()
LongAdder对象。
long value
long state
int state
java.util.concurrent.locks.ReentrantLock.Sync sync
ReentrantReadWriteLock.ReadLock readerLock
ReentrantReadWriteLock.WriteLock writerLock
java.util.concurrent.locks.ReentrantReadWriteLock.Sync sync
java.util.concurrent.locks.ReentrantReadWriteLock.Sync sync
java.util.concurrent.locks.ReentrantReadWriteLock.Sync sync
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
Level level
long sequenceNumber
String sourceClassName
String sourceMethodName
String message
int threadID
long millis
Throwable thrown
String loggerName
String resourceBundleName
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
String pattern
int flags
public void readExternal(ObjectInput is) throws IOException, ClassNotFoundException
DataFlavor 。
IOException - 如果发生I / O错误
ClassNotFoundException - 如果找不到正在恢复的对象的类。
public void writeExternal(ObjectOutput os) throws IOException
DataFlavor 。
IOException - 包括可能发生的任何I / O异常
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
ClassNotFoundException - 如果找不到正在恢复的对象的类。
IOException - 如果发生I / O错误
public void writeExternal(ObjectOutput out) throws IOException
IOException - 包括可能发生的任何I / O异常
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
NullPointerException - 如果s为空。
IOException
ClassNotFoundException
byte[] key
String algorithm
Node offendingNode
Node ,导致了解析错误,或
null 。
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
String attr
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
Object val
attribute.toString()
String op
boolean val
String attr
这个类的serialVersionUID的是-1081892073854801359L 。
private Object readResolve() throws InvalidObjectException
ImmutableDescriptor.EMPTY_DESCRIPTOR替换反序列化的空ImmutableDescriptor 。
InvalidObjectException - 如果读取对象具有无效字段。
String[] names
String.CASE_INSENSITIVE_ORDER 。
Object[] values
names数组中的相应元素相匹配。
StringValueExp classNameValue
StringValueExp返回所选MBean应该是实例的类的名称。
Object val
AttributeValueExp exp
String pattern
String attributeType
boolean isWrite
boolean isRead
boolean is
MBeanParameterInfo[] signature
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
首先调用方法defaultReadObject()来反序列化除了未以默认方式序列化的字段descriptor之外的对象。 然后调用方法read()读取一个字节,字段descriptor根据字节值的值进行反序列化:
readObject()被调用两次,获得的字段名称(一个String[] )和字段值(一个Object[]所述的) descriptor 。 然后使用两个获得的值来构造一个ImmutableDescriptor字段的实例descriptor ; descriptor的值通过调用方法readObject()直接获得。 如果获得的值为空,则字段descriptor设置为EMPTY_DESCRIPTOR ; descriptor设置为EMPTY_DESCRIPTOR StreamCorruptedException被抛出。 IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
该方法defaultWriteObject()被称为第一序列化对象以外的字段descriptor ,其被声明为瞬态。 字段descriptor序列化如下:
descriptor是类别ImmutableDescriptor的一个实例,则调用方法write(int val)来写入一个值为1的字节,然后方法writeObject(Object obj)被调用两次,将descriptor的字段名称和字段值分别descriptor化为String[]和Object[] ; write(int val)被调用来与所述值写入一字节0 ,则方法writeObject(Object obj)被称为序列化直接领域descriptor 。 IOException
String name
MBeanFeatureInfo.getName()而不是读取此字段,并且它们不会更改它。
String description
MBeanFeatureInfo.getDescription()而不是读取该字段,并且它们不会更改它。
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
MBeanInfo从ObjectInputStream 。
首先调用方法defaultReadObject()反序列化除了未以默认方式串行化的字段descriptor之外的对象。 然后调用方法read()来读取一个字节,字段descriptor根据字节值的值反序列化:
readObject()被调用两次,获得的字段名称(一个String[] )和字段值(一个Object[]所述的) descriptor 。 然后,两个获得的值用于为字段descriptor ImmutableDescriptor实例; descriptor的值通过调用方法readObject()直接获得。 如果获得的值为null,则字段descriptor设置为EMPTY_DESCRIPTOR ; descriptor设置为EMPTY_DESCRIPTOR 。 StreamCorruptedException被抛出。 IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
该方法defaultWriteObject()被称为第一序列化对象以外的字段descriptor ,其被声明为瞬态。 字段descriptor序列化如下:
descriptor是类的一个实例ImmutableDescriptor ,所述方法write(int val)被调用来写与值的字节1 ,则方法writeObject(Object obj)被调用两次来序列中的字段名称和的字段值descriptor ,分别作为String[]和Object[] ; write(int val)被调用来与所述值写入一字节0 ,则方法writeObject(Object obj)被称为序列化字段descriptor直接。 IOException
String description
String className
MBeanAttributeInfo[] attributes
MBeanOperationInfo[] operations
MBeanConstructorInfo[] constructors
MBeanNotificationInfo[] notifications
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
String[] types
String type
MBeanParameterInfo[] signature
int impact
INFO ,
ACTION ,
ACTION_INFO ,
UNKNOWN
String type
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
String actions
ObjectName objectName
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
MBeanServerPermission collectionPermission
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
Notification从ObjectInputStream 。
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
NumericValueExp从ObjectInputStream 。
private void writeObject(ObjectOutputStream out) throws IOException
NumericValueExp 序列化为ObjectOutputStream 。
IOException
Number val
这个类的serialVersionUID的是-4679739485102359104L 。
ObjectName name
String className
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
ObjectName从ObjectInputStream 。
jmx.serial.form不同于1.0 ):字符串“<域>:<属性> <野生>”,其中:
ObjectName ObjectName.getKeyPropertyListString()返回的属性列表 isPropertyPattern ,或是字符“ * ”如果isPropertyPattern和<属性>是空的,或者是“ ,* ”,如果isPropertyPattern和<属性>不为空。 ObjectName.ObjectName(String)构造函数来生成等效的ObjectName 。 jmx.serial.form是1.0 ):<domain> <propertyList> <propertyListString> <canonicalName> <pattern> <propertyPattern>,其中:
ObjectName Hashtable ,其中包含此ObjectName的所有对(键,值) String的属性列表的任何顺序表示(不是强制的规范表示) String包含这个ObjectName的规范名称的<canonicalName> true如果此ObjectName包含一个模式 true如果此ObjectName包含属性列表的模式 IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
jmx.serial.form不同于1.0 ):字符串“<域>:<属性> <野生>”,其中:
ObjectName ObjectName.getKeyPropertyListString()返回的属性列表 isPropertyPattern ,或是字符“ * ”,如果这isPropertyPattern和<属性>是空的,或者是“ ,* ”,如果isPropertyPattern和<属性>不为空。 ObjectName.ObjectName(String)构造函数来产生等效的ObjectName 。 jmx.serial.form是1.0 ):<domain> <propertyList> <propertyListString> <canonicalName> <pattern> <propertyPattern>,其中:
ObjectName Hashtable ,其中包含此ObjectName的所有对(键,值) String的属性列表的任何顺序表示(不是强制的规范表示) String含有这个ObjectName的规范名称的“ canonicalName ” true如果此ObjectName包含一个模式 true如果这个ObjectName包含属性列表中的模式 IOException
String className
RuntimeException runtimeException
RuntimeException runtimeException
String val
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException, UnsupportedOperationException
从给定的ObjectInput恢复这个MLet的内容。 并不是所有的实现都支持这种方法。 那些不丢UnsupportedOperationException 。 子类可以覆盖此方法来支持它或更改读取数据的格式。
未指定读取数据的格式,但是如果一个实现支持MLet.readExternal(java.io.ObjectInput),那么它也必须支持MLet.writeExternal(java.io.ObjectOutput) ,这样一来,由后者写的是可以读取的。
IOException - 阅读时是否出现问题。
ClassNotFoundException - 如果找不到要恢复的对象的类。
UnsupportedOperationException - 如果此实现不支持此操作。
public void writeExternal(ObjectOutput out) throws IOException, UnsupportedOperationException
将此MLet的内容保存到给定的ObjectOutput 。 并不是所有的实现都支持这种方法。 那些不丢UnsupportedOperationException的 。 子类可以覆盖此方法来支持它或更改写入的数据的格式。
写入数据的格式没有指定,但是如果一个实现支持MLet.writeExternal(java.io.ObjectOutput),那么它也必须支持MLet.readExternal(java.io.ObjectInput) ,使得前者所写的内容可以被后者读取。
IOException - 写作时发生问题。
UnsupportedOperationException - 如果此实现不支持此操作。
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException, UnsupportedOperationException
从给定的ObjectInput恢复这个MLet的内容。 并不是所有的实现都支持这种方法。 那些不抛出UnsupportedOperationException 。 子类可以覆盖此方法来支持它或更改读取数据的格式。
未指定读取数据的格式,但是如果一个实现支持MLet.readExternal(java.io.ObjectInput),那么它也必须支持MLet.writeExternal(java.io.ObjectOutput) ,这样一来,由后者写的是可以读取的。
IOException - 阅读时发生问题。
ClassNotFoundException - 如果找不到正在恢复的对象的类。
UnsupportedOperationException - 如果此实现不支持此操作。
public void writeExternal(ObjectOutput out) throws IOException, UnsupportedOperationException
将此MLet的内容保存到给定的ObjectOutput 。 并不是所有的实现都支持这种方法。 那些不丢UnsupportedOperationException 。 子类可以覆盖此方法来支持它或更改写入的数据的格式。
没有指定书面数据的格式,但如果一个实现支持MLet.writeExternal(java.io.ObjectOutput),那么它也必须支持MLet.readExternal(java.io.ObjectInput) ,这样一来,前者所写的内容就可以被后者读取。
IOException - 如果在写作时发生问题。
UnsupportedOperationException - 如果此实现不支持此操作。
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
DescriptorSupport从ObjectInputStream 。
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
异常 exception
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
Descriptor attrDescriptor
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
Descriptor consDescriptor
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
ModelMBeanAttributeInfo[] modelMBeanAttributes
MBeanConstructorInfo[] modelMBeanConstructors
Descriptor modelMBeanDescriptor
MBeanNotificationInfo[] modelMBeanNotifications
MBeanOperationInfo[] modelMBeanOperations
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
Descriptor notificationDescriptor
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
Descriptor operationDescriptor
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
ObjectName observedObject
String observedAttribute
Object derivedGauge
Object trigger
private Object readResolve() throws ObjectStreamException
boolean字段primitiveArray 。
为了保证与此类的先前版本的互操作性,即使ArrayType实例描述了一个原始类型数组,新的串行格式也必须继续引用原始的包装类型。
所以,当primitiveArray为true的className , typeName和description序列化字段被转换成原始类型前的反序列化ArrayType实例返回给调用者。
所述elementType字段总是返回SimpleType相应于原语包装类型阵列的原始类型。
因此,以下可序列化字段反序列化如下:
primitiveArray是true则className字段通过将数组的组件原始包装器类型替换为相应数组的组件基本类型来反序列化,例如"[[Ljava.lang.Integer;"将反序列化为"[[I" 。 primitiveArray是true的typeName字段是由相应的数组的部件基本类型替换阵列的部件基本类型的包装类型反序列化,例如"[[Ljava.lang.Integer;"将被反序列化"[[I" 。 primitiveArray是true则description字段通过将数组的组件原始包装器类型替换为相应数组的组件基元类型来反序列化,例如"2-dimension array of java.lang.Integer"将反序列化为"2-dimension array of int" 。 ObjectStreamException
private Object writeReplace() throws ObjectStreamException
boolean字段primitiveArray 。
为了保证与此类的先前版本的互操作性,即使ArrayType实例描述了一个基本类型数组,新的串行表单也必须继续引用原始的包装器类型。
所以,当primitiveArray为true的className , typeName和description序列化字段被序列化之前转换成包装类ArrayType实例被写入流。
所述elementType字段总是返回SimpleType相应于原语包装类型阵列的原始类型。
因此,以下可序列化字段序列化如下:
primitiveArray是true那么className字段是通过将数组的组件基元类型替换为相应的数组的组件原始包装类型来进行序列化的,例如"[[I"将被序列化为"[[Ljava.lang.Integer;" 。 primitiveArray是true那么typeName字段是通过将数组的组件基元类型替换为相应数组的组件原始包装器类型来进行序列化的,例如"[[I"将被序列化为"[[Ljava.lang.Integer;" 。 primitiveArray是true那么description字段是通过将数组的组件基元类型替换为相应数组的组件原始包装类型来进行序列化的,例如"2-dimension array of int"将被序列化为"2-dimension array of java.lang.Integer" 。 ObjectStreamException
SortedMap<K,V> contents
SortedMap用于更快地检索元素。
CompositeType compositeType
private Object readResolve()
OpenType<T> openType
Object defaultValue
Set<E> legalValues
Set是不可修改的
Comparable<T> minValue
Comparable<T> maxValue
private Object readResolve()
OpenType<T> returnOpenType
OpenMBeanOperationInfo实例描述的操作返回的值的打开类型
private Object readResolve()
OpenType<T> openType
Object defaultValue
Set<E> legalValues
Set是不可修改的
Comparable<T> minValue
Comparable<T> maxValue
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
OpenType从ObjectInputStream 。
public Object readResolve() throws ObjectStreamException
ObjectInputStream读取的对象。
ObjectStreamException - 如果读取对象无法解析。
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
TabularDataSupport从ObjectInputStream 。
Map<K,V> dataMap
HashMap
TabularType tabularType
CompositeType rowType
List<E> indexNames
ArrayList
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
List<E> newRoleValue
List<E> oldRoleValue
String relationId
ObjectName relationObjName
String relationTypeName
String roleName
List<E> unregisterMBeanList
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
RelationTypeSupport从ObjectInputStream 。
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
Role从ObjectInputStream 。
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
RoleInfo从ObjectInputStream 。
private void writeObject(ObjectOutputStream out) throws IOException
IOException
String description
boolean isReadable
true如果角色是可读的
boolean isWritable
true如果角色是可写的
int maxDegree
int minDegree
String name
String referencedMBeanClassName
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
RoleResult由ObjectInputStream 。
private void writeObject(ObjectOutputStream out) throws IOException
IOException
RoleList roleList
RoleUnresolvedList unresolvedRoleList
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
RoleUnresolved从ObjectInputStream 。
private void writeObject(ObjectOutputStream out) throws IOException
IOException
String connectionId
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
String name
JMXPrincipal对象表示的身份的JMX Remote API名称。
JMXPrincipal.getName()
Throwable cause
private void readObject(ObjectInputStream inputStream) throws IOException, ClassNotFoundException
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
long earliestSequenceNumber
long nextSequenceNumber
TargetedNotification[] targetedNotifications
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
Notification notif
Integer id
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ObjectInputStream读取RMIConnector字段。
调用s.defaultReadObject() ,然后初始化所有需要初始化的瞬态变量。
InvalidObjectException - 如果没有设置
rmiServer存根或
jmxServiceURL 。
IOException
ClassNotFoundException
RMIConnector.RMIConnector(JMXServiceURL,Map) ,
RMIConnector.RMIConnector(RMIServer,Map)
private void writeObject(ObjectOutputStream s) throws IOException
ObjectOutputStream 。
如果需要,将基础的RMIServer存根连接到ORB,然后再对其进行序列化。 这是使用提供给构造函数的环境映射(如果有的话)完成的,如javax.management.remote.rmi中所述 。
这个方法然后调用s.defaultWriteObject() 。 通常情况下, 为RMIServer为空,如果该对象用的JMXServiceURL构造,并且如果此目的通过一种的RMIServer存根构成JMXServiceURL为空。
请注意,环境映射不是序列化的,因为它包含的对象被假定为仅在本地环境(类加载器,ORB等)上具有上下文和相关性。
在RMIConnector被反序列化之后,假设用户将调用RMIConnector.connect(Map) ,提供一个新的Map,它可以包含与新的本地环境上下文相关的值。
由于在串行化之前需要连接到ORB,并且由于要连接的ORB是这些上下文参数之一,因此不推荐重新序列化一个刚刚解串的对象 - 因为已解除序列化的对象没有映射。 因此,当需要RMIConnector对象来串行化或传输到远程应用程序时,建议通过调用RMIConnectorServer.toJMXConnector(Map)获取一个新的RMIConnector存根。
InvalidObjectException - 如果没有设置
rmiServer存根或
jmxServiceURL 。
IOException
RMIConnector.RMIConnector(JMXServiceURL,Map) ,
RMIConnector.RMIConnector(RMIServer,Map)
RMIServer rmiServer
JMXServiceURL jmxServiceURL
Integer notificationID
byte[] buf
Object boundObj
Name remainingNewName
该字段初始化为null。 不应该直接操作:它应该使用getRemainingName()和setRemainingName()进行访问和更新。
Hashtable<K,V> environment
该字段初始化为null。 不应该直接操作:它应该使用getEnvironment()和setEnvironment()进行访问和更新。
Name altName
altNameCtx 。
它是一个复合名称。
如果为空,则不指定名称。
有关如何使用此方法的详细信息,请参阅javax.naming.spi.ObjectFactory.getObjectInstance方法。
该字段初始化为null。 不应该直接操作:应该使用getAltName()和setAltName()来访问和更新它。
Context altNameCtx
altName的上下文。
如果为空,那么默认的初始上下文是隐含的。
有关如何使用此方法的详细信息,请参阅javax.naming.spi.ObjectFactory.getObjectInstance方法。
该字段初始化为null。 它不应该直接操作:它应该使用getAltNameCtx()和setAltNameCtx()进行访问和更新。
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
Name linkResolvedName
Object linkResolvedObj
Name linkRemainingName
String linkExplanation
String name
String className
String fullName
boolean isRel
Name resolvedName
Object resolvedObj
Name remainingName
Throwable rootException
该领域早于通用异常链接工具。 NamingException.initCause(Throwable)和NamingException.getCause()方法现在是访问此信息的首选方法。
String addrType
String contents
ModificationItem[] unexecs
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String attrID
boolean ordered
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
boolean ignoreCase
int mod_op
Attribute attr
int searchScope
int timeLimit
boolean derefLink
boolean returnObj
long countLimit
String[] attributesToReturn
Attributes attrs
NamingException exception
String id
boolean criticality
byte[] value
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int resultSize
byte[] cookie
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int resultCode
String badAttrId
UnsolicitedNotification notice
String name
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String myClassName
AttributeSet attrset
AttributeSet attrset
Date value
java.util.Date 。
protected Object readResolve() throws ObjectStreamException
ObjectStreamException - 如果流不能被反序列化
InvalidObjectException - 如果枚举值表为null,则枚举值的整数值与枚举值表中的元素不对应,或枚举值表中的相应元素为空。
(注: InvalidObjectException是的子类ObjectStreamException ,其中readResolve()声明扔。)
int value
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int value
int crossFeedResolution
int feedResolution
int[][] members
int x
int y
URI uri
int x
int y
int w
int h
int units
MediaSizeName mediaName
PrintJobAttributeSet attributes
int reason
PrintServiceAttributeSet attributes
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream stream) throws IOException
IOException
String fileName
int lineNumber
int columnNumber
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
IOException
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
IOException
LinkedList<E> elements
Subject this$0
Locale locale
String prompt
boolean echoOn
char[] inputPassword
int messageType
String message
Callback callback
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
KerberosPrincipal principal
int versionNum
javax.security.auth.kerberos.KeyImpl key
KeyImpl通过写出加密密钥的ASN1编码字节来进行序列化。
ASN1编码在RFC4120中定义,如下所示:
EncryptionKey ::= SEQUENCE {
keytype [0] Int32 -- actually encryption type --,
keyvalue [1] OCTET STRING
}
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
KerberosPrincipal是按照RFC4120的5.2.2节的规定,
写出它们的DER编码形式的PrincipalName和领域进行
序列化的 。
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
byte[] asn1Encoding
javax.security.auth.kerberos.KeyImpl sessionKey
KeyImpl通过写出加密密钥的ASN1编码字节来进行序列化。
ASN1编码在RFC4120中定义,如下所示:
EncryptionKey ::= SEQUENCE {
keytype [0] Int32 -- actually encryption type --,
keyvalue [1] OCTET STRING
}
boolean[] flags
Date authTime
Date startTime
Date endTime
Date renewTill
KerberosPrincipal client
KerberosPrincipal server
InetAddress[] clientAddresses
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream ois) throws IOException
KeyImpl通过写出加密密钥的ASN1编码字节来进行序列化。
ASN1编码在RFC4120中定义,如下所示:EncryptionKey :: = SEQUENCE {keytype [0] Int32 - 实际加密类型 - ,keyvalue [1] OCTET STRING}
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String actions
private void readObject(ObjectInputStream s) throws IOException, NotActiveException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
X500Principal通过写出其DER编码形式(
getEncoded的值
getEncoded化)进行序列化。
IOException
Throwable _exception
SQLException ex
SQLException当驱动程序发生错误并且池连接不再可用时,驱动程序将抛出该应用程序。
SQLException exception
PreparedStatement statement
InputStream binaryStream
InputStream对象将由方法
getBinaryStream返回,该方法在
ResultSet界面中指定。
InputStream unicodeStream
InputStream对象将由方法
getUnicodeStream返回,该方法在
ResultSet接口中指定。
InputStream asciiStream
InputStream对象将由方法
getAsciiStream返回,该方法在
ResultSet接口中指定。
Reader charStream
Reader对象将由方法
getCharacterStream返回,该方法在
ResultSet接口中指定。
String command
execute时,将发送到DBMS执行的查询。
String URL
DriverManager.getConnection当DriverManager用于获取连接时。
JDBC URL标识用于进行连接的驱动程序。 该URL可以在驱动程序供应商提供的文档中找到。
String dataSource
DataSource对象。
int rowSetType
RowSet对象。
它必须是下列之一ResultSet常数: TYPE_FORWARD_ONLY , TYPE_SCROLL_INSENSITIVE ,或TYPE_SCROLL_SENSITIVE 。
boolean showDeleted
boolean指示删除的行是否在此JDBC
RowSet对象中可见。
int queryTimeout
RowSet对象连接到其数据源,即它正在填充数据时,并且正在将数据写回数据源时。
int maxRows
int maxFieldSize
int concurrency
RowSet对象的并发性。
它必须是以下ResultSet ResultSet之一: CONCUR_READ_ONLY或CONCUR_UPDATABLE 。
boolean readOnly
boolean指示此JDBC RowSet对象是否为只读。
true表示它是只读的;
false它是可写的。
boolean escapeProcessing
boolean指出读者对于这个JDBC RowSet对象是否应该执行转义处理。
true表示逃生处理已打开;
false它不是。
默认值为true 。
int isolation
RowSet对象的连接的隔离级别。
它必须是下列之一Connection常数: TRANSACTION_NONE , TRANSACTION_READ_UNCOMMITTED , TRANSACTION_READ_COMMITTED , TRANSACTION_REPEATABLE_READ或TRANSACTION_SERIALIZABLE 。
int fetchDir
RowSet对象的数据的RowSet 。
以下ResultSet常数是可能的值: FETCH_FORWARD , FETCH_REVERSE , FETCH_UNKNOWN 。
此时未使用
int fetchSize
RowSet对象中预期的行数。
此时未使用
Map<K,V> map
java.util.Map对象包含将SQL类型名称映射到Java编程语言中的用于定义用户定义类型的自定义映射的类的条目。
Vector<E> listeners
Vector对象,其中包含已注册到此
RowSet对象的
RowSet列表。
Hashtable<K,V> params
Vector对象,保存为此
RowSet对象的当前命令设置的参数。
int colCount
RowSetMetaDataImpl对象的
RowSet对象中的列数。
javax.sql.rowset.RowSetMetaDataImpl.ColInfo[] colInfo
ColInfo用来存储有关在每列信息的对象RowSet指此对象RowSetMetaDataImpl被创建的对象。
该数组中的第一个ColInfo对象包含有关ColInfo对象中第一列的RowSet ,第二个元素包含有关第二列的信息,依此类推。
RowSetWarning rwarning
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
SerialArray从一个流恢复SerialArray的状态。
private void writeObject(ObjectOutputStream s) throws IOException, ClassNotFoundException
SerialArray到流。
Object[] elements
Object在表示在SQL中的元素的Java编程语言
ARRAY值。
int baseType
SerialArray对象中的元素的SQL类型。
该类型表示为类别java.sql.Types 。
String baseTypeName
SerialArray对象表示的SQL
ARRAY值中的元素使用的类型名称。
int len
SerialArray对象中的元素数,也是此
SerialArray对象表示的SQL
ARRAY值中的元素数。
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException, ClassNotFoundException
byte[] buf
SerialBlob对象的值。
Blob blob
SerialBlob对象所基于的
Blob对象的内部表示。
long len
SerialBlob对象的字节数组中的字节数。
long origLen
SerialBlob对象的字节数组当它首次建立时的原始字节数。
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException, ClassNotFoundException
char[] buf
SerialClob对象表示的SQL
CLOB值的数据的序列化字符数组。
Clob clob
long len
SerialClob对象的内部字符数字的长度。
long origLen
SerialClob对象的内部字符数字的原始长度。
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
SerialJavaObject从一个流恢复SerialJavaObject的状态。
private void writeObject(ObjectOutputStream s) throws IOException
SerialJavaObject到流。
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException, ClassNotFoundException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
SerialStruct从一个流恢复SerialStruct的状态。
private void writeObject(ObjectOutputStream s) throws IOException, ClassNotFoundException
SerialStruct到流。
SyncResolver syncResolver
javax.sql.rowset.spi.SyncResolver的这个
SyncProviderException对象将在其
getSyncResolver方法被调用时返回。
int errorCode
QName name
类<T> declaredType
类<T> scope
JAXBElement.GlobalScope用于全局xml元素声明。
- 本地元素声明的范围设置为包含xml元素声明的复杂类型定义的Java类表示。
Object value
boolean nil
Throwable cause
null如果这个异常不是由另一个throwable引起的,或者引起的引用是未知的。
Throwable cause
Throwable cause
Throwable cause
URIReference uriReference
Throwable cause
Throwable cause
异常 exception
异常表示错误。
Throwable cause
异常 nested
SourceLocator locator
Throwable containedException
异常 exception
异常为
TransformerFactoryConfigurationError 。
Object value
int statusCode
SOAPFault fault
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException - 抛出
ObjectInputStream
ClassNotFoundException - 抛出
ObjectInputStream
private void writeObject(ObjectOutputStream out) throws IOException
IOException - 抛出
ObjectOutputStream
private void readObject(ObjectInputStream s) throws IOException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException
IOException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
NameComponent[] binding_name
BindingType binding_type
int __value
short code
short code
short code
异常 exception
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.