English 中文(简体)
Java.io package classes

Java.io package extras

Java.io package Useful Resources

Selected Reading

Java.io - ObjectInputStream.GetField
  • 时间:2024-12-22

Java.io.ObjectInputStream.GetField Class


Previous Page Next Page  

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 −

pubpc 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

Advertisements