39 |
package gnu.CORBA; |
package gnu.CORBA; |
40 |
|
|
41 |
import gnu.CORBA.CDR.Vio; |
import gnu.CORBA.CDR.Vio; |
42 |
import gnu.CORBA.CDR.cdrBufInput; |
import gnu.CORBA.CDR.BufferredCdrInput; |
43 |
import gnu.CORBA.CDR.cdrBufOutput; |
import gnu.CORBA.CDR.BufferedCdrOutput; |
44 |
import gnu.CORBA.typecodes.PrimitiveTypeCode; |
import gnu.CORBA.typecodes.PrimitiveTypeCode; |
45 |
import gnu.CORBA.typecodes.StringTypeCode; |
import gnu.CORBA.typecodes.StringTypeCode; |
46 |
|
|
139 |
*/ |
*/ |
140 |
public gnuAny Clone() |
public gnuAny Clone() |
141 |
{ |
{ |
142 |
cdrBufOutput out = new cdrBufOutput(); |
BufferedCdrOutput out = new BufferedCdrOutput(); |
143 |
out.setOrb(orb); |
out.setOrb(orb); |
144 |
out.write_any(this); |
out.write_any(this); |
145 |
|
|
146 |
cdrBufInput in = new cdrBufInput(out.buffer.toByteArray()); |
BufferredCdrInput in = new BufferredCdrInput(out.buffer.toByteArray()); |
147 |
in.setOrb(orb); |
in.setOrb(orb); |
148 |
return (gnuAny) in.read_any(); |
return (gnuAny) in.read_any(); |
149 |
} |
} |
161 |
} |
} |
162 |
else |
else |
163 |
{ |
{ |
164 |
cdrBufOutput out = new cdrBufOutput(); |
BufferedCdrOutput out = new BufferedCdrOutput(); |
165 |
out.setOrb(orb); |
out.setOrb(orb); |
166 |
write_value(out); |
write_value(out); |
167 |
|
|
168 |
cdrBufInput in = new cdrBufInput(out.buffer.toByteArray()); |
BufferredCdrInput in = new BufferredCdrInput(out.buffer.toByteArray()); |
169 |
in.setOrb(orb); |
in.setOrb(orb); |
170 |
return in; |
return in; |
171 |
} |
} |
176 |
*/ |
*/ |
177 |
public org.omg.CORBA.portable.OutputStream create_output_stream() |
public org.omg.CORBA.portable.OutputStream create_output_stream() |
178 |
{ |
{ |
179 |
cdrBufOutput stream = new cdrBufOutput(); |
BufferedCdrOutput stream = new BufferedCdrOutput(); |
180 |
stream.setOrb(orb); |
stream.setOrb(orb); |
181 |
return stream; |
return stream; |
182 |
} |
} |
196 |
if (has.equals(((gnuAny) other).has)) |
if (has.equals(((gnuAny) other).has)) |
197 |
return true; |
return true; |
198 |
|
|
199 |
cdrBufOutput a = new cdrBufOutput(); |
BufferedCdrOutput a = new BufferedCdrOutput(); |
200 |
a.setOrb(orb); |
a.setOrb(orb); |
201 |
write_value(a); |
write_value(a); |
202 |
|
|
203 |
cdrBufOutput b = new cdrBufOutput(); |
BufferedCdrOutput b = new BufferedCdrOutput(); |
204 |
b.setOrb(orb); |
b.setOrb(orb); |
205 |
other.write_value(b); |
other.write_value(b); |
206 |
|
|
221 |
{ |
{ |
222 |
Adler32 adler = new Adler32(); |
Adler32 adler = new Adler32(); |
223 |
|
|
224 |
cdrBufOutput a = new cdrBufOutput(); |
BufferedCdrOutput a = new BufferedCdrOutput(); |
225 |
a.setOrb(orb); |
a.setOrb(orb); |
226 |
write_value(a); |
write_value(a); |
227 |
|
|
787 |
// Use the Universal Holder that reads till the end of stream. |
// Use the Universal Holder that reads till the end of stream. |
788 |
// This works with the extract/insert pair of the typical |
// This works with the extract/insert pair of the typical |
789 |
// Helper. |
// Helper. |
790 |
cdrBufOutput buffer = new cdrBufOutput(); |
BufferedCdrOutput buffer = new BufferedCdrOutput(); |
791 |
buffer.setOrb(orb); |
buffer.setOrb(orb); |
792 |
has = new GeneralHolder(buffer); |
has = new GeneralHolder(buffer); |
793 |
} |
} |