java.lang.Object | |
↳ | java.io.ObjectOutputStream.PutField |
PutField is an inner class to provide access to the persistent fields that are written to the target stream.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Puts the value of the Object field identified by
name to the
persistent field.
| |||||||||||
Puts the value of the integer field identified by
name to the
persistent field.
| |||||||||||
Puts the value of the float field identified by
name to the
persistent field.
| |||||||||||
Puts the value of the boolean field identified by
name to the
persistent field.
| |||||||||||
Puts the value of the byte field identified by
name to the
persistent field.
| |||||||||||
Puts the value of the short field identified by
name to the
persistent field.
| |||||||||||
Puts the value of the long field identified by
name to the
persistent field.
| |||||||||||
Puts the value of the character field identified by
name to
the persistent field.
| |||||||||||
Puts the value of the double field identified by
name to the
persistent field.
| |||||||||||
This method was deprecated
in API level 1.
This method is unsafe and may corrupt the target stream.
Use ObjectOutputStream#writeFields() instead.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Puts the value of the Object field identified by name
to the
persistent field.
name | the name of the field to serialize. |
---|---|
value | the value that is put to the persistent field. |
Puts the value of the integer field identified by name
to the
persistent field.
name | the name of the field to serialize. |
---|---|
value | the value that is put to the persistent field. |
Puts the value of the float field identified by name
to the
persistent field.
name | the name of the field to serialize. |
---|---|
value | the value that is put to the persistent field. |
Puts the value of the boolean field identified by name
to the
persistent field.
name | the name of the field to serialize. |
---|---|
value | the value that is put to the persistent field. |
Puts the value of the byte field identified by name
to the
persistent field.
name | the name of the field to serialize. |
---|---|
value | the value that is put to the persistent field. |
Puts the value of the short field identified by name
to the
persistent field.
name | the name of the field to serialize. |
---|---|
value | the value that is put to the persistent field. |
Puts the value of the long field identified by name
to the
persistent field.
name | the name of the field to serialize. |
---|---|
value | the value that is put to the persistent field. |
Puts the value of the character field identified by name
to
the persistent field.
name | the name of the field to serialize. |
---|---|
value | the value that is put to the persistent field. |
Puts the value of the double field identified by name
to the
persistent field.
name | the name of the field to serialize. |
---|---|
value | the value that is put to the persistent field. |
This method was deprecated
in API level 1.
This method is unsafe and may corrupt the target stream.
Use ObjectOutputStream#writeFields() instead.
Writes the fields to the target stream out
.
out | the target stream |
---|
IOException | if an error occurs while writing to the target stream. |
---|