📌  相关文章
📜  Java.io.ObjectInputStream.GetField类

📅  最后修改于: 2020-11-15 02:46:21             🧑  作者: Mango


介绍

Java.io.ObjectInputStream.GetField类提供对从输入流读取的持久字段的访问。

类声明

以下是Java.io.ObjectInputStream.GetField类的声明-

public abstract static class ObjectInputStream.GetField
   extends Object

类的构造函数

Sr.No. Constructor & Description
1

ObjectInputStream.GetField()

Single Constructor

类方法

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 charget(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.

方法继承

此类从以下类继承方法-

  • Java对象