java.lang.Object | |
↳ | java.io.ObjectInputStream.GetField |
GetField is an inner class that provides access to the persistent fields read from the source stream.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Indicates if the field identified by
name is defaulted. | |||||||||||
Gets the value of the byte field identified by
name from the
persistent field. | |||||||||||
Gets the value of the long field identified by
name from the
persistent field. | |||||||||||
Gets the value of the object field identified by
name from
the persistent field. | |||||||||||
Gets the value of the integer field identified by
name from
the persistent field. | |||||||||||
Gets the value of the short field identified by
name from the
persistent field. | |||||||||||
Gets the value of the float field identified by
name from the
persistent field. | |||||||||||
Gets the value of the double field identified by
name from
the persistent field. | |||||||||||
Gets the value of the boolean field identified by
name from
the persistent field. | |||||||||||
Gets the value of the character field identified by
name from
the persistent field. | |||||||||||
Gets the ObjectStreamClass that describes a field.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Indicates if the field identified by name
is defaulted. This
means that it has no value in this stream.
name | the name of the field to check. |
---|
true
if the field is defaulted, false
otherwise.IllegalArgumentException | if name does not identify a serializable field. |
---|---|
IOException | if an error occurs while reading from the source input stream. |
Gets the value of the byte field identified by name
from the
persistent field.
name | the name of the field to get. |
---|---|
defaultValue | the default value that is used if the field does not have a value when read from the source stream. |
name
.IOException | if an error occurs while reading from the source input stream. |
---|---|
IllegalArgumentException | if the type of the field identified by name is
not byte .
|
Gets the value of the long field identified by name
from the
persistent field.
name | the name of the field to get. |
---|---|
defaultValue | the default value that is used if the field does not have a value when read from the source stream. |
name
.IOException | if an error occurs while reading from the source input stream. |
---|---|
IllegalArgumentException | if the type of the field identified by name is
not long .
|
Gets the value of the object field identified by name
from
the persistent field.
name | the name of the field to get. |
---|---|
defaultValue | the default value that is used if the field does not have a value when read from the source stream. |
name
.IOException | if an error occurs while reading from the source input stream. |
---|---|
IllegalArgumentException | if the type of the field identified by name is
not Object .
|
Gets the value of the integer field identified by name
from
the persistent field.
name | the name of the field to get. |
---|---|
defaultValue | the default value that is used if the field does not have a value when read from the source stream. |
name
.IOException | if an error occurs while reading from the source input stream. |
---|---|
IllegalArgumentException | if the type of the field identified by name is
not int .
|
Gets the value of the short field identified by name
from the
persistent field.
name | the name of the field to get. |
---|---|
defaultValue | the default value that is used if the field does not have a value when read from the source stream. |
name
.IOException | if an error occurs while reading from the source input stream. |
---|---|
IllegalArgumentException | if the type of the field identified by name is
not short .
|
Gets the value of the float field identified by name
from the
persistent field.
name | the name of the field to get. |
---|---|
defaultValue | the default value that is used if the field does not have a value when read from the source stream. |
name
.IOException | if an error occurs while reading from the source input stream. |
---|---|
IllegalArgumentException | if the type of the field identified by float is
not char .
|
Gets the value of the double field identified by name
from
the persistent field.
name | the name of the field to get. |
---|---|
defaultValue | the default value that is used if the field does not have a value when read from the source stream. |
name
.IOException | if an error occurs while reading from the source input stream. |
---|---|
IllegalArgumentException | if the type of the field identified by name is
not double .
|
Gets the value of the boolean field identified by name
from
the persistent field.
name | the name of the field to get. |
---|---|
defaultValue | the default value that is used if the field does not have a value when read from the source stream. |
name
.IOException | if an error occurs while reading from the source input stream. |
---|---|
IllegalArgumentException | if the type of the field identified by name is
not boolean .
|
Gets the value of the character field identified by name
from
the persistent field.
name | the name of the field to get. |
---|---|
defaultValue | the default value that is used if the field does not have a value when read from the source stream. |
name
.IOException | if an error occurs while reading from the source input stream. |
---|---|
IllegalArgumentException | if the type of the field identified by name is
not char .
|
Gets the ObjectStreamClass that describes a field.