| 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 
            nameis defaulted. | ||||||||||
|  | 
           Gets the value of the byte field identified by 
            namefrom the persistent field. | ||||||||||
|  | 
           Gets the value of the long field identified by 
            namefrom the persistent field. | ||||||||||
|  | 
           Gets the value of the object field identified by 
            namefrom the persistent field. | ||||||||||
|  | 
           Gets the value of the integer field identified by 
            namefrom the persistent field. | ||||||||||
|  | 
           Gets the value of the short field identified by 
            namefrom the persistent field. | ||||||||||
|  | 
           Gets the value of the float field identified by 
            namefrom the persistent field. | ||||||||||
|  | 
           Gets the value of the double field identified by 
            namefrom the persistent field. | ||||||||||
|  | 
           Gets the value of the boolean field identified by 
            namefrom the persistent field. | ||||||||||
|  | 
           Gets the value of the character field identified by 
            namefrom 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 namedoes 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 nameis notbyte. | 
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 nameis notlong. | 
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 nameis notObject. | 
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 nameis notint. | 
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 nameis notshort. | 
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 floatis notchar. | 
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 nameis notdouble. | 
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 nameis notboolean. | 
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 nameis notchar. | 
Gets the ObjectStreamClass that describes a field.