38 |
|
|
39 |
package gnu.CORBA.GIOP; |
package gnu.CORBA.GIOP; |
40 |
|
|
41 |
import gnu.CORBA.CDR.cdrInput; |
import gnu.CORBA.CDR.AbstractCdrInput; |
42 |
import gnu.CORBA.CDR.cdrOutput; |
import gnu.CORBA.CDR.AbstractCdrOutput; |
43 |
import gnu.CORBA.IOR; |
import gnu.CORBA.IOR; |
44 |
import gnu.CORBA.IOR.CodeSets_profile; |
import gnu.CORBA.IOR.CodeSets_profile; |
45 |
|
|
124 |
* Read the context from the given stream. Does not read the |
* Read the context from the given stream. Does not read the |
125 |
* code sets id. |
* code sets id. |
126 |
*/ |
*/ |
127 |
public void readContext(cdrInput input) |
public void readContext(AbstractCdrInput input) |
128 |
{ |
{ |
129 |
cdrInput encap = input.read_encapsulation(); |
AbstractCdrInput encap = input.read_encapsulation(); |
130 |
|
|
131 |
char_data = encap.read_ulong(); |
char_data = encap.read_ulong(); |
132 |
wide_char_data = encap.read_ulong(); |
wide_char_data = encap.read_ulong(); |
145 |
* Write the context to the given stream, including the code |
* Write the context to the given stream, including the code |
146 |
* sets id. |
* sets id. |
147 |
*/ |
*/ |
148 |
public void write(cdrOutput output) |
public void write(AbstractCdrOutput output) |
149 |
{ |
{ |
150 |
output.write_ulong(ID); |
output.write_ulong(ID); |
151 |
|
|
152 |
cdrOutput enout = output.createEncapsulation(); |
AbstractCdrOutput enout = output.createEncapsulation(); |
153 |
|
|
154 |
enout.write_long(char_data); |
enout.write_long(char_data); |
155 |
enout.write_ulong(wide_char_data); |
enout.write_ulong(wide_char_data); |