< prev index next >

src/java.corba/share/classes/com/sun/corba/se/impl/orbutil/LegacyHookPutFields.java

Print this page




  25 
  26 /*
  27  */
  28 package com.sun.corba.se.impl.orbutil;
  29 
  30 import java.io.*;
  31 import java.util.Hashtable;
  32 
  33 /**
  34  * Since ObjectOutputStream.PutField methods specify no exceptions,
  35  * we are not checking for null parameters on put methods.
  36  */
  37 class LegacyHookPutFields extends ObjectOutputStream.PutField
  38 {
  39     private Hashtable fields = new Hashtable();
  40 
  41     /**
  42      * Put the value of the named boolean field into the persistent field.
  43      */
  44     public void put(String name, boolean value){
  45         fields.put(name, new Boolean(value));
  46     }
  47 
  48     /**
  49      * Put the value of the named char field into the persistent fields.
  50      */
  51     public void put(String name, char value){
  52         fields.put(name, new Character(value));
  53     }
  54 
  55     /**
  56      * Put the value of the named byte field into the persistent fields.
  57      */
  58     public void put(String name, byte value){
  59         fields.put(name, new Byte(value));
  60     }
  61 
  62     /**
  63      * Put the value of the named short field into the persistent fields.
  64      */
  65     public void put(String name, short value){




  25 
  26 /*
  27  */
  28 package com.sun.corba.se.impl.orbutil;
  29 
  30 import java.io.*;
  31 import java.util.Hashtable;
  32 
  33 /**
  34  * Since ObjectOutputStream.PutField methods specify no exceptions,
  35  * we are not checking for null parameters on put methods.
  36  */
  37 class LegacyHookPutFields extends ObjectOutputStream.PutField
  38 {
  39     private Hashtable fields = new Hashtable();
  40 
  41     /**
  42      * Put the value of the named boolean field into the persistent field.
  43      */
  44     public void put(String name, boolean value){
  45         fields.put(name, value);
  46     }
  47 
  48     /**
  49      * Put the value of the named char field into the persistent fields.
  50      */
  51     public void put(String name, char value){
  52         fields.put(name, new Character(value));
  53     }
  54 
  55     /**
  56      * Put the value of the named byte field into the persistent fields.
  57      */
  58     public void put(String name, byte value){
  59         fields.put(name, new Byte(value));
  60     }
  61 
  62     /**
  63      * Put the value of the named short field into the persistent fields.
  64      */
  65     public void put(String name, short value){


< prev index next >