Dead
[official-gcc.git] / gomp-20050608-branch / libjava / classpath / examples / gnu / classpath / examples / CORBA / SimpleCommunication / communication / StructureToReturnHolder.java
blobc70f9cfccdd323918b7f4056a43e007374900661
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;
10 /**
11 * The holder for the structure, returned from the server.
13 public final class StructureToReturnHolder
14 implements Streamable
16 /**
17 * The enclosed structure.
19 public StructureToReturn value = null;
21 /**
22 * Create the empty holder.
24 public StructureToReturnHolder()
28 /**
29 * Crate the holder with the defined initial value.
31 public StructureToReturnHolder(StructureToReturn initialValue)
33 value = initialValue;
36 /**
37 * Read the value from the CDR stream.
39 public void _read(InputStream in)
41 value = StructureToReturnHelper.read(in);
44 /**
45 * Get the typecode of this structure.
47 public TypeCode _type()
49 return StructureToReturnHelper.type();
52 /**
53 * Write the value from the CDR stream.
54 * @param out
56 public void _write(OutputStream out)
58 StructureToReturnHelper.write(out, value);