Wednesday, January 18, 2017

Java.io.ObjectOutputStream.PutField Class

Introduction

The Java.io.ObjectOutputStream.PutField class provide programmatic access to the persistent fields to be written to ObjectOutput.

Class declaration

Following is the declaration for Java.io.ObjectOutputStream.PutField class:
public abstract static class ObjectOutputStream.PutField
  extends Object

Class constructors

S.N. Constructor & Description
1 ObjectOutputStream.PutField()
Single Constructor

Class methods

S.N. 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.

Methods inherited

This class inherits methods from the following classes:
  • Java.io.Object

No comments:

Post a Comment