public void read(org.omg.CORBA.portable.InputStream istream) { super.read(istream); this.request_id = istream.read_ulong(); this.reply_status = istream.read_long(); isValidReplyStatus(this.reply_status); // raises exception on error // The code below reads the reply body if status is OBJECT_FORWARD if (this.reply_status == OBJECT_FORWARD) { CDRInputStream cdr = (CDRInputStream) istream; this.ior = IORFactories.makeIOR(cdr); } }
// Note, this writes only the header information. SystemException or // IOR may be written afterwards into the reply mesg body. public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_long(this.reply_status); }