blob: 294e37ac3efb3e9405423d7a77c47f0511952335 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
package gnu.classpath.examples.CORBA.SimpleCommunication.communication;
import org.omg.CORBA.TypeCode;
import org.omg.CORBA.portable.InputStream;
import org.omg.CORBA.portable.OutputStream;
import org.omg.CORBA.portable.Streamable;
/**
* The holder for the structure, returned from the server.
*/
public final class returnThisHolder
implements Streamable
{
/**
* The enclosed structure.
*/
public returnThis value = null;
/**
* Create the empty holder.
*/
public returnThisHolder()
{
}
/**
* Crate the holder with the defined initial value.
*/
public returnThisHolder(returnThis initialValue)
{
value = initialValue;
}
/**
* Read the value from the CDR stream.
*/
public void _read(InputStream in)
{
value = returnThisHelper.read(in);
}
/**
* Get the typecode of this structure.
*/
public TypeCode _type()
{
return returnThisHelper.type();
}
/**
* Write the value from the CDR stream.
* @param out
*/
public void _write(OutputStream out)
{
returnThisHelper.write(out, value);
}
}
|