📅  最后修改于: 2020-11-15 02:47:06             🧑  作者: Mango
Java.io.ObjectOutputStream.PutField类提供对要写入ObjectOutput的持久字段的编程访问。
以下是Java.io.ObjectOutputStream.PutField类的声明-
public abstract static class ObjectOutputStream.PutField
extends Object
Sr.No. | Constructor & Description |
---|---|
1 |
ObjectOutputStream.PutField() Single Constructor |
Sr.No. | Method & Description |
---|---|
1 | abstract void put(String name, boolean val)
This method puts the value of the named boolean field into the persistent field. |
2 | abstract void put(String name, byte val)
This method puts the value of the named byte field into the persistent field. |
3 | abstract void put(String name, char val)
This method puts the value of the named char field into the persistent field. |
4 | abstract void put(String name, double val)
This method puts the value of the named double field into the persistent field. |
5 | abstract void put(String name, float val)
This method puts the value of the named float field into the persistent field. |
6 | abstract void put(String name, int val)
This method puts the value of the named int field into the persistent field. |
7 | abstract void put(String name, long val)
This method puts the value of the named long field into the persistent field. |
8 | abstract void put(String name, Object val)
This method puts the value of the named Object field into the persistent field. |
9 | abstract void put(String name, short val)
This method puts the value of the named short field into the persistent field. |
此类从以下类继承方法-