OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / lib / classpath / examples / gnu / classpath / examples / CORBA / SimpleCommunication / communication / StructureToPassHolder.java
1
2
3 package gnu.classpath.examples.CORBA.SimpleCommunication.communication;
4
5 import org.omg.CORBA.portable.InputStream;
6 import org.omg.CORBA.portable.OutputStream;
7 import org.omg.CORBA.portable.Streamable;
8
9 public final class StructureToPassHolder
10   implements Streamable
11 {
12   public StructureToPass value;
13
14   public StructureToPassHolder()
15   {
16   }
17
18   public StructureToPassHolder(StructureToPass initialValue)
19   {
20     value = initialValue;
21   }
22
23   public void _read(InputStream i)
24   {
25     value = StructureToPassHelper.read(i);
26   }
27
28   public org.omg.CORBA.TypeCode _type()
29   {
30     return StructureToPassHelper.type();
31   }
32
33   public void _write(OutputStream o)
34   {
35     StructureToPassHelper.write(o, value);
36   }
37 }