3 package gnu
.classpath
.examples
.CORBA
.SimpleCommunication
.communication
;
5 import org
.omg
.CORBA
.TypeCode
;
6 import org
.omg
.CORBA
.portable
.InputStream
;
7 import org
.omg
.CORBA
.portable
.OutputStream
;
8 import org
.omg
.CORBA
.portable
.Streamable
;
11 * The holder for the structure, returned from the server.
13 public final class StructureToReturnHolder
17 * The enclosed structure.
19 public StructureToReturn value
= null;
22 * Create the empty holder.
24 public StructureToReturnHolder()
29 * Crate the holder with the defined initial value.
31 public StructureToReturnHolder(StructureToReturn initialValue
)
37 * Read the value from the CDR stream.
39 public void _read(InputStream in
)
41 value
= StructureToReturnHelper
.read(in
);
45 * Get the typecode of this structure.
47 public TypeCode
_type()
49 return StructureToReturnHelper
.type();
53 * Write the value from the CDR stream.
56 public void _write(OutputStream out
)
58 StructureToReturnHelper
.write(out
, value
);