39 |
package org.omg.IOP; |
package org.omg.IOP; |
40 |
|
|
41 |
import gnu.CORBA.Minor; |
import gnu.CORBA.Minor; |
42 |
import gnu.CORBA.CDR.cdrBufInput; |
import gnu.CORBA.CDR.BufferredCdrInput; |
43 |
import gnu.CORBA.CDR.cdrBufOutput; |
import gnu.CORBA.CDR.BufferedCdrOutput; |
44 |
|
|
45 |
import org.omg.CORBA.Any; |
import org.omg.CORBA.Any; |
46 |
import org.omg.CORBA.BAD_OPERATION; |
import org.omg.CORBA.BAD_OPERATION; |
145 |
TaggedProfile value = new TaggedProfile(); |
TaggedProfile value = new TaggedProfile(); |
146 |
value.tag = input.read_long(); |
value.tag = input.read_long(); |
147 |
|
|
148 |
if (input instanceof cdrBufInput) |
if (input instanceof BufferredCdrInput) |
149 |
{ |
{ |
150 |
// Highly probable. |
// Highly probable. |
151 |
value.profile_data = ((cdrBufInput) input).read_sequence(); |
value.profile_data = ((BufferredCdrInput) input).read_sequence(); |
152 |
} |
} |
153 |
else |
else |
154 |
{ |
{ |
169 |
{ |
{ |
170 |
output.write_long(value.tag); |
output.write_long(value.tag); |
171 |
|
|
172 |
if (output instanceof cdrBufOutput) |
if (output instanceof BufferedCdrOutput) |
173 |
{ |
{ |
174 |
// Highly probable. |
// Highly probable. |
175 |
output.write_long(value.profile_data.length); |
output.write_long(value.profile_data.length); |