
- Java.io package classes
- 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 extras
- Java.io - Interfaces
- Java.io - Exceptions
- Java.io package Useful Resources
- Java.io - Discussion
Java.io.ObjectInputStream.GetField Class
Introduction
The Java.io.ObjectInputStream.GetField class provide access to the persistent fields read from the input stream.
Class declaration
Following is the declaration for Java.io.ObjectInputStream.GetField class −
public abstract static class ObjectInputStream.GetField extends Object
Class constructors
Sr.No. | Constructor & Description |
---|---|
1 | ObjectInputStream.GetField() Single Constructor |
Class methods
Sr.No. | Method & Description |
---|---|
1 | abstract boolean defaulted(String name)
This method return true if the named field is defaulted and has no value in this stream. |
2 | abstract boolean get(String name, boolean val)
This method gets the value of the named boolean field from the persistent field. |
3 | abstract byte get(String name, byte val)
This method gets the value of the named byte field from the persistent field. |
4 | abstract char get(String name, char val)
This method gets the value of the named char field from the persistent field. |
5 | abstract double get(String name, double val)
This method gets the value of the named double field from the persistent field. |
6 | abstract float get(String name, float val)
This method gets the value of the named float field from the persistent field. |
7 | abstract int get(String name, int val)
This method gets the value of the named int field from the persistent field. |
8 | abstract long get(String name, long val)
This method gets the value of the named long field from the persistent field. |
9 | abstract Object get(String name, Object val)
This method get the value of the named Object field from the persistent field. |
10 | abstract short get(String name, short val)
This method gets the value of the named short field from the persistent field. |
11 | abstract ObjectStreamClass getObjectStreamClass()
This method gets the ObjectStreamClass that describes the fields in the stream. |
Methods inherited
This class inherits methods from the following classes −
- Java.io.Object