1 package org.jacorb.orb.giop; 2 3 22 23 import org.jacorb.orb.CDRInputStream; 24 import org.omg.CORBA.MARSHAL ; 25 26 35 36 public class MessageInputStream 37 extends CDRInputStream 38 { 39 40 public int msg_size = -1; 41 42 public MessageInputStream( org.omg.CORBA.ORB orb, byte[] buffer) 43 { 44 super( orb, buffer ); 45 46 if( Messages.getGIOPMajor( buffer ) != 1 ) 48 { 49 throw new MARSHAL 50 ("Unknown GIOP major version: " + Messages.getGIOPMajor(buffer)); 51 } 52 53 setLittleEndian( Messages.isLittleEndian( buffer )); 56 57 setGIOPMinor( Messages.getGIOPMinor( buffer ) ); 58 59 msg_size = Messages.getMsgSize( buffer ); 60 61 skip( Messages.MSG_HEADER_SIZE ); 63 } 64 } | Popular Tags |