1 package org.jacorb.orb.giop; 2 3 22 23 import java.io.*; 24 import org.jacorb.orb.*; 25 import org.jacorb.orb.giop.*; 26 27 import org.omg.GIOP.*; 28 import org.omg.CORBA.MARSHAL ; 29 import org.omg.CORBA.portable.ApplicationException ; 30 import org.omg.CORBA.portable.RemarshalException ; 31 32 37 38 public class LocateReplyInputStream 39 extends MessageInputStream 40 { 41 public LocateReplyHeader_1_2 rep_hdr = null; 42 43 public LocateReplyInputStream( org.omg.CORBA.ORB orb, byte[] buf ) 44 { 45 super( orb, buf ); 46 47 if( buffer[7] != (byte) MsgType_1_1._LocateReply ) 49 { 50 throw new MARSHAL ("Not a reply!"); 51 } 52 53 switch( giop_minor ) 54 { 55 case 0 : 56 { 57 } 59 case 1 : 60 { 61 62 LocateReplyHeader_1_0 hdr = 64 LocateReplyHeader_1_0Helper.read( this ); 65 66 rep_hdr = 67 new LocateReplyHeader_1_2( hdr.request_id, 68 LocateStatusType_1_2.from_int( hdr.locate_status.value() )); 69 break; 70 } 71 case 2 : 72 { 73 rep_hdr = LocateReplyHeader_1_2Helper.read( this ); 75 76 break; 77 } 78 default : 79 { 80 throw new MARSHAL ("Unknown GIOP minor version: " + giop_minor); 81 } 82 } 83 } 84 } 85 | Popular Tags |