Home » openjdk-7 » java » io » [javadoc | source]
java.io
class: EmulatedFieldsForLoading [javadoc | source]
java.lang.Object
   java.io.ObjectInputStream.GetField
      java.io.EmulatedFieldsForLoading
An EmulatedFieldsForLoading is an object that represents a set of emulated fields for an object being loaded. It is a concrete implementation for ObjectInputStream.GetField
Constructor:
 EmulatedFieldsForLoading(ObjectStreamClass streamClass) 
    Constructs a new instance of EmulatedFieldsForDumping.
    Parameters:
    streamClass - an ObjectStreamClass, defining the class for which to emulate fields.
Method from java.io.EmulatedFieldsForLoading Summary:
defaulted,   emulatedFields,   get,   get,   get,   get,   get,   get,   get,   get,   get,   getObjectStreamClass
Methods from java.io.ObjectInputStream$GetField:
defaulted,   get,   get,   get,   get,   get,   get,   get,   get,   get,   getObjectStreamClass
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.io.EmulatedFieldsForLoading Detail:
 public boolean defaulted(String name) throws IOException, IllegalArgumentException 
    Return a boolean indicating if the field named name has been assigned a value explicitly (false) or if it still holds a default value for the type (true) because it hasn't been assigned to yet.
 EmulatedFields emulatedFields() 
    Return the actual EmulatedFields instance used by the receiver. We have the actual work in a separate class so that the code can be shared. The receiver has to be of a subclass of GetField.
 public byte get(String name,
    byte defaultValue) throws IOException, IllegalArgumentException 
    Find and return the byte value of a given field named name in the receiver. If the field has not been assigned any value yet, the default value defaultValue is returned instead.
 public char get(String name,
    char defaultValue) throws IOException, IllegalArgumentException 
    Find and return the char value of a given field named name in the receiver. If the field has not been assigned any value yet, the default value defaultValue is returned instead.
 public double get(String name,
    double defaultValue) throws IOException, IllegalArgumentException 
    Find and return the double value of a given field named name in the receiver. If the field has not been assigned any value yet, the default value defaultValue is returned instead.
 public float get(String name,
    float defaultValue) throws IOException, IllegalArgumentException 
    Find and return the float value of a given field named name in the receiver. If the field has not been assigned any value yet, the default value defaultValue is returned instead.
 public int get(String name,
    int defaultValue) throws IOException, IllegalArgumentException 
    Find and return the int value of a given field named name in the receiver. If the field has not been assigned any value yet, the default value defaultValue is returned instead.
 public long get(String name,
    long defaultValue) throws IOException, IllegalArgumentException 
    Find and return the long value of a given field named name in the receiver. If the field has not been assigned any value yet, the default value defaultValue is returned instead.
 public Object get(String name,
    Object defaultValue) throws IOException, IllegalArgumentException 
    Find and return the Object value of a given field named name in the receiver. If the field has not been assigned any value yet, the default value defaultValue is returned instead.
 public short get(String name,
    short defaultValue) throws IOException, IllegalArgumentException 
    Find and return the short value of a given field named name in the receiver. If the field has not been assigned any value yet, the default value defaultValue is returned instead.
 public boolean get(String name,
    boolean defaultValue) throws IOException, IllegalArgumentException 
    Find and return the boolean value of a given field named name in the receiver. If the field has not been assigned any value yet, the default value defaultValue is returned instead.
 public ObjectStreamClass getObjectStreamClass() 
    Return the class descriptor for which the emulated fields are defined.