int errorCode
int errorOffset
Throwable causedBy
byte[] bdata
int id
boolean consumed
protected Object readResolve() throws ObjectStreamException
ObjectStreamException
char keyChar
int keyCode
int modifiers
boolean onKeyRelease
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException, java.awt.HeadlessException
ClassNotFoundException
IOException
java.awt.HeadlessException
private void writeObject(ObjectOutputStream arg0) throws IOException
IOException
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream arg0) throws IOException
IOException
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException, java.awt.HeadlessException
ClassNotFoundException
IOException
java.awt.HeadlessException
private void writeObject(ObjectOutputStream arg0) throws IOException
IOException
String label
boolean state
java.awt.CheckboxGroup group
int checkboxSerializedDataVersion
java.awt.Checkbox selectedCheckbox
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream arg0) throws IOException
IOException
boolean state
int checkboxMenuItemSerializedDataVersion
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException, java.awt.HeadlessException
ClassNotFoundException
IOException
java.awt.HeadlessException
private void writeObject(ObjectOutputStream arg0) throws IOException
IOException
int value
float[] frgbvalue
float[] fvalue
float falpha
java.awt.color.ColorSpace cs
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
ObjectInputStream
and if it isn't
null
adds a listener to receive a variety
of events fired by the component.
Unrecognized keys or values will be ignored.ClassNotFoundException
IOException
Component.writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
null
terminated sequence of
0 or more pairs; the pair consists of a String
and an Object
; the String
indicates
the type of object and is one of the following (as of 1.4):
componentListenerK
indicating an
ComponentListener
object;
focusListenerK
indicating an
FocusListener
object;
keyListenerK
indicating an
KeyListener
object;
mouseListenerK
indicating an
MouseListener
object;
mouseMotionListenerK
indicating an
MouseMotionListener
object;
inputMethodListenerK
indicating an
InputMethodListener
object;
hierarchyListenerK
indicating an
HierarchyListener
object;
hierarchyBoundsListenerK
indicating an
HierarchyBoundsListener
object;
mouseWheelListenerK
indicating an
MouseWheelListener
object, an optional ComponentOrientation
(after inputMethodListener
, as of 1.2)IOException
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener)
,
Component.componentListenerK
,
Component.focusListenerK
,
Component.keyListenerK
,
Component.mouseListenerK
,
Component.mouseMotionListenerK
,
Component.inputMethodListenerK
,
Component.hierarchyListenerK
,
Component.hierarchyBoundsListenerK
,
Component.mouseWheelListenerK
,
Component.readObject(ObjectInputStream)
int x
Component.getLocation()
int y
Component.getLocation()
int width
Component.getSize()
int height
Component.getSize()
java.awt.Color foreground
foreground
can be null
.java.awt.Color background
background
can be null
.java.awt.Font font
font
can be null
.java.awt.Font peerFont
null
if no peer exists.)java.awt.Cursor cursor
null
.Locale locale
boolean ignoreRepaint
Component.setIgnoreRepaint(boolean)
,
Component.getIgnoreRepaint()
boolean visible
boolean displayble
boolean enabled
boolean valid
Vector<E> popups
#add
String name
null
.Component.getName()
,
Component.setName(String)
boolean nameExplicitlySet
nameExplicitlySet
will
be false if the name has not been set and
true if it has.Component.getName()
,
Component.setName(String)
boolean focusable
Component.setFocusable(boolean)
,
Component.isFocusable()
int isFocusTraversableOverridden
Set<E>[] focusTraversalKeys
boolean focusTraversalKeysEnabled
Component.setFocusTraversalKeysEnabled(boolean)
,
Component.getFocusTraversalKeysEnabled()
java.awt.Dimension minSize
boolean minSizeSet
java.awt.Dimension prefSize
boolean prefSizeSet
java.awt.Dimension maxSize
boolean maxSizeSet
boolean newEventsOnly
newEventsOnly
will be true if the event is
one of the event types enabled for the component.
It will then allow for normal processing to
continue. If it is false the event is passed
to the component's parent and up the ancestor
tree until the event has been consumed.long eventMask
eventMask
is ONLY set by subclasses via
enableEvents
.
The mask should NOT be set when listeners are registered
so that we can distinguish the difference between when
listeners request events and subclasses request them.
One bit is used to indicate whether input methods are
enabled; this bit is set by enableInputMethods
and is
on by default.Component.enableInputMethods(boolean)
,
AWTEvent
java.beans.PropertyChangeSupport changeSupport
PropertyChangeListeners
have been registered,
the changeSupport
field describes them.boolean isPacked
boolean autoFocusTransferOnDisposal
int componentSerializedDataVersion
int orientation
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
Container
from the specified
ObjectInputStream
.
private void writeObject(ObjectOutputStream s) throws IOException
Container
to the specified
ObjectOutputStream
.
null
is written.null
terminated sequence of 0 or more pairs;
the pair consists of a String
and Object
;
the String
indicates the type of object and
is one of the following:
containerListenerK
indicating an
ContainerListener
object;
the Container
's FocusTraversalPolicy
,
or null
IOException
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener)
,
Component.containerListenerK
,
Container.readObject(ObjectInputStream)
Component[] component
int containerSerializedDataVersion
java.awt.LightweightDispatcher dispatcher
boolean focusCycleRoot
boolean focusTraversalPolicyProvider
LayoutManager layoutMgr
Dimension maxSize
int ncomponents
int FORWARD_TRAVERSAL
int BACKWARD_TRAVERSAL
boolean implicitDownCycleTraversal
int type
String name
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException, java.awt.HeadlessException
ClassNotFoundException
IOException
java.awt.HeadlessException
boolean resizable
boolean undecorated
boolean modal
java.awt.Dialog.ModalityType modalityType
String title
int width
int height
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
int mode
String dir
String file
File[] files
boolean multipleMode
FilenameFilter filter
private void readObject(ObjectInputStream arg0) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
int align
int newAlign
int hgap
int vgap
boolean alignOnBaseline
int serialVersionOnStream
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream arg0) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
java.awt.Font font
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException, java.awt.HeadlessException
ClassNotFoundException
IOException
java.awt.HeadlessException
private void writeObject(ObjectOutputStream arg0) throws IOException
IOException
java.awt.Rectangle maximizedBounds
String title
java.awt.MenuBar menuBar
boolean resizable
boolean undecorated
boolean mbManagement
int state
Vector<E> ownedWindows
int frameSerializedDataVersion
int gridx
int gridy
int gridwidth
int gridheight
double weightx
double weighty
int anchor
int fill
java.awt.Insets insets
int ipadx
int ipady
int tempX
int tempY
int tempWidth
int tempHeight
int minWidth
int minHeight
Hashtable<K,V> comptable
java.awt.GridBagConstraints defaultConstraints
java.awt.GridBagLayoutInfo layoutInfo
int[] columnWidths
int[] rowHeights
double[] columnWeights
double[] rowWeights
Component componentAdjusting
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
int left
int bottom
int right
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException, java.awt.HeadlessException
ClassNotFoundException
IOException
java.awt.HeadlessException
String text
int alignment
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException, java.awt.HeadlessException
ClassNotFoundException
IOException
java.awt.HeadlessException
private void writeObject(ObjectOutputStream arg0) throws IOException
IOException
java.awt.List parent
int indexInParent
Component target
java.awt.MediaEntry head
private void readObject(ObjectInputStream arg0) throws IOException, ClassNotFoundException, java.awt.HeadlessException
IOException
ClassNotFoundException
java.awt.HeadlessException
private void writeObject(ObjectOutputStream arg0) throws IOException
IOException
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException, java.awt.HeadlessException
ClassNotFoundException
IOException
java.awt.HeadlessException
private void writeObject(ObjectOutputStream arg0) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException, java.awt.HeadlessException
ClassNotFoundException
IOException
java.awt.HeadlessException
java.awt.Font font
String name
boolean nameExplicitlySet
boolean newEventsOnly
javax.accessibility.AccessibleContext accessibleContext
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException, java.awt.HeadlessException
ClassNotFoundException
IOException
java.awt.HeadlessException
private void writeObject(ObjectOutputStream arg0) throws IOException
IOException
int key
boolean usesShift
int x
int y
int npoints
int[] xpoints
int[] ypoints
java.awt.Rectangle bounds
int x
int y
int width
int height
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException, java.awt.HeadlessException
ClassNotFoundException
IOException
java.awt.HeadlessException
private void writeObject(ObjectOutputStream arg0) throws IOException
IOException
int value
int maximum
int minimum
int visibleAmount
int orientation
int lineIncrement
int pageIncrement
int scrollbarSerializedDataVersion
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException, java.awt.HeadlessException
ClassNotFoundException
IOException
java.awt.HeadlessException
private void writeObject(ObjectOutputStream arg0) throws IOException
IOException
int scrollbarDisplayPolicy
java.awt.ScrollPaneAdjustable vAdjustable
java.awt.ScrollPaneAdjustable hAdjustable
boolean wheelScrollingEnabled
java.awt.ScrollPane sp
int orientation
int value
int minimum
int maximum
int visibleAmount
int unitIncrement
int blockIncrement
AdjustmentListener adjustmentListener
private Object readResolve()
private Object writeReplace() throws ObjectStreamException
ObjectStreamException
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException, java.awt.HeadlessException
ClassNotFoundException
IOException
java.awt.HeadlessException
int rows
int columns
int scrollbarVisibility
int textAreaSerializedDataVersion
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException, java.awt.HeadlessException
ClassNotFoundException
IOException
java.awt.HeadlessException
private void writeObject(ObjectOutputStream arg0) throws IOException
IOException
String text
boolean editable
int selectionStart
int selectionEnd
boolean backgroundSetByClientCode
int textComponentSerializedDataVersion
boolean checkForEnableIM
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException, java.awt.HeadlessException
ClassNotFoundException
IOException
java.awt.HeadlessException
private void writeObject(ObjectOutputStream arg0) throws IOException
IOException
int columns
char echoChar
int textFieldSerializedDataVersion
private void readObject(ObjectInputStream arg0) throws ClassNotFoundException, IOException, java.awt.HeadlessException
ClassNotFoundException
IOException
java.awt.HeadlessException
private void writeObject(ObjectOutputStream arg0) throws IOException
IOException
String warningString
boolean syncLWRequests
int state
boolean alwaysOnTop
java.awt.Dialog.ModalExclusionType modalExclusionType
java.awt.FocusManager focusMgr
boolean focusableWindowState
boolean autoRequestFocus
float opacity
java.awt.Shape shape
java.awt.Window.Type type
int windowSerializedDataVersion
boolean locationByPlatform
String actionCommand
ActionEvent.getActionCommand()
long when
ActionEvent.getWhen()
int modifiers
ActionEvent.getModifiers()
java.awt.Adjustable adjustable
AdjustmentEvent.getAdjustable()
int value
value
will contain the new value of the
adjustable object. This value will always be in a
range associated adjustable object.AdjustmentEvent.getValue()
int adjustmentType
adjustmentType
describes how the adjustable
object value has changed.
This value can be increased/decreased by a block or unit amount
where the block is associated with page increments/decrements,
and a unit is associated with line increments/decrements.AdjustmentEvent.getAdjustmentType()
boolean isAdjusting
isAdjusting
is true if the event is one
of the series of multiple adjustment events.AdjustmentEvent.getValueIsAdjusting()
Component child
ContainerEvent.getChild()
boolean temporary
FocusEvent.isTemporary()
long when
InputEvent.getWhen()
int modifiers
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException
when
field if it is not present in the
object input stream. In that case, the field will be initialized by
invoking EventQueue.getMostRecentEventTime()
.ClassNotFoundException
IOException
long when
InputMethodEvent.getWhen()
Runnable runnable
Object notifier
boolean catchExceptions
Exception exception
Throwable throwable
long when
InvocationEvent.getWhen()
Object item
ItemEvent.getItem()
int stateChange
stateChange
indicates whether the item
was selected or deselected.ItemEvent.getStateChange()
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
boolean isProxyActive
int keyCode
KeyEvent.getKeyCode()
,
KeyEvent.setKeyCode(int)
char keyChar
keyChar
is a valid unicode character
that is fired by a key or a key combination on
a keyboard.KeyEvent.getKeyChar()
,
KeyEvent.setKeyChar(char)
int keyLocation
KEY_LOCATION_UNKNOWN
,
KEY_LOCATION_STANDARD
, KEY_LOCATION_LEFT
,
KEY_LOCATION_RIGHT
, and KEY_LOCATION_NUMPAD
.KeyEvent.getKeyLocation()
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
int x
MouseEvent.getX()
int y
MouseEvent.getY()
int xAbs
int yAbs
int clickCount
MOUSE_CLICKED
,
MOUSE_PRESSED
and
MOUSE_RELEASED
.
For the above, the clickCount
will be at least 1.
For all other events the count will be 0.MouseEvent.getClickCount().
int button
NOBUTTON
,
BUTTON1
,
BUTTON2
or
BUTTON3
.MouseEvent.getButton().
boolean popupTrigger
popupTrigger
= false
,
no popup menu should appear. If it is true
then a popup menu should appear.PopupMenu
,
MouseEvent.isPopupTrigger()
int scrollType
MouseWheelEvent.getScrollType()
int scrollAmount
int wheelRotation
MouseWheelEvent.getWheelRotation()
double preciseWheelRotation
java.awt.Rectangle updateRect
Rectangle
,
PaintEvent.setUpdateRect(Rectangle)
,
PaintEvent.getUpdateRect()
int oldState
int newState
private void writeObject(ObjectOutputStream arg0) throws IOException
IOException
int key
int mask
java.awt.font.NumericShaper.Range shapingRange
protected Object readResolve() throws InvalidObjectException
InvalidObjectException
- if the object to resolve is not
an instance of Attribute
private void writeObject(ObjectOutputStream arg0) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
private Object readResolve() throws ObjectStreamException
ObjectStreamException
java.awt.geom.AffineTransform transform
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String path
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
int bytesTransferred
String classname
int length
boolean eof
String actions
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
InvalidObjectException
- if the object is invalid or has a cause that is not
an IOException
IOException
ClassNotFoundException
Exception detail
This field predates the general-purpose exception chaining facility.
The Throwable.getCause()
method is now the preferred means of
obtaining this information.
boolean value
byte value
Byte
.char value
Character
.Object mt
sequence of the fields in this class.
Object ancestors
sequence of the fields in this class.
int state_and_access
sequence of the fields in this class.
Object impls_or_link_next
sequence of the fields in this class.
Object cpool_data
sequence of the fields in this class.
Object this_class
sequence of the fields in this class.
int super_and_shortModelIndex
sequence of the fields in this class.
ClassLoader loader
sequence of the fields in this class.
Object interfaces
sequence of the fields in this class.
Object fields
sequence of the fields in this class.
Object methods
sequence of the fields in this class.
Object refs
sequence of the fields in this class.
Class<T> elementOrHostClass
sequence of the fields in this class.
int layout
sequence of the fields in this class.
int slot_17
sequence of the fields in this class.
int slot_18
sequence of the fields in this class.
Class<T> arrayOfClass
sequence of the fields in this class.
int sourceFileIndex
sequence of the fields in this class.
int[] innerClasses_
NOTE:Do not directly access this field in Java.
NOTE:This field is directly accessed by native code. Do not change the
sequence of the fields in this class.
Object detailErrorMsgOrPendingException
NOTE:Do not directly access this field in Java.
NOTE:This field is directly accessed by native code. Do not change the
sequence of the fields in this class.
SoftReference<T> cache
Object extra
ProtectionDomain protectionDomain
Object unused2
int genericTypeSignatureIndex
Throwable ex
double value
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObjectNoData() throws ObjectStreamException
ObjectStreamException
String name
Enum.toString()
method rather than
accessing this field.int ordinal
Throwable exception
float value
int value
Integer
.long value
Long
.short value
Short
.private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int count
boolean shared
char[] value
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
StringBuilder
instance to a stream
(that is, serialize it).int
), followed by the characters in the
string builder (char[]
). The length of the
char
array may be greater than the number of
characters currently stored in the string builder, in which
case extra characters are ignored.IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
Throwable
from a stream, enforcing
well-formedness constraints on fields. Null entries and
self-pointers are not allowed in the list of suppressedExceptions
. Null entries are not allowed for stack
trace elements. A null stack trace in the serial form results
in a zero-length stack element array. A single-element stack
trace whose entry is equal to new StackTraceElement("",
"", null, Integer.MIN_VALUE)
results in a null
stackTrace
field.
Note that there are no constraints on the value the cause
field can hold; both null
and this
are
valid values for the field.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
Throwable
object to a stream.
A null
stack trace field is represented in the serial
form as a one-element array whose element is equal to new StackTraceElement("", "", null, Integer.MIN_VALUE)
.IOException
String detailMessage
FileNotFoundException
, this contains the name of
the file that could not be found.Throwable cause
StackTraceElement[] stackTrace
Throwable.getStackTrace()
.
The field is initialized to a zero-length array. A null
value of this field indicates subsequent calls to Throwable.setStackTrace(StackTraceElement[])
and Throwable.fillInStackTrace()
will be be no-ops.List<E> suppressedExceptions
Throwable.getSuppressed()
. The list is initialized to a zero-element
unmodifiable sentinel list. When a serialized Throwable is
read in, if the suppressedExceptions
field points to a
zero-element list, the field is reset to the sentinel value.String typeName
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
MethodType
instance from a stream (that is,
deserialize it).
This instance is a scratch object with bogus final fields.
It provides the parameters to the factory method called by
readResolve
.
After that call it is discarded.IOException
- if there is a problem reading the objectClassNotFoundException
- if one of the component classes cannot be resolvedMethodType.MethodType()
,
MethodType.readResolve()
,
MethodType.writeObject(java.io.ObjectOutputStream)
private void writeObject(ObjectOutputStream s) throws IOException
MethodType
instance to a stream.writeObject
method, using two calls to s.writeObject
as follows:
s.writeObject(this.returnType()); s.writeObject(this.parameterArray());
The deserialized field values are checked as if they were
provided to the factory method methodType
.
For example, null values, or void
parameter types,
will lead to exceptions during deserialization.
IOException
- if there is a problem writing the objectprivate Object readResolve()
MethodType
object
after serialization.MethodType
.private Object readResolve() throws ReflectiveOperationException
ReflectiveOperationException
Class<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
instance from a stream (that is,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
BigDecimal
to the stream in questionIOException
BigInteger intVal
BigDecimal.unscaledValue()
.BigDecimal.unscaledValue()
int scale
BigDecimal.scale
.BigDecimal.scale
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
BigInteger
instance from a stream (that is,
deserialize it). The magnitude is read in as an array of bytes
for historical reasons, but it is converted to an array of ints
and the byte array is discarded.
Note:
The current convention is to initialize the cache fields, bitCount,
bitLength and lowestSetBit, to 0 rather than some other marker value.
Therefore, no explicit action to set these fields needs to be taken in
readObject because those fields already have a 0 value be default since
defaultReadObject is not being used.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
BigInteger
instance to a stream.
The magnitude of a BigInteger is serialized as a byte array for
historical reasons.IOException
int bitCount
int bitLength
int lowestSetBit
int[] magnitude
int signum
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
MathContext
instance from a stream (that is,
deserialize it).IOException
ClassNotFoundException
int precision
precision
will always be non-negative.
RoundingMode roundingMode
RoundingMode
int responseCode
String location
private Object writeReplace() throws ObjectStreamException
ObjectStreamException
- if a new object replacing this
object could not be createdprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String ifname
byte[] ipaddress
int scope_id
boolean scope_id_set
boolean scope_ifname_set
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private Object readResolve() throws ObjectStreamException
ObjectStreamException
- if a new object replacing this
object could not be createdprivate void readObjectNoData(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
int address
int family
String hostName
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObjectNoData() throws ObjectStreamException
ObjectStreamException
InetAddress addr
String hostname
int port
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream is) throws ClassNotFoundException, IOException
The ObjectInputStream.defaultReadObject()
method is
invoked to read the value of the string
field. The result is
then parsed in the usual way.
ClassNotFoundException
IOException
private void writeObject(ObjectOutputStream os) throws IOException
The only serializable field of a URI instance is its string
field. That field is given a value, if it does not have one already,
and then the ObjectOutputStream.defaultWriteObject()
method of the given object-output stream is invoked.
IOException
String string
String input
int index
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private Object readResolve() throws ObjectStreamException
ObjectStreamException
- if a new object replacing this
object could not be createdString authority
String file
int hashCode
String host
int port
String protocol
String ref
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
String actions
String charsetName
int inputLength
int inputLength
String charsetName
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
InvalidObjectException
- if the object is invalid or has a cause that is not
an IOException
IOException
ClassNotFoundException
String input
int index
String name
byte[] objBytes
objBytes
is
null
then the object marshalled was a null
reference.byte[] locBytes
equals
. If locBytes
is null, there were no
non-null
annotations during marshalling.int hash
MarshalledObject.hashCode()
Throwable detail
This field predates the general-purpose exception chaining facility.
The Throwable.getCause()
method is now the preferred means of
obtaining this information.
ActivationGroupID groupID
String className
String location
MarshalledObject<T> data
boolean restart
Throwable detail
This field predates the general-purpose exception chaining facility.
The Throwable.getCause()
method is now the preferred means of
obtaining this information.
ActivationGroupID groupID
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
for custom serialization.
This method reads this object's serialized form for this class as follows:
This method first invokes defaultReadObject
on
the specified object input stream, and if options
is null
, then options
is set to a
zero-length array of String
.
IOException
ClassNotFoundException
ActivationSystem system
UID uid
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
readObject
for custom serialization.
This method reads this object's serialized form for this class as follows:
The readObject
method is invoked on
in
to read this object's unique identifier
(a UID
instance).
Next, the readUTF
method is invoked on
in
to read the external ref type name of the
RemoteRef
instance for this object's
activator. Next, the RemoteRef
instance is created of an implementation-specific class
corresponding to the external ref type name (returned by
readUTF
), and the readExternal
method is invoked on that RemoteRef
instance
to read the external form corresponding to the external
ref type name.
Note: If the external ref type name is
"UnicastRef"
, "UnicastServerRef"
,
"UnicastRef2"
, "UnicastServerRef2"
,
or "ActivatableRef"
, a corresponding
implementation-specific class must be found, and its
readExternal
method must read the serial data
for that external ref type name as specified to be written
in the serialData documentation for this class.
If the external ref type name is any other string (of non-zero
length), a ClassNotFoundException
will be thrown,
unless the implementation provides an implementation-specific
class corresponding to that external ref type name, in which
case the RemoteRef
will be an instance of
that implementation-specific class.
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException, ClassNotFoundException
writeObject
for custom serialization.
This method writes this object's serialized form for this class as follows:
The writeObject
method is invoked on
out
passing this object's unique identifier
(a UID
instance) as the argument.
Next, the getRefClass
method is invoked on the activator's
RemoteRef
instance to obtain its external ref
type name. Next, the writeUTF
method is
invoked on out
with the value returned by
getRefClass
, and then the
writeExternal
method is invoked on the
RemoteRef
instance passing out
as the argument.
java.rmi.server.UID
(written with
ObjectOutput.writeObject
) followed by the
external ref type name of the activator's
RemoteRef
instance (a string written with
ObjectOutput.writeUTF
), followed by the
external form of the RemoteRef
instance as
written by its writeExternal
method.
The external ref type name of the
RemoteRef
instance is
determined using the definitions of external ref type
names specified in the RemoteObject
writeObject
method
serialData specification. Similarly, the data
written by the writeExternal
method and read
by the readExternal
method of
RemoteRef
implementation classes
corresponding to each of the defined external ref type
names is specified in the RemoteObject
writeObject
method serialData
specification.
IOException
ClassNotFoundException
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
for custom serialization.
This method reads this object's serialized form for this class as follows:
The readUTF
method is invoked on in
to read the external ref type name for the RemoteRef
instance to be filled in to this object's ref
field.
If the string returned by readUTF
has length zero,
the readObject
method is invoked on in
,
and than the value returned by readObject
is cast to
RemoteRef
and this object's ref
field is
set to that value.
Otherwise, this object's ref
field is set to a
RemoteRef
instance that is created of an
implementation-specific class corresponding to the external ref
type name returned by readUTF
, and then
the readExternal
method is invoked on
this object's ref
field.
If the external ref type name is
"UnicastRef"
, "UnicastServerRef"
,
"UnicastRef2"
, "UnicastServerRef2"
,
or "ActivatableRef"
, a corresponding
implementation-specific class must be found, and its
readExternal
method must read the serial data
for that external ref type name as specified to be written
in the serialData documentation for this class.
If the external ref type name is any other string (of non-zero
length), a ClassNotFoundException
will be thrown,
unless the implementation provides an implementation-specific
class corresponding to that external ref type name, in which
case this object's ref
field will be set to an
instance of that implementation-specific class.
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException, ClassNotFoundException
writeObject
for custom serialization.
This method writes this object's serialized form for this class as follows:
The getRefClass
method is invoked on this object's ref
field
to obtain its external ref type name.
If the value returned by getRefClass
was
a non-null
string of length greater than zero,
the writeUTF
method is invoked on out
with the value returned by getRefClass
, and then
the writeExternal
method is invoked on
this object's ref
field passing out
as the argument; otherwise,
the writeUTF
method is invoked on out
with a zero-length string (""
), and then
the writeObject
method is invoked on out
passing this object's ref
field as the argument.
ObjectOutput.writeUTF
) that is either the external
ref type name of the contained RemoteRef
instance
(the ref
field) or a zero-length string, followed by
either the external form of the ref
field as written by
its writeExternal
method if the string was of non-zero
length, or the serialized form of the ref
field as
written by passing it to the serialization stream's
writeObject
if the string was of zero length.
If this object is an instance of
RemoteStub
or RemoteObjectInvocationHandler
that was returned from any of
the UnicastRemoteObject.exportObject
methods
and custom socket factories are not used,
the external ref type name is "UnicastRef"
.
If this object is an instance of
RemoteStub
or RemoteObjectInvocationHandler
that was returned from any of
the UnicastRemoteObject.exportObject
methods
and custom socket factories are used,
the external ref type name is "UnicastRef2"
.
If this object is an instance of
RemoteStub
or RemoteObjectInvocationHandler
that was returned from any of
the java.rmi.activation.Activatable.exportObject
methods,
the external ref type name is "ActivatableRef"
.
If this object is an instance of
RemoteStub
or RemoteObjectInvocationHandler
that was returned from
the RemoteObject.toStub
method (and the argument passed
to toStub
was not itself a RemoteStub
),
the external ref type name is a function of how the remote object
passed to toStub
was exported, as described above.
If this object is an instance of
RemoteStub
or RemoteObjectInvocationHandler
that was originally created via deserialization,
the external ref type name is the same as that which was read
when this object was deserialized.
If this object is an instance of
java.rmi.server.UnicastRemoteObject
that does not
use custom socket factories,
the external ref type name is "UnicastServerRef"
.
If this object is an instance of
UnicastRemoteObject
that does
use custom socket factories,
the external ref type name is "UnicastServerRef2"
.
Following is the data that must be written by the
writeExternal
method and read by the
readExternal
method of RemoteRef
implementation classes that correspond to the each of the
defined external ref type names:
For "UnicastRef"
:
DataOutput.writeUTF(String)
DataOutput.writeInt(int)
ObjID
instance contained in the reference
false
,
written by DataOutput.writeBoolean(boolean)
For "UnicastRef2"
with a
null
client socket factory:
0x00
(indicating null
client socket factory),
written by DataOutput.writeByte(int)
DataOutput.writeUTF(String)
DataOutput.writeInt(int)
ObjID
instance contained in the reference
false
,
written by DataOutput.writeBoolean(boolean)
For "UnicastRef2"
with a
non-null
client socket factory:
0x01
(indicating non-null
client socket factory),
written by DataOutput.writeByte(int)
DataOutput.writeUTF(String)
DataOutput.writeInt(int)
java.rmi.server.RMIClientSocketFactory
),
written by passing it to an invocation of
writeObject
on the stream instance
ObjID
instance contained in the reference
false
,
written by DataOutput.writeBoolean(boolean)
For "ActivatableRef"
with a
null
nested remote reference:
java.rmi.activation.ActivationID
,
written by passing it to an invocation of
writeObject
on the stream instance
""
),
written by DataOutput.writeUTF(String)
For "ActivatableRef"
with a
non-null
nested remote reference:
java.rmi.activation.ActivationID
,
written by passing it to an invocation of
writeObject
on the stream instance
"UnicastRef2"
,
written by DataOutput.writeUTF(String)
writeExternal
method
with the stream instance
(see the description of the external form for
"UnicastRef2"
above)
For "UnicastServerRef"
and
"UnicastServerRef2"
, no data is written by the
writeExternal
method or read by the
readExternal
method.
IOException
ClassNotFoundException
private void readObjectNoData() throws InvalidObjectException
InvalidObjectException
- unconditionallyException detail
This field predates the general-purpose exception chaining facility.
The Throwable.getCause()
method is now the preferred means of
obtaining this information.
int unique
UID
was generated in with respect to its host and at the given timelong time
System.currentTimeMillis()
) at which
the VM that this UID
was generated in was aliveshort count
UID
instances created
in the same VM with the same time valueprivate void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
int port
RMIClientSocketFactory csf
RMIServerSocketFactory ssf
Permission perm
boolean all_allowed
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
boolean all_allowed
Class<T> permClass
Hashtable<K,V> permissions
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
URL
is followed by an
int
indicating the number of certificates to follow
(a value of "zero" denotes that there are no certificates associated
with this object).
Each certificate is written out starting with a String
denoting the certificate type, followed by an
int
specifying the length of the certificate encoding,
followed by the certificate encoding itself which is written out as an
array of bytes. Finally, if any code signers are present then the array
of code signers is serialized and written out too.IOException
URL location
private void writeObject(ObjectOutputStream oos) throws IOException
IOException
String name
PublicKey publicKey
String info
IdentityScope scope
Vector<E> certificates
PrivateKey privateKey
PublicKey publicKey
protected Object readResolve() throws ObjectStreamException
This method supports three Type/format combinations:
ObjectStreamException
- if the Type/format
combination is unrecognized, if the algorithm, key format, or
encoded key bytes are unrecognized/invalid, of if the
resolution of the key fails for any reasonKeyRep.Type type
String algorithm
String format
byte[] encoded
String name
boolean readOnly
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
Exception exception
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
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
IOException
ClassNotFoundException
byte[] content
byte[] signature
String thealgorithm
PrivateKey privateKey
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
String
denoting the
type
is followed by a String
denoting the
name
is followed by a String
denoting the
actions
is followed by an int
indicating the
number of certificates to follow
(a value of "zero" denotes that there are no certificates associated
with this object).
Each certificate is written out starting with a String
denoting the certificate type, followed by an
int
specifying the length of the certificate encoding,
followed by the certificate encoding itself which is written out as an
array of bytes.IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException
- if a new object representing
this Certificate could not be createdString type
int hash
protected Object readResolve() throws ObjectStreamException
ObjectStreamException
- if the Certificate
could not be resolvedString type
byte[] data
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
CertificateRevokedException
instance.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
CertificateRevokedException
instance.IOException
Date revocationDate
CRLReason reason
X500Principal authority
X500Principal
that represents the name of the
authority that signed the certificate's revocation status informationprotected Object writeReplace() throws ObjectStreamException
CertPath
to be serialized with a
CertPathRep
object.ObjectStreamException
- if a CertPathRep
object
representing this certification path could not be createdString type
protected Object readResolve() throws ObjectStreamException
CertPath
constructed from the type and data.ObjectStreamException
- if a CertPath
could not
be constructedString type
byte[] data
private void readObject(ObjectInputStream stream) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
int index
CertPath certPath
CertPath
that was being validated when
the exception was thrownCertPathValidatorException.Reason reason
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
BatchUpdateException
from a stream.IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException, ClassNotFoundException
BatchUpdateException
to a stream.IOException
ClassNotFoundException
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
- if the object to resolve is not
an instance of Attribute
String name
Attribute
. The name is used primarily by readResolve
to look up the corresponding predefined instance when deserializing
an instance.private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
InvalidObjectException
- if the objects read from the stream is invalid.IOException
ClassNotFoundException
double[] choiceLimits
choiceFormats[i]
if the number being formatted is greater than or equal to
choiceLimits[i]
and less than choiceLimits[i+1]
.String[] choiceFormats
choiceFormats[i]
if the number being formatted is greater than or equal to
choiceLimits[i]
and less than choiceLimits[i+1]
.Calendar calendar
NumberFormat numberFormat
DateFormat
uses to format numbers
in dates and times. Subclasses should initialize this to a number format
appropriate for the locale associated with this DateFormat
.protected Object readResolve() throws InvalidObjectException
InvalidObjectException
- if the constant could not be
resolved.int calendarField
private void writeObject(ObjectOutputStream stream) throws IOException
zoneStrings
field is initialized in order to make
sure the backward compatibility.IOException
String[] eras
Calendar.BC
and Calendar.AD
.String[] months
Calendar.JANUARY
, Calendar.FEBRUARY
, etc.String[] shortMonths
Calendar.JANUARY
, Calendar.FEBRUARY
, etc.String[] weekdays
Calendar.SUNDAY
,
Calendar.MONDAY
, etc.
The element weekdays[0]
is ignored.String[] shortWeekdays
Calendar.SUNDAY
,
Calendar.MONDAY
, etc.
The element shortWeekdays[0]
is ignored.String[] ampms
Calendar.AM
and
Calendar.PM
.String[][] zoneStrings
TimeZone
.
Each such row contains (with i
ranging from
0..n-1):
zoneStrings[i][0]
- time zone IDzoneStrings[i][1]
- long name of zone in standard
timezoneStrings[i][2]
- short name of zone in
standard timezoneStrings[i][3]
- long name of zone in daylight
saving timezoneStrings[i][4]
- short name of zone in daylight
saving timeTimeZone
class that are not
custom IDs.
All other entries are localized names.TimeZone
String localPatternChars
DateFormat.ERA_FIELD
,
DateFormat.YEAR_FIELD
, etc. Thus, if the string were
"Xz...", then localized patterns would use 'X' for era and 'z' for year.Locale locale
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
BigInteger
and BigDecimal
objects. These
limits are stored in the superclass for serialization compatibility
with older versions, while the limits for BigInteger
and
BigDecimal
objects are kept in this class.
If, in the superclass, the minimum or maximum integer digit count is
larger than DOUBLE_INTEGER_DIGITS
or if the minimum or
maximum fraction digit count is larger than
DOUBLE_FRACTION_DIGITS
, then the stream data is invalid
and this method throws an InvalidObjectException
.
serialVersionOnStream
is less than 4, initialize
roundingMode
to RoundingMode.HALF_EVEN
. This field is new with version 4.
serialVersionOnStream
is less than 3, then call
the setters for the minimum and maximum integer and fraction digits with
the values of the corresponding superclass getters to initialize the
fields in this class. The fields in this class are new with version 3.
serialVersionOnStream
is less than 1, indicating that
the stream was written by JDK 1.1, initialize
useExponentialNotation
to false, since it was not present in JDK 1.1.
serialVersionOnStream
to the maximum allowed value so
that default serialization will work properly if this object is streamed
out again.
Stream versions older than 2 will not have the affix pattern variables
posPrefixPattern
etc. As a result, they will be initialized
to null
, which means the affix strings will be taken as
literal values. This is exactly what we want, since that corresponds to
the pre-version-2 behavior.
IOException
ClassNotFoundException
String positivePrefix
DecimalFormat.getPositivePrefix()
String positiveSuffix
DecimalFormat.getPositiveSuffix()
String negativePrefix
DecimalFormat.getNegativePrefix()
String negativeSuffix
DecimalFormat.getNegativeSuffix()
String posPrefixPattern
positivePrefix
.
This pattern is expanded by the method expandAffix()
to
positivePrefix
to update the latter to reflect changes in
symbols
. If this variable is null
then
positivePrefix
is taken as a literal value that does not
change when symbols
changes. This variable is always
null
for DecimalFormat
objects older than
stream version 2 restored from stream.
String posSuffixPattern
positiveSuffix
. This variable is analogous to
posPrefixPattern
; see that variable for further
documentation.String negPrefixPattern
negativePrefix
. This variable is analogous to
posPrefixPattern
; see that variable for further
documentation.String negSuffixPattern
negativeSuffix
. This variable is analogous to
posPrefixPattern
; see that variable for further
documentation.int multiplier
DecimalFormat.getMultiplier()
byte groupingSize
NumberFormat.groupingUsed
is true.boolean decimalSeparatorAlwaysShown
boolean parseBigDecimal
DecimalFormat.isParseBigDecimal()
DecimalFormatSymbols symbols
DecimalFormatSymbols
object used by this format.
It contains the symbols used to format numbers, e.g. the grouping separator,
decimal separator, and so on.boolean useExponentialNotation
byte minExponentDigits
useExponentialNotation
is not true.int maximumIntegerDigits
BigInteger
or BigDecimal
number.
maximumIntegerDigits
must be greater than or equal to
minimumIntegerDigits
.DecimalFormat.getMaximumIntegerDigits()
int minimumIntegerDigits
BigInteger
or BigDecimal
number.
minimumIntegerDigits
must be less than or equal to
maximumIntegerDigits
.DecimalFormat.getMinimumIntegerDigits()
int maximumFractionDigits
BigInteger
or BigDecimal
number.
maximumFractionDigits
must be greater than or equal to
minimumFractionDigits
.DecimalFormat.getMaximumFractionDigits()
int minimumFractionDigits
BigInteger
or BigDecimal
number.
minimumFractionDigits
must be less than or equal to
maximumFractionDigits
.DecimalFormat.getMinimumFractionDigits()
RoundingMode roundingMode
RoundingMode
used in this DecimalFormat.int serialVersionOnStream
useExponentialNotation
and
minExponentDigits
.
posPrefixPattern
, posSuffixPattern
,
negPrefixPattern
, and negSuffixPattern
.
maximumIntegerDigits
,
minimumIntegerDigits
,
maximumFractionDigits
,
minimumFractionDigits
, and
parseBigDecimal
.
roundingMode
.
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
serialVersionOnStream
is less than 1, initializes monetarySeparator
to be
the same as decimalSeparator
and exponential
to be 'E'.
If serialVersionOnStream
is less than 2,
initializes locale
to the root locale, and initializes
If serialVersionOnStream
is less than 3, it initializes
exponentialSeparator
using exponential
.
Sets serialVersionOnStream
back to the maximum allowed value so that
default serialization will work properly if this object is streamed out again.
Initializes the currency from the intlCurrencySymbol field.IOException
ClassNotFoundException
char zeroDigit
DecimalFormatSymbols.getZeroDigit()
char groupingSeparator
char decimalSeparator
char perMill
DecimalFormatSymbols.getPerMill()
char percent
DecimalFormatSymbols.getPercent()
char digit
DecimalFormatSymbols.getDigit()
char patternSeparator
String infinity
DecimalFormatSymbols.getInfinity()
String NaN
DecimalFormatSymbols.getNaN()
char minusSign
DecimalFormatSymbols.getMinusSign()
String currencySymbol
DecimalFormatSymbols.getCurrencySymbol()
String intlCurrencySymbol
char monetarySeparator
DecimalFormatSymbols.getMonetaryDecimalSeparator()
char exponential
Note that the public API provides no way to set this field, even though it is supported by the implementation and the stream format. The intent is that this will be added to the API in the future.
String exponentialSeparator
If both exponential
and exponentialSeparator
exist, this exponentialSeparator
has the precedence.
Locale locale
int serialVersionOnStream
DecimalFormatSymbols
present on the stream.
Possible values are:
monetarySeparator
and exponential
.
locale
field.
exponentialSeparator
field.
DecimalFormatSymbols
, the most recent format
(corresponding to the highest allowable serialVersionOnStream
)
is always written.private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
InvalidObjectException
- if the objects read from the stream is invalid.IOException
ClassNotFoundException
Locale locale
String pattern
Format[] formats
int[] offsets
int[] argumentNumbers
int maxOffset
offsets
. Can also be thought of
as the index of the highest-numbered element in offsets
that is being used.
All of these arrays should have the same number of elements being used as offsets
does, and so this variable suffices to tell us how many entries are in all of them.protected Object readResolve() throws InvalidObjectException
InvalidObjectException
- if the constant could not be
resolved.private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
serialVersionOnStream
is less than 1, indicating that
the stream was written by JDK 1.1,
set the int
fields such as maximumIntegerDigits
to be equal to the byte
fields such as maxIntegerDigits
,
since the int
fields were not present in JDK 1.1.
Finally, set serialVersionOnStream back to the maximum allowed value so that
default serialization will work properly if this object is streamed out again.
If minimumIntegerDigits
is greater than
maximumIntegerDigits
or minimumFractionDigits
is greater than maximumFractionDigits
, then the stream data
is invalid and this method throws an InvalidObjectException
.
In addition, if any of these values is negative, then this method throws
an InvalidObjectException
.
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream stream) throws IOException
byte
fields such as maxIntegerDigits
to be
equal to the int
fields such as maximumIntegerDigits
(or to Byte.MAX_VALUE
, whichever is smaller), for compatibility
with the JDK 1.1 version of the stream format.IOException
boolean groupingUsed
NumberFormat.isGroupingUsed()
byte maxIntegerDigits
maxIntegerDigits
must be greater than or equal to
minIntegerDigits
.
Note: This field exists only for serialization
compatibility with JDK 1.1. In Java platform 2 v1.2 and higher, the new
int
field maximumIntegerDigits
is used instead.
When writing to a stream, maxIntegerDigits
is set to
maximumIntegerDigits
or Byte.MAX_VALUE
,
whichever is smaller. When reading from a stream, this field is used
only if serialVersionOnStream
is less than 1.
NumberFormat.getMaximumIntegerDigits()
byte minIntegerDigits
minimumIntegerDigits
must be less than or equal to
maximumIntegerDigits
.
Note: This field exists only for serialization
compatibility with JDK 1.1. In Java platform 2 v1.2 and higher, the new
int
field minimumIntegerDigits
is used instead.
When writing to a stream, minIntegerDigits
is set to
minimumIntegerDigits
or Byte.MAX_VALUE
,
whichever is smaller. When reading from a stream, this field is used
only if serialVersionOnStream
is less than 1.
NumberFormat.getMinimumIntegerDigits()
byte maxFractionDigits
maximumFractionDigits
must be greater than or equal to
minimumFractionDigits
.
Note: This field exists only for serialization
compatibility with JDK 1.1. In Java platform 2 v1.2 and higher, the new
int
field maximumFractionDigits
is used instead.
When writing to a stream, maxFractionDigits
is set to
maximumFractionDigits
or Byte.MAX_VALUE
,
whichever is smaller. When reading from a stream, this field is used
only if serialVersionOnStream
is less than 1.
NumberFormat.getMaximumFractionDigits()
byte minFractionDigits
minimumFractionDigits
must be less than or equal to
maximumFractionDigits
.
Note: This field exists only for serialization
compatibility with JDK 1.1. In Java platform 2 v1.2 and higher, the new
int
field minimumFractionDigits
is used instead.
When writing to a stream, minFractionDigits
is set to
minimumFractionDigits
or Byte.MAX_VALUE
,
whichever is smaller. When reading from a stream, this field is used
only if serialVersionOnStream
is less than 1.
NumberFormat.getMinimumFractionDigits()
boolean parseIntegerOnly
NumberFormat.isParseIntegerOnly()
int maximumIntegerDigits
maximumIntegerDigits
must be greater than or equal to
minimumIntegerDigits
.NumberFormat.getMaximumIntegerDigits()
int minimumIntegerDigits
minimumIntegerDigits
must be less than or equal to
maximumIntegerDigits
.NumberFormat.getMinimumIntegerDigits()
int maximumFractionDigits
maximumFractionDigits
must be greater than or equal to
minimumFractionDigits
.NumberFormat.getMaximumFractionDigits()
int minimumFractionDigits
minimumFractionDigits
must be less than or equal to
maximumFractionDigits
.NumberFormat.getMinimumFractionDigits()
int serialVersionOnStream
NumberFormat
present on the stream.
Possible values are:
int
fields such as
maximumIntegerDigits
were not present, and the byte
fields such as maxIntegerDigits
are used instead.
byte
fields such as maxIntegerDigits
are ignored,
and the int
fields such as maximumIntegerDigits
are used instead.
NumberFormat
, the most recent format
(corresponding to the highest allowable serialVersionOnStream
)
is always written.protected Object readResolve() throws InvalidObjectException
InvalidObjectException
- if the constant could not be resolved.int errorOffset
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
InvalidObjectException
- if the pattern is invalidIOException
ClassNotFoundException
int serialVersionOnStream
defaultCenturyStart
on stream.
defaultCenturyStart
.
serialVersionOnStream
is written.String pattern
DateFormatSymbols formatData
DateFormatSymbols
Date defaultCenturyStart
defaultCenturyStart
, which may be any date. May
not be null.Locale locale
SimpleDateFormat
. The value may be null if this object
has been created by an older SimpleDateFormat
and
deserialized.private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate 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
- alwaysprivate 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
- alwaysprivate 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
- alwaysprivate Object writeReplace()
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(4); // identifies a LocalTime if (nano == 0) { if (second == 0) { if (minute == 0) { out.writeByte(~hour); } else { out.writeByte(hour); out.writeByte(~minute); } } else { out.writeByte(hour); out.writeByte(minute); out.writeByte(~second); } } else { out.writeByte(hour); out.writeByte(minute); out.writeByte(second); out.writeInt(nano); }
byte hour
byte minute
byte second
int nano
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate 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
- alwaysprivate Object writeReplace()
LocalDateTime dateTime
ZoneOffset offset
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
LocalTime time
ZoneOffset offset
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(14); // identifies a Period out.writeInt(years); out.writeInt(months); out.writeInt(days);
int years
int months
int days
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Externalizable
interface to read the object.writeReplace
method are read and passed to the corresponding static factory for the type
to create a new instance. That instance is returned as the de-serialized
Ser
object.
Duration.ofSeconds(seconds, nanos);
Instant.ofEpochSecond(seconds, nanos);
LocalDate.of(year, month, day);
LocalDateTime.of(date, time);
LocalTime.of(hour, minute, second, nano);
MonthDay.of(month, day);
OffsetTime.of(time, offset);
OffsetDateTime.of(dateTime, offset);
Period.of(years, months, days);
Year.of(year);
YearMonth.of(year, month);
ZonedDateTime.ofLenient(dateTime, offset, zone);
ZoneId.of(id);
(offsetByte == 127 ? ZoneOffset.ofTotalSeconds(in.readInt()) : ZoneOffset.ofTotalSeconds(offsetByte * 900));
IOException
- if I/O errors occurClassNotFoundException
- If the class for an object being
restored cannot be found.public void writeExternal(ObjectOutput out) throws IOException
Externalizable
interface to write the object.writeReplace
serialized form for the value of the type and sequence of values for the type.
IOException
- Includes any I/O exceptions that may occurprivate void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(11); // identifies a Year out.writeInt(year);
int year
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(12); // identifies a YearMonth out.writeInt(year); out.writeByte(month);
int year
int month
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
LocalDateTime dateTime
ZoneOffset offset
ZoneId zone
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(7); // identifies a ZoneId (not ZoneOffset) out.writeUTF(getId());
When read back in, the ZoneId
will be created as though using
ZoneId.of(String)
, but without any exception in the case where the
ID has a valid format, but is not in the known set of region-based IDs.
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(8); // identifies a ZoneOffset int offsetByte = totalSeconds % 900 == 0 ? totalSeconds / 900 : 127; out.writeByte(offsetByte); if (offsetByte == 127) { out.writeInt(totalSeconds); }
int totalSeconds
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(2); // identifies a ChronoLocalDateTime out.writeObject(toLocalDate()); out.witeObject(toLocalTime());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(3); // identifies a ChronoZonedDateTime out.writeObject(toLocalDateTime()); out.writeObject(getOffset()); out.writeObject(getZone());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysObject writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(6); // identifies a HijrahDate out.writeObject(chrono); // the HijrahChronology variant out.writeInt(get(YEAR)); out.writeByte(get(MONTH_OF_YEAR)); out.writeByte(get(DAY_OF_MONTH));
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysObject writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysObject writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(4); // identifies a JapaneseDate out.writeInt(get(YEAR)); out.writeByte(get(MONTH_OF_YEAR)); out.writeByte(get(DAY_OF_MONTH));
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(5); // identifies a JapaneseEra out.writeInt(getValue());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysObject writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(8); // identifies a MinguoDate out.writeInt(get(YEAR)); out.writeByte(get(MONTH_OF_YEAR)); out.writeByte(get(DAY_OF_MONTH));
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Externalizable
interface to read the object.writeReplace
method are read and passed to the corresponding static factory for the type
to create a new instance. That instance is returned as the de-serialized
Ser
object.
IOException
- if I/O errors occurClassNotFoundException
- If the class for an object being
restored cannot be found.public void writeExternal(ObjectOutput out) throws IOException
Externalizable
interface to write the object.writeReplace
serialized form for the value of the type and sequence of values for the type.
IOException
- Includes any I/O exceptions that may occurprivate void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysObject writeReplace()
out.writeByte(1); // identifies a Chronology out.writeUTF(getId());
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(10); // identifies a ThaiBuddhistDate out.writeInt(get(YEAR)); out.writeByte(get(MONTH_OF_YEAR)); out.writeByte(get(DAY_OF_MONTH));
String parsedString
int errorIndex
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException, InvalidObjectException
InvalidObjectException
- if
the smallest minimum is greater than the smallest maximum,
or the smallest maximum is greater than the largest maximum
or the largest minimum is greater than the largest maximumClassNotFoundException
- if a class cannot be resolvedIOException
long minSmallest
long minLargest
long maxSmallest
long maxLargest
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException, InvalidObjectException
InvalidObjectException
- if the serialized object has an invalid
value for firstDayOfWeek or minimalDays.ClassNotFoundException
- if a class cannot be resolvedIOException
private Object readResolve() throws InvalidObjectException
firstDayOfWeek
and minimalDays
.InvalidObjectException
- if the serialized object has invalid
values for firstDayOfWeek or minimalDays.DayOfWeek firstDayOfWeek
int minimalDays
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
Externalizable
interface to read the object.writeReplace
method are read and passed to the corresponding static factory for the type
to create a new instance. That instance is returned as the de-serialized
Ser
object.
ZoneRules.of(standardTransitions, standardOffsets, savingsInstantTransitions, wallOffsets, lastRules);
ZoneOffsetTransition of(LocalDateTime.ofEpochSecond(epochSecond), offsetBefore, offsetAfter);
ZoneOffsetTransitionRule.of(month, dom, dow, time, timeEndOfDay, timeDefinition, standardOffset, offsetBefore, offsetAfter);
IOException
- if I/O errors occurClassNotFoundException
- If the class for an object being
restored cannot be found.public void writeExternal(ObjectOutput out) throws IOException
Externalizable
interface to write the object.writeReplace
serialized form for the value of the type and sequence of values for the type.
IOException
- Includes any I/O exceptions that may occurprivate void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(2); // identifies a ZoneOffsetTransition
out.writeEpochSec(toEpochSecond);
out.writeOffset(offsetBefore);
out.writeOffset(offsetAfter);
LocalDateTime transition
ZoneOffset offsetBefore
ZoneOffset offsetAfter
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(3); // identifies a ZoneOffsetTransition
final int timeSecs = (timeEndOfDay ? 86400 : time.toSecondOfDay());
final int stdOffset = standardOffset.getTotalSeconds();
final int beforeDiff = offsetBefore.getTotalSeconds() - stdOffset;
final int afterDiff = offsetAfter.getTotalSeconds() - stdOffset;
final int timeByte = (timeSecs % 3600 == 0 ? (timeEndOfDay ? 24 : time.getHour()) : 31);
final int stdOffsetByte = (stdOffset % 900 == 0 ? stdOffset / 900 + 128 : 255);
final int beforeByte = (beforeDiff == 0 || beforeDiff == 1800 || beforeDiff == 3600 ? beforeDiff / 1800 : 3);
final int afterByte = (afterDiff == 0 || afterDiff == 1800 || afterDiff == 3600 ? afterDiff / 1800 : 3);
final int dowByte = (dow == null ? 0 : dow.getValue());
int b = (month.getValue() << 28) + // 4 bits
((dom + 32) << 22) + // 6 bits
(dowByte << 19) + // 3 bits
(timeByte << 14) + // 5 bits
(timeDefinition.ordinal() << 12) + // 2 bits
(stdOffsetByte << 4) + // 8 bits
(beforeByte << 2) + // 2 bits
afterByte; // 2 bits
out.writeInt(b);
if (timeByte == 31) {
out.writeInt(timeSecs);
}
if (stdOffsetByte == 255) {
out.writeInt(stdOffset);
}
if (beforeByte == 3) {
out.writeInt(offsetBefore.getTotalSeconds());
}
if (afterByte == 3) {
out.writeInt(offsetAfter.getTotalSeconds());
}
Month month
byte dom
-1
is the last day of the month, -2
is the second
to last day, and so on.DayOfWeek dow
LocalTime time
boolean timeEndOfDay
ZoneOffsetTransitionRule.TimeDefinition timeDefinition
ZoneOffset standardOffset
ZoneOffset offsetBefore
ZoneOffset offsetAfter
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
out.writeByte(1); // identifies a ZoneRules
out.writeInt(standardTransitions.length);
for (long trans : standardTransitions) {
Ser.writeEpochSec(trans, out);
}
for (ZoneOffset offset : standardOffsets) {
Ser.writeOffset(offset, out);
}
out.writeInt(savingsInstantTransitions.length);
for (long trans : savingsInstantTransitions) {
Ser.writeEpochSec(trans, out);
}
for (ZoneOffset offset : wallOffsets) {
Ser.writeOffset(offset, out);
}
out.writeByte(lastRules.length);
for (ZoneOffsetTransitionRule rule : lastRules) {
rule.writeExternal(out);
}
Epoch second values used for offsets are encoded in a variable length form to make the common cases put fewer bytes in the stream.
static void writeEpochSec(long epochSec, DataOutput out) throws IOException {
if (epochSec >= -4575744000L && epochSec < 10413792000L && epochSec % 900 == 0) { // quarter hours between 1825 and 2300
int store = (int) ((epochSec + 4575744000L) / 900);
out.writeByte((store >>> 16) & 255);
out.writeByte((store >>> 8) & 255);
out.writeByte(store & 255);
} else {
out.writeByte(255);
out.writeLong(epochSec);
}
}
ZoneOffset values are encoded in a variable length form so the common cases put fewer bytes in the stream.
static void writeOffset(ZoneOffset offset, DataOutput out) throws IOException {
final int offsetSecs = offset.getTotalSeconds();
int offsetByte = offsetSecs % 900 == 0 ? offsetSecs / 900 : 127; // compress to -72 to +72
out.writeByte(offsetByte);
if (offsetByte == 127) {
out.writeInt(offsetSecs);
}
}
long[] standardTransitions
ZoneOffset[] standardOffsets
long[] savingsInstantTransitions
LocalDateTime[] savingsLocalTransitions
ZoneOffset[] wallOffsets
ZoneOffsetTransitionRule[] lastRules
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
int
) of the deque,
followed by all of its elements (each an object reference) in
first-to-last order.IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int size
Object[] a
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
BitSet
instance from a stream (i.e.,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
BitSet
instance to a stream (i.e.,
serialize it).IOException
long[] bits
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream stream) throws IOException
Calendar
would only write out its state data and
the current time, and not write any field data out, such as
fields[]
, isTimeSet
, areFieldsSet
,
and isSet[]
. nextStamp
also should not be part
of the persistent state. Unfortunately, this didn't happen before JDK 1.1
shipped. To be compatible with JDK 1.1, we will always have to write out
the field values and state flags. However, nextStamp
can be
removed from the serialization stream; this will probably happen in the
near future.IOException
int[] fields
FIELD_COUNT
integers, with index values
ERA
through DST_OFFSET
.boolean[] isSet
FIELD_COUNT
booleans, with index values
ERA
through DST_OFFSET
.long time
Calendar.isTimeSet
boolean isTimeSet
time
is valid.
The time is made invalid by a change to an item of field[]
.Calendar.time
boolean areFieldsSet
fields[]
are in sync with the currently set time.
If false, then the next attempt to get the value of a field will
force a recomputation of all fields from the current value of
time
.boolean lenient
True
if this calendar allows out-of-range field values during computation
of time
from fields[]
.Calendar.setLenient(boolean)
,
Calendar.isLenient()
TimeZone zone
TimeZone
used by this calendar. Calendar
uses the time zone data to translate between locale and GMT time.int firstDayOfWeek
SUNDAY
,
MONDAY
, etc. This is a locale-dependent value.int minimalDaysInFirstWeek
int nextStamp
stamp[]
, an internal array.
This actually should not be written out to the stream, and will probably
be removed from the stream in the near future. In the meantime,
a value of MINIMUM_USER_STAMP
should be used.int serialVersionOnStream
serialVersionOnStream
is written.Collection<E> c
Class<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
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
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
getTime()
is emitted (long). This represents the offset from
January 1, 1970, 00:00:00 GMT in milliseconds.IOException
String flags
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
String f
char c
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
long gregorianCutover
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
HashMap
instance from a stream (i.e.,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int threshold
float loadFactor
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
IOException
int threshold
float loadFactor
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
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
instance from a stream
(that is, deserializes it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
LinkedList
instance to a stream
(that is, serializes it).IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
Locale
.IOException
ClassNotFoundException
IllformedLocaleException
private void writeObject(ObjectOutputStream out) throws IOException
Locale
to the specified ObjectOutputStream
.IOException
private Object readResolve() throws ObjectStreamException
Locale
instance equivalent to
the deserialized Locale
. When serialized
language, country and variant fields read from the object data stream
are exactly "ja", "JP", "JP" or "th", "TH", "TH" and script/extensions
fields are empty, this method supplies UNICODE_LOCALE_EXTENSION
"ca"/"japanese" (calendar type is "japanese") or "nu"/"thai" (number script
type is "thai"). See Special Cases
for more information.ObjectStreamException
String country
String extensions
int hashcode
String language
String script
String variant
String s
String s
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
PriorityQueue
instance from a stream
(that is, deserializes it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
Object
) in the proper order.IOException
int size
Comparator<T> comparator
Properties defaults
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
Random
instance from a stream (that is,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
Random
instance to a stream.IOException
boolean haveNextNextGaussian
double nextNextGaussian
long seed
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream stream) throws IOException
DOW_IN_MONTH_MODE
rules, in the required section, followed
by the full rules, in packed format, in the optional section. The
optional section will be ignored by JDK 1.1 code upon stream in.
Contents of the optional section: The length of a byte array is
emitted (int); this is 4 as of this release. The byte array of the given
length is emitted. The contents of the byte array are the true values of
the fields startDay
, startDayOfWeek
,
endDay
, and endDayOfWeek
. The values of these
fields in the required section are approximate values suited to the rule
mode DOW_IN_MONTH_MODE
, which is the only mode recognized by
JDK 1.1.
IOException
int startMonth
Calendar.JANUARY
and
Calendar.DECEMBER
inclusive. This value must not equal
endMonth
.
If useDaylight
is false, this value is ignored.
int startDay
startMode == DOW_IN_MONTH
startDay
indicates the day of the month of
startMonth
on which daylight
saving time starts, from 1 to 28, 30, or 31, depending on the
startMonth
.
startMode != DOW_IN_MONTH
startDay
indicates which startDayOfWeek
in the
month startMonth
daylight
saving time starts on. For example, a value of +1 and a
startDayOfWeek
of Calendar.SUNDAY
indicates the
first Sunday of startMonth
. Likewise, +2 would indicate the
second Sunday, and -1 the last Sunday. A value of 0 is illegal.
If useDaylight
is false, this value is ignored.
int startDayOfWeek
Calendar.SUNDAY
and
Calendar.SATURDAY
inclusive.
If useDaylight
is false or
startMode == DAY_OF_MONTH
, this value is ignored.
int startTime
startTimeMode
.
If useDaylight
is false, this value is ignored.
int startTimeMode
int endMonth
Calendar.JANUARY
and
Calendar.UNDECIMBER
. This value must not equal
startMonth
.
If useDaylight
is false, this value is ignored.
int endDay
endMode == DOW_IN_MONTH
endDay
indicates the day of the month of
endMonth
on which daylight
saving time ends, from 1 to 28, 30, or 31, depending on the
endMonth
.
endMode != DOW_IN_MONTH
endDay
indicates which endDayOfWeek
in th
month endMonth
daylight
saving time ends on. For example, a value of +1 and a
endDayOfWeek
of Calendar.SUNDAY
indicates the
first Sunday of endMonth
. Likewise, +2 would indicate the
second Sunday, and -1 the last Sunday. A value of 0 is illegal.
If useDaylight
is false, this value is ignored.
int endDayOfWeek
Calendar.SUNDAY
and
Calendar.SATURDAY
inclusive.
If useDaylight
is false or
endMode == DAY_OF_MONTH
, this value is ignored.
int endTime
endTimeMode
.
If useDaylight
is false, this value is ignored.
int endTimeMode
WALL_TIME
,
STANDARD_TIME
, or UTC_TIME
.int startYear
AD
value. If this value is less than 1 then daylight saving time is observed
for all AD
years.
If useDaylight
is false, this value is ignored.
int rawOffset
dstSavings
.boolean useDaylight
byte[] monthLength
int startMode
DOM_MODE
DOW_IN_MONTH_MODE
DOW_GE_DOM_MODE
DOW_LE_DOM_MODE
startDay
field.
If useDaylight
is false, this value is ignored.
int endMode
DOM_MODE
DOW_IN_MONTH_MODE
DOW_GE_DOM_MODE
DOW_LE_DOM_MODE
endDay
field.
If useDaylight
is false, this value is ignored.
int dstSavings
If useDaylight
is false, this value is ignored.
int serialVersionOnStream
startMode
,
endMode
, and dstSavings
.
startTimeMode
and endTimeMode
.
serialVersionOnStream
is written.String ID
TimeZone
. This is a
programmatic identifier used internally to look up TimeZone
objects from the system table and also to map them to their localized
display names. ID
values are unique in the system
table but may not be for dynamically created zones.private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
TreeMap
instance from a stream (i.e.,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
TreeMap
instance to a stream (i.e.,
serialize it).IOException
Comparator<T> comparator
Comparator<T> reverseComparator
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
instance from a stream (that is,
deserialize it).IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
TreeSet
instance to a stream (that is,
serialize it).null
if it obeys its elements' natural ordering
(Object), followed by the size of the set (the number of
elements it contains) (int), followed by all of its
elements (each an Object) in order (as determined by the
set's Comparator, or by the elements' natural ordering if
the set has no Comparator).IOException
String s
String flags
long mostSigBits
long leastSigBits
private void writeObject(ObjectOutputStream s) throws IOException
Vector
instance to a stream (that
is, serialize it).
This method performs synchronization to ensure the consistency
of the serialized data.IOException
Object[] elementData
Any array elements following the last element in the Vector are null.
int elementCount
Vector
object.
Components elementData[0]
through
elementData[elementCount-1]
are the actual items.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
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
ConcurrentHashMap
instance to a
stream (i.e., serializes it).IOException
- if an I/O error occursObject value
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
E
) in
the proper order, followed by a nullIOException
- if an I/O error occursprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
E
) in
the proper order, followed by a nullIOException
- if an I/O error occursprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
null
. The key-value mappings are emitted in key-order
(as determined by the Comparator, or by the keys' natural
ordering if no Comparator).IOException
- if an I/O error occursComparator<T> comparator
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
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
IOException
- if an I/O error occursCopyOnWriteArrayList<E> al
CountedCompleter<T> completer
int pending
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
null
if noneIOException
- if an I/O error occursint status
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
Object
) in the proper order, followed by a nullIOException
- if an I/O error occursint capacity
ReentrantLock lock
Condition notEmpty
Condition notFull
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
Object
) in the proper order,
followed by a nullIOException
- if an I/O error occursint capacity
AtomicInteger count
ReentrantLock takeLock
Condition notEmpty
ReentrantLock putLock
Condition notFull
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
E
) in
the proper order, followed by a nullIOException
- if an I/O error occursprivate void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
IOException
- if an I/O error occursReentrantLock lock
Condition notEmpty
PriorityQueue<E> q
Object result
java.util.concurrent.Semaphore.Sync sync
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
ClassNotFoundException
- if the class of a serialized object
could not be foundIOException
- if an I/O error occursprivate void writeObject(ObjectOutputStream s) throws IOException
IOException
- if an I/O error occursReentrantLock qlock
java.util.concurrent.SynchronousQueue.WaitQueue waitingProducers
java.util.concurrent.SynchronousQueue.WaitQueue waitingConsumers
private void writeObject(ObjectOutputStream s) throws IOException
ThreadLocalRandom
to a stream (that is, serializes it).IOException
- if an I/O error occursprivate Object readResolve()
current
thread's 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
- alwaysprivate Object writeReplace()
DoubleBinaryOperator function
long identity
private Object readResolve()
DoubleAccumulator
object with initial state
held by this proxy.double value
DoubleBinaryOperator function
long identity
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
private Object readResolve()
DoubleAdder
object with initial state
held by this proxy.double value
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
LongBinaryOperator function
long identity
private Object readResolve()
LongAccumulator
object with initial state
held by this proxy.long value
LongBinaryOperator function
long identity
private void readObject(ObjectInputStream s) throws InvalidObjectException
InvalidObjectException
- alwaysprivate Object writeReplace()
private Object readResolve()
LongAdder
object with initial state
held by this proxy.long value
long state
int state
java.util.concurrent.locks.ReentrantLock.Sync sync
ReentrantReadWriteLock.ReadLock readerLock
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
IOException
ClassNotFoundException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
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
IOException
ClassNotFoundException
String pattern
int flags
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
NullPointerException
- if s is null.IOException
ClassNotFoundException
byte[] encryptedContent
String sealAlg
String paramsAlg
byte[] encodedParams
That is, cipher.getParameters().getEncoded()
.
byte[] key
String algorithm
boolean hasWildCard
String pathName
String name
String fileName
int lineNumber
int columnNumber
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
IOException
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private void writeObject(ObjectOutputStream oos) throws IOException
IOException
LinkedList<E> elements
Subject this$0
String prompt
String[] choices
int defaultChoice
boolean multipleSelectionsAllowed
int[] selections
choices
list.Locale locale
String prompt
boolean echoOn
char[] inputPassword
int messageType
String message
Callback callback
private void readObject(ObjectInputStream s) throws IOException, NotActiveException, ClassNotFoundException
private void writeObject(ObjectOutputStream s) throws IOException
X500Principal
is serialized
by writing out its DER-encoded form
(the value of getEncoded
is serialized).IOException
SQLException ex
SQLException
that the driver will throw to the
application when an error occurs and the pooled connection is no
longer usable.SQLException exception
PreparedStatement statement
int errorCode
Exception exception
Exception
that represents the error.Exception nested
SourceLocator locator
Throwable containedException
Exception exception
Exception
for the
TransformerFactoryConfigurationError
.private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
- thrown by ObjectInputStream
ClassNotFoundException
- thrown by ObjectInputStream
private void writeObject(ObjectOutputStream out) throws IOException
IOException
- thrown by ObjectOutputStream
short code
short code
short code
Exception exception
String publicId
SAXParseException.getPublicId()
String systemId
SAXParseException.getSystemId()
int lineNumber
SAXParseException.getLineNumber()
int columnNumber
SAXParseException.getColumnNumber()