java.io
Class ObjectInputStream.GetField

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.io.ObjectInputStream.GetField
Enclosing class:
ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream

public abstract static class ObjectInputStream.GetField
extends Object sample code for java.lang.Object definition code for java.lang.Object

Provide access to the persistent fields read from the input stream.


Constructor Summary
ObjectInputStream.GetField sample code for java.io.ObjectInputStream.GetField.ObjectInputStream.GetField() definition code for java.io.ObjectInputStream.GetField.ObjectInputStream.GetField() ()
           
 
Method Summary
abstract  boolean defaulted sample code for java.io.ObjectInputStream.GetField.defaulted(java.lang.String) definition code for java.io.ObjectInputStream.GetField.defaulted(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Return true if the named field is defaulted and has no value in this stream.
abstract  boolean get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, boolean) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, boolean) (String sample code for java.lang.String definition code for java.lang.String  name, boolean val)
          Get the value of the named boolean field from the persistent field.
abstract  byte get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, byte) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, byte) (String sample code for java.lang.String definition code for java.lang.String  name, byte val)
          Get the value of the named byte field from the persistent field.
abstract  char get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, char) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, char) (String sample code for java.lang.String definition code for java.lang.String  name, char val)
          Get the value of the named char field from the persistent field.
abstract  double get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, double) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, double) (String sample code for java.lang.String definition code for java.lang.String  name, double val)
          Get the value of the named double field from the persistent field.
abstract  float get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, float) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, float) (String sample code for java.lang.String definition code for java.lang.String  name, float val)
          Get the value of the named float field from the persistent field.
abstract  int get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, int) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, int) (String sample code for java.lang.String definition code for java.lang.String  name, int val)
          Get the value of the named int field from the persistent field.
abstract  long get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, long) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, long) (String sample code for java.lang.String definition code for java.lang.String  name, long val)
          Get the value of the named long field from the persistent field.
abstract  Object sample code for java.lang.Object definition code for java.lang.Object get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, java.lang.Object) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, java.lang.Object) (String sample code for java.lang.String definition code for java.lang.String  name, Object sample code for java.lang.Object definition code for java.lang.Object  val)
          Get the value of the named Object field from the persistent field.
abstract  short get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, short) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, short) (String sample code for java.lang.String definition code for java.lang.String  name, short val)
          Get the value of the named short field from the persistent field.
abstract  ObjectStreamClass sample code for java.io.ObjectStreamClass definition code for java.io.ObjectStreamClass getObjectStreamClass sample code for java.io.ObjectInputStream.GetField.getObjectStreamClass() definition code for java.io.ObjectInputStream.GetField.getObjectStreamClass() ()
          Get the ObjectStreamClass that describes the fields in the stream.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

ObjectInputStream.GetField sample code for java.io.ObjectInputStream.GetField() definition code for java.io.ObjectInputStream.GetField()

public ObjectInputStream.GetField()
Method Detail

getObjectStreamClass sample code for java.io.ObjectInputStream.GetField.getObjectStreamClass() definition code for java.io.ObjectInputStream.GetField.getObjectStreamClass()

public abstract ObjectStreamClass sample code for java.io.ObjectStreamClass definition code for java.io.ObjectStreamClass  getObjectStreamClass()
Get the ObjectStreamClass that describes the fields in the stream.

Returns:
the descriptor class that describes the serializable fields

defaulted sample code for java.io.ObjectInputStream.GetField.defaulted(java.lang.String) definition code for java.io.ObjectInputStream.GetField.defaulted(java.lang.String)

public abstract boolean defaulted(String sample code for java.lang.String definition code for java.lang.String  name)
                           throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Return true if the named field is defaulted and has no value in this stream.

Parameters:
name - the name of the field
Returns:
true, if and only if the named field is defaulted
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - if there are I/O errors while reading from the underlying InputStream
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if name does not correspond to a serializable field

get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, boolean) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, boolean)

public abstract boolean get(String sample code for java.lang.String definition code for java.lang.String  name,
                            boolean val)
                     throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Get the value of the named boolean field from the persistent field.

Parameters:
name - the name of the field
val - the default value to use if name does not have a value
Returns:
the value of the named boolean field
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - if there are I/O errors while reading from the underlying InputStream
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if type of name is not serializable or if the field type is incorrect

get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, byte) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, byte)

public abstract byte get(String sample code for java.lang.String definition code for java.lang.String  name,
                         byte val)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Get the value of the named byte field from the persistent field.

Parameters:
name - the name of the field
val - the default value to use if name does not have a value
Returns:
the value of the named byte field
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - if there are I/O errors while reading from the underlying InputStream
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if type of name is not serializable or if the field type is incorrect

get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, char) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, char)

public abstract char get(String sample code for java.lang.String definition code for java.lang.String  name,
                         char val)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Get the value of the named char field from the persistent field.

Parameters:
name - the name of the field
val - the default value to use if name does not have a value
Returns:
the value of the named char field
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - if there are I/O errors while reading from the underlying InputStream
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if type of name is not serializable or if the field type is incorrect

get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, short) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, short)

public abstract short get(String sample code for java.lang.String definition code for java.lang.String  name,
                          short val)
                   throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Get the value of the named short field from the persistent field.

Parameters:
name - the name of the field
val - the default value to use if name does not have a value
Returns:
the value of the named short field
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - if there are I/O errors while reading from the underlying InputStream
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if type of name is not serializable or if the field type is incorrect

get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, int) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, int)

public abstract int get(String sample code for java.lang.String definition code for java.lang.String  name,
                        int val)
                 throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Get the value of the named int field from the persistent field.

Parameters:
name - the name of the field
val - the default value to use if name does not have a value
Returns:
the value of the named int field
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - if there are I/O errors while reading from the underlying InputStream
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if type of name is not serializable or if the field type is incorrect

get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, long) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, long)

public abstract long get(String sample code for java.lang.String definition code for java.lang.String  name,
                         long val)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Get the value of the named long field from the persistent field.

Parameters:
name - the name of the field
val - the default value to use if name does not have a value
Returns:
the value of the named long field
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - if there are I/O errors while reading from the underlying InputStream
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if type of name is not serializable or if the field type is incorrect

get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, float) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, float)

public abstract float get(String sample code for java.lang.String definition code for java.lang.String  name,
                          float val)
                   throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Get the value of the named float field from the persistent field.

Parameters:
name - the name of the field
val - the default value to use if name does not have a value
Returns:
the value of the named float field
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - if there are I/O errors while reading from the underlying InputStream
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if type of name is not serializable or if the field type is incorrect

get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, double) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, double)

public abstract double get(String sample code for java.lang.String definition code for java.lang.String  name,
                           double val)
                    throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Get the value of the named double field from the persistent field.

Parameters:
name - the name of the field
val - the default value to use if name does not have a value
Returns:
the value of the named double field
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - if there are I/O errors while reading from the underlying InputStream
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if type of name is not serializable or if the field type is incorrect

get sample code for java.io.ObjectInputStream.GetField.get(java.lang.String, java.lang.Object) definition code for java.io.ObjectInputStream.GetField.get(java.lang.String, java.lang.Object)

public abstract Object sample code for java.lang.Object definition code for java.lang.Object  get(String sample code for java.lang.String definition code for java.lang.String  name,
                           Object sample code for java.lang.Object definition code for java.lang.Object  val)
                    throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Get the value of the named Object field from the persistent field.

Parameters:
name - the name of the field
val - the default value to use if name does not have a value
Returns:
the value of the named Object field
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - if there are I/O errors while reading from the underlying InputStream
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if type of name is not serializable or if the field type is incorrect