public abstract static class ObjectInputStream.GetField extends Object
Constructor and Description |
---|
GetField() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
defaulted(String name)
如果指定的字段是违约,在这个流无值返回true。
|
abstract boolean |
get(String name, boolean val)
从持久字段中获取已命名的布尔字段的值。
|
abstract byte |
get(String name, byte val)
从持久字段中获取命名字节字段的值。
|
abstract char |
get(String name, char val)
从持久字段中获取命名字符字段的值。
|
abstract double |
get(String name, double val)
从持久字段中获取命名双字段的值。
|
abstract float |
get(String name, float val)
从持久字段中获取已命名的浮动字段的值。
|
abstract int |
get(String name, int val)
获得指定的int字段从持久性字段的值。
|
abstract long |
get(String name, long val)
从持久字段中获取已命名的长字段的值。
|
abstract Object |
get(String name, Object val)
从“持久性”字段中获取命名对象字段的值。
|
abstract short |
get(String name, short val)
从持久字段中获取已命名的短字段的值。
|
abstract ObjectStreamClass |
getObjectStreamClass()
把ObjectStreamClass描述流中的领域。
|
public abstract ObjectStreamClass getObjectStreamClass()
public abstract boolean defaulted(String name) throws IOException
name
-字段的名称
IOException
-如果有I/O而从底层
InputStream
读数误差
IllegalArgumentException
-如果
name
不符合可序列化字段
public abstract boolean get(String name, boolean val) throws IOException
name
-字段的名称
val
-使用如果
name
没有值的默认值
boolean
字段的值
IOException
-如果有I/O而从底层
InputStream
读数误差
IllegalArgumentException
如果型
name
无法序列化或如果字段类型不正确
public abstract byte get(String name, byte val) throws IOException
name
-字段的名称
val
-使用如果
name
没有值的默认值
byte
字段的值
IOException
-如果有I/O而从底层
InputStream
读数误差
IllegalArgumentException
如果型
name
无法序列化或如果字段类型不正确
public abstract char get(String name, char val) throws IOException
name
-字段的名称
val
-使用如果
name
没有值的默认值
char
字段的值
IOException
-如果有I/O而从底层
InputStream
读数误差
IllegalArgumentException
如果型
name
无法序列化或如果字段类型不正确
public abstract short get(String name, short val) throws IOException
name
-字段的名称
val
-使用如果
name
没有值的默认值
short
字段的值
IOException
-如果有I/O而从底层
InputStream
读数误差
IllegalArgumentException
如果型
name
无法序列化或如果字段类型不正确
public abstract int get(String name, int val) throws IOException
name
-字段的名称
val
-使用如果
name
没有值的默认值
int
字段的值
IOException
-如果有I/O而从底层
InputStream
读数误差
IllegalArgumentException
如果型
name
无法序列化或如果字段类型不正确
public abstract long get(String name, long val) throws IOException
name
-字段的名称
val
-使用如果
name
没有值的默认值
long
字段的值
IOException
-如果有I/O而从底层
InputStream
读数误差
IllegalArgumentException
如果型
name
无法序列化或如果字段类型不正确
public abstract float get(String name, float val) throws IOException
name
-字段的名称
val
-使用如果
name
没有值的默认值
float
字段的值
IOException
-如果有I/O而从底层
InputStream
读数误差
IllegalArgumentException
如果型
name
无法序列化或如果字段类型不正确
public abstract double get(String name, double val) throws IOException
name
-字段的名称
val
-使用如果
name
没有值的默认值
double
字段的值
IOException
-如果有I/O而从底层
InputStream
读数误差
IllegalArgumentException
如果型
name
无法序列化或如果字段类型不正确
public abstract Object get(String name, Object val) throws IOException
name
-字段的名称
val
-使用如果
name
没有值的默认值
Object
字段的值
IOException
-如果有I/O而从底层
InputStream
读数误差
IllegalArgumentException
如果型
name
无法序列化或如果字段类型不正确
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.