KickJava   Java API By Example, From Geeks To Geeks.

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


1 /* $Id: DoubleHolder.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 DoubleHolder implements cz.cuni.sofa.lib.Streamable, java.io.Serializable JavaDoc {
9
10     public double value;
11
12     public DoubleHolder() {
13     }
14
15     public DoubleHolder(double initial) {
16         value = initial;
17     }
18
19     public void _read(cz.cuni.sofa.lib.InputStream is) throws java.io.IOException JavaDoc {
20         value = is.read_double();
21     }
22
23     public void _write(cz.cuni.sofa.lib.OutputStream os) throws java.io.IOException JavaDoc {
24         os.write_double(value);
25     }
26 }
27
Popular Tags