
- Java.io - Home
- Java.io - BufferedInputStream
- Java.io - BufferedOutputStream
- Java.io - BufferedReader
- Java.io - BufferedWriter
- Java.io - ByteArrayInputStream
- Java.io - ByteArrayOutputStream
- Java.io - CharArrayReader
- Java.io - CharArrayWriter
- Java.io - Console
- Java.io - DataInputStream
- Java.io - DataOutputStream
- Java.io - File
- Java.io - FileDescriptor
- Java.io - FileInputStream
- Java.io - FileOutputStream
- Java.io - FilePermission
- Java.io - FileReader
- Java.io - FileWriter
- Java.io - FilterInputStream
- Java.io - FilterOutputStream
- Java.io - FilterReader
- Java.io - FilterWriter
- Java.io - InputStream
- Java.io - InputStreamReader
- Java.io - LineNumberInputStream
- Java.io - LineNumberReader
- Java.io - ObjectInputStream
- Java.io - ObjectInputStream.GetField
- Java.io - ObjectOutputStream
- io - ObjectOutputStream.PutField
- Java.io - ObjectStreamClass
- Java.io - ObjectStreamField
- Java.io - OutputStream
- Java.io - OutputStreamWriter
- Java.io - PipedInputStream
- Java.io - PipedOutputStream
- Java.io - PipedReader
- Java.io - PipedWriter
- Java.io - PrintStream
- Java.io - PrintWriter
- Java.io - PushbackInputStream
- Java.io - PushbackReader
- Java.io - RandomAccessFile
- Java.io - Reader
- Java.io - SequenceInputStream
- Java.io - SerializablePermission
- Java.io - StreamTokenizer
- Java.io - StringBufferInputStream
- Java.io - StringReader
- Java.io - StringWriter
- Java.io - Writer
- Java.io package Useful Resources
- Java.io - Discussion
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
Sr.No. | Constructor & Description |
---|---|
1 |
ObjectOutputStream.PutField() Single Constructor |
Class methods
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. |
Methods inherited
This class inherits methods from the following classes −
- Java.io.Object