java.io
Class ObjectOutputStream.PutFieldImpl

java.lang.Object
  |
  +--java.io.ObjectOutputStream.PutField
        |
        +--java.io.ObjectOutputStream.PutFieldImpl

static final class ObjectOutputStream.PutFieldImpl
extends ObjectOutputStream.PutField

Provide access to the persistent fields to be written to the output stream.


Field Summary
private  byte[] data
           
private  ObjectStreamClass desc
           
private  Object[] objects
           
 
Constructor Summary
(package private) ObjectOutputStream.PutFieldImpl(ObjectStreamClass descriptor)
          Create a PutField object for the a Class.
 
Method Summary
 void put(String name, boolean value)
          Put the value of the named boolean field into the persistent field.
 void put(String name, byte value)
          Put the value of the named byte field into the persistent fields.
 void put(String name, char value)
          Put the value of the named char field into the persistent fields.
 void put(String name, double value)
          Put the value of the named double field into the persistent field.
 void put(String name, float value)
          Put the value of the named float field into the persistent fields.
 void put(String name, int value)
          Put the value of the named int field into the persistent fields.
 void put(String name, long value)
          Put the value of the named long field into the persistent fields.
 void put(String name, Object value)
          Put the value of the named Object field into the persistent field.
 void put(String name, short value)
          Put the value of the named short field into the persistent fields.
 void write(ObjectOutput out)
          Write the data and fields to the specified stream.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

data

private byte[] data

objects

private Object[] objects

desc

private ObjectStreamClass desc
Constructor Detail

ObjectOutputStream.PutFieldImpl

ObjectOutputStream.PutFieldImpl(ObjectStreamClass descriptor)
Create a PutField object for the a Class. Allocate the arrays for primitives and objects.
Method Detail

put

public void put(String name,
                boolean value)
         throws IllegalArgumentException
Put the value of the named boolean field into the persistent field.
Overrides:
put in class ObjectOutputStream.PutField

put

public void put(String name,
                char value)
Put the value of the named char field into the persistent fields.
Overrides:
put in class ObjectOutputStream.PutField

put

public void put(String name,
                byte value)
Put the value of the named byte field into the persistent fields.
Overrides:
put in class ObjectOutputStream.PutField

put

public void put(String name,
                short value)
Put the value of the named short field into the persistent fields.
Overrides:
put in class ObjectOutputStream.PutField

put

public void put(String name,
                int value)
Put the value of the named int field into the persistent fields.
Overrides:
put in class ObjectOutputStream.PutField

put

public void put(String name,
                long value)
Put the value of the named long field into the persistent fields.
Overrides:
put in class ObjectOutputStream.PutField

put

public void put(String name,
                float value)
Put the value of the named float field into the persistent fields.
Overrides:
put in class ObjectOutputStream.PutField

put

public void put(String name,
                double value)
Put the value of the named double field into the persistent field.
Overrides:
put in class ObjectOutputStream.PutField

put

public void put(String name,
                Object value)
Put the value of the named Object field into the persistent field.
Overrides:
put in class ObjectOutputStream.PutField

write

public void write(ObjectOutput out)
           throws IOException
Write the data and fields to the specified stream.
Overrides:
write in class ObjectOutputStream.PutField