< prev index next >

src/java.corba/share/classes/com/sun/corba/se/impl/ior/POAObjectKeyTemplate.java

Print this page




  25 
  26 package com.sun.corba.se.impl.ior;
  27 
  28 import java.util.Iterator ;
  29 
  30 import org.omg.CORBA_2_3.portable.InputStream ;
  31 import org.omg.CORBA_2_3.portable.OutputStream ;
  32 
  33 import org.omg.CORBA.OctetSeqHolder ;
  34 
  35 import com.sun.corba.se.spi.activation.POANameHelper ;
  36 
  37 import com.sun.corba.se.spi.orb.ORB ;
  38 import com.sun.corba.se.spi.orb.ORBVersion ;
  39 import com.sun.corba.se.spi.orb.ORBVersionFactory ;
  40 
  41 import com.sun.corba.se.spi.ior.ObjectAdapterId ;
  42 
  43 import com.sun.corba.se.impl.ior.ObjectKeyFactoryImpl ;
  44 
  45 /**
  46  * @author
  47  */
  48 public final class POAObjectKeyTemplate extends NewObjectKeyTemplateBase
  49 {
  50     /** This constructor reads the template ONLY from the stream.
  51     */
  52     public POAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is )
  53     {
  54         super( orb, magic, scid, is.read_long(), is.read_string(),
  55             new ObjectAdapterIdArray( POANameHelper.read( is ) ) ) ;
  56 
  57         setORBVersion( is ) ;
  58     }
  59 
  60     /** This constructor reads a complete ObjectKey (template and Id)
  61     * from the stream.
  62     */
  63     public POAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is,
  64         OctetSeqHolder osh )
  65     {
  66         super( orb, magic, scid, is.read_long(), is.read_string(),
  67             new ObjectAdapterIdArray( POANameHelper.read( is ) ) ) ;




  25 
  26 package com.sun.corba.se.impl.ior;
  27 
  28 import java.util.Iterator ;
  29 
  30 import org.omg.CORBA_2_3.portable.InputStream ;
  31 import org.omg.CORBA_2_3.portable.OutputStream ;
  32 
  33 import org.omg.CORBA.OctetSeqHolder ;
  34 
  35 import com.sun.corba.se.spi.activation.POANameHelper ;
  36 
  37 import com.sun.corba.se.spi.orb.ORB ;
  38 import com.sun.corba.se.spi.orb.ORBVersion ;
  39 import com.sun.corba.se.spi.orb.ORBVersionFactory ;
  40 
  41 import com.sun.corba.se.spi.ior.ObjectAdapterId ;
  42 
  43 import com.sun.corba.se.impl.ior.ObjectKeyFactoryImpl ;
  44 
  45 


  46 public final class POAObjectKeyTemplate extends NewObjectKeyTemplateBase
  47 {
  48     /** This constructor reads the template ONLY from the stream.
  49     */
  50     public POAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is )
  51     {
  52         super( orb, magic, scid, is.read_long(), is.read_string(),
  53             new ObjectAdapterIdArray( POANameHelper.read( is ) ) ) ;
  54 
  55         setORBVersion( is ) ;
  56     }
  57 
  58     /** This constructor reads a complete ObjectKey (template and Id)
  59     * from the stream.
  60     */
  61     public POAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is,
  62         OctetSeqHolder osh )
  63     {
  64         super( orb, magic, scid, is.read_long(), is.read_string(),
  65             new ObjectAdapterIdArray( POANameHelper.read( is ) ) ) ;


< prev index next >