KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > cz > cuni > sofa > lib > ObjectHolder


1 /* $Id: ObjectHolder.java,v 1.1.1.1 2003/02/11 16:19:40 bures Exp $ */
2
3 /* This code is based on the OMG's IDL Java Language mapping
4  * definitions (OMG document formal/99-06-02).
5  */

6 package cz.cuni.sofa.lib;
7
8 final public class ObjectHolder implements cz.cuni.sofa.lib.Streamable, java.io.Serializable JavaDoc {
9
10     public Object JavaDoc value;
11
12     public ObjectHolder() {
13     }
14
15     public ObjectHolder(Object JavaDoc initial) {
16         value = initial;
17     }
18
19
20
21
22     public void _read(cz.cuni.sofa.lib.InputStream is) throws java.io.IOException JavaDoc {
23        value = is.read_Object();
24     }
25
26     public void _write(cz.cuni.sofa.lib.OutputStream os) throws java.io.IOException JavaDoc {
27        os.write_Object(value);
28     }
29 }
30
Popular Tags