1 7 8 package com.sun.corba.se.spi.ior ; 9 10 import org.omg.CORBA_2_3.portable.InputStream ; 11 12 import com.sun.corba.se.impl.ior.EncapsulationUtility ; 13 14 public abstract class EncapsulationFactoryBase implements IdentifiableFactory { 15 private int id ; 16 17 public int getId() 18 { 19 return id ; 20 } 21 22 public EncapsulationFactoryBase( int id ) 23 { 24 this.id = id ; 25 } 26 27 public final Identifiable create( InputStream in ) 28 { 29 InputStream is = EncapsulationUtility.getEncapsulationStream( in ) ; 30 return readContents( is ) ; 31 } 32 33 protected abstract Identifiable readContents( InputStream is ) ; 34 } 35 | Popular Tags |