java.lang.Object | |
↳ | java.io.ObjectInputStream.GetField |
Provide access to the persistent fields read from the input stream.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return true if the named field is defaulted and has no value in this
stream.
| |||||||||||
Get the value of the named byte field from the persistent field.
| |||||||||||
Get the value of the named long field from the persistent field.
| |||||||||||
Get the value of the named Object field from the persistent field.
| |||||||||||
Get the value of the named int field from the persistent field.
| |||||||||||
Get the value of the named short field from the persistent field.
| |||||||||||
Get the value of the named float field from the persistent field.
| |||||||||||
Get the value of the named double field from the persistent field.
| |||||||||||
Get the value of the named boolean field from the persistent field.
| |||||||||||
Get the value of the named char field from the persistent field.
| |||||||||||
Get the ObjectStreamClass that describes the fields in the stream.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Return true if the named field is defaulted and has no value in this stream.
name | the name of the field |
---|
IOException | if there are I/O errors while reading from
the underlying InputStream |
---|---|
IllegalArgumentException | if name does not
correspond to a serializable field
|
Get the value of the named byte field from the persistent field.
name | the name of the field |
---|---|
val | the default value to use if name does not
have a value |
byte
fieldIOException | if there are I/O errors while reading from the
underlying InputStream |
---|---|
IllegalArgumentException | if type of name is
not serializable or if the field type is incorrect
|
Get the value of the named long field from the persistent field.
name | the name of the field |
---|---|
val | the default value to use if name does not
have a value |
long
fieldIOException | if there are I/O errors while reading from the
underlying InputStream |
---|---|
IllegalArgumentException | if type of name is
not serializable or if the field type is incorrect
|
Get the value of the named Object field from the persistent field.
name | the name of the field |
---|---|
val | the default value to use if name does not
have a value |
Object
fieldIOException | if there are I/O errors while reading from the
underlying InputStream |
---|---|
IllegalArgumentException | if type of name is
not serializable or if the field type is incorrect
|
Get the value of the named int field from the persistent field.
name | the name of the field |
---|---|
val | the default value to use if name does not
have a value |
int
fieldIOException | if there are I/O errors while reading from the
underlying InputStream |
---|---|
IllegalArgumentException | if type of name is
not serializable or if the field type is incorrect
|
Get the value of the named short field from the persistent field.
name | the name of the field |
---|---|
val | the default value to use if name does not
have a value |
short
fieldIOException | if there are I/O errors while reading from the
underlying InputStream |
---|---|
IllegalArgumentException | if type of name is
not serializable or if the field type is incorrect
|
Get the value of the named float field from the persistent field.
name | the name of the field |
---|---|
val | the default value to use if name does not
have a value |
float
fieldIOException | if there are I/O errors while reading from the
underlying InputStream |
---|---|
IllegalArgumentException | if type of name is
not serializable or if the field type is incorrect
|
Get the value of the named double field from the persistent field.
name | the name of the field |
---|---|
val | the default value to use if name does not
have a value |
double
fieldIOException | if there are I/O errors while reading from the
underlying InputStream |
---|---|
IllegalArgumentException | if type of name is
not serializable or if the field type is incorrect
|
Get the value of the named boolean field from the persistent field.
name | the name of the field |
---|---|
val | the default value to use if name does not
have a value |
boolean
fieldIOException | if there are I/O errors while reading from the
underlying InputStream |
---|---|
IllegalArgumentException | if type of name is
not serializable or if the field type is incorrect
|
Get the value of the named char field from the persistent field.
name | the name of the field |
---|---|
val | the default value to use if name does not
have a value |
char
fieldIOException | if there are I/O errors while reading from the
underlying InputStream |
---|---|
IllegalArgumentException | if type of name is
not serializable or if the field type is incorrect
|
Get the ObjectStreamClass that describes the fields in the stream.