Build 1.0_r1(from source)

java.io
Class EmulatedFieldsForDumping

java.lang.Object
  extended by java.io.ObjectOutputStream.PutField
      extended by java.io.EmulatedFieldsForDumping

 class EmulatedFieldsForDumping
extends ObjectOutputStream.PutField

An EmulatedFieldsForDumping is an object that represents a set of emulated fields for an object being dumped. It is a concrete implementation for ObjectOutputStream.PutField

See Also:
ObjectOutputStream.PutField, EmulatedFieldsForLoading

Constructor Summary
EmulatedFieldsForDumping(ObjectStreamClass streamClass)
          Constructs a new instance of EmulatedFieldsForDumping.
 
Method Summary
(package private)  EmulatedFields emulatedFields()
          Return the actual EmulatedFields instance used by the receiver.
 void put(String name, boolean value)
          Find and set the boolean value of a given field named name in the receiver.
 void put(String name, byte value)
          Find and set the byte value of a given field named name in the receiver.
 void put(String name, char value)
          Find and set the char value of a given field named name in the receiver.
 void put(String name, double value)
          Find and set the double value of a given field named name in the receiver.
 void put(String name, float value)
          Find and set the float value of a given field named name in the receiver.
 void put(String name, int value)
          Find and set the int value of a given field named name in the receiver.
 void put(String name, long value)
          Find and set the long value of a given field named name in the receiver.
 void put(String name, Object value)
          Find and set the Object value of a given field named name in the receiver.
 void put(String name, short value)
          Find and set the short value of a given field named name in the receiver.
 void write(ObjectOutput output)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmulatedFieldsForDumping

EmulatedFieldsForDumping(ObjectStreamClass streamClass)
Constructs a new instance of EmulatedFieldsForDumping.

Parameters:
streamClass - a ObjectStreamClass, which describe the fields to be emulated (names, types, etc).
Method Detail

emulatedFields

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 PutField.

Returns:
array of ObjectSlot the receiver represents.

put

public void put(String name,
                byte value)
Find and set the byte value of a given field named name in the receiver.

Specified by:
put in class ObjectOutputStream.PutField
Parameters:
name - A String, the name of the field to set
value - New value for the field.

put

public void put(String name,
                char value)
Find and set the char value of a given field named name in the receiver.

Specified by:
put in class ObjectOutputStream.PutField
Parameters:
name - A String, the name of the field to set
value - New value for the field.

put

public void put(String name,
                double value)
Find and set the double value of a given field named name in the receiver.

Specified by:
put in class ObjectOutputStream.PutField
Parameters:
name - A String, the name of the field to set
value - New value for the field.

put

public void put(String name,
                float value)
Find and set the float value of a given field named name in the receiver.

Specified by:
put in class ObjectOutputStream.PutField
Parameters:
name - A String, the name of the field to set
value - New value for the field.

put

public void put(String name,
                int value)
Find and set the int value of a given field named name in the receiver.

Specified by:
put in class ObjectOutputStream.PutField
Parameters:
name - A String, the name of the field to set
value - New value for the field.

put

public void put(String name,
                long value)
Find and set the long value of a given field named name in the receiver.

Specified by:
put in class ObjectOutputStream.PutField
Parameters:
name - A String, the name of the field to set
value - New value for the field.

put

public void put(String name,
                Object value)
Find and set the Object value of a given field named name in the receiver.

Specified by:
put in class ObjectOutputStream.PutField
Parameters:
name - A String, the name of the field to set
value - New value for the field.

put

public void put(String name,
                short value)
Find and set the short value of a given field named name in the receiver.

Specified by:
put in class ObjectOutputStream.PutField
Parameters:
name - A String, the name of the field to set
value - New value for the field.

put

public void put(String name,
                boolean value)
Find and set the boolean value of a given field named name in the receiver.

Specified by:
put in class ObjectOutputStream.PutField
Parameters:
name - A String, the name of the field to set
value - New value for the field.

write

@Deprecated
public void write(ObjectOutput output)
           throws IOException
Deprecated. 

Write the field values to the specified ObjectOutput.

Specified by:
write in class ObjectOutputStream.PutField
Parameters:
output - the ObjectOutput
Throws:
IOException - If an IO exception happened when writing the field values.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature