Class: java.io.ObjectOutputStream.PutField
- public static abstract class ObjectOutputStream.PutField
Provide programmatic access to the persistent fields to be written
to ObjectOutput.
Methods
-
ObjectOutputStream.PutFieldtop
public ObjectOutputStream.PutField() -
puttop
public abstract void put(String name, byte val)Put the value of the named byte field into the persistent field. -
puttop
public abstract void put(String name, char val)Put the value of the named char field into the persistent field. -
puttop
public abstract void put(String name, double val)Put the value of the named double field into the persistent field. -
puttop
public abstract void put(String name, float val)Put the value of the named float field into the persistent field. -
puttop
public abstract void put(String name, int val)Put the value of the named int field into the persistent field. -
puttop
public abstract void put(String name, long val)Put the value of the named long field into the persistent field. -
puttop
Put the value of the named Object field into the persistent field. -
puttop
public abstract void put(String name, short val)Put the value of the named short field into the persistent field. -
puttop
public abstract void put(String name, boolean val)Put the value of the named boolean field into the persistent field. -
writetop
Write the data and fields to the specified ObjectOutput stream, which must be the same stream that produced thisPutFieldobject.
