KickJava   Java API By Example, From Geeks To Geeks.

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


1 /* $Id: FloatHolder.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 FloatHolder implements cz.cuni.sofa.lib.Streamable, java.io.Serializable JavaDoc {
9
10     public float value;
11
12     public FloatHolder() {
13     }
14
15     public FloatHolder(float 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_float();
21     }
22
23     public void _write(cz.cuni.sofa.lib.OutputStream os) throws java.io.IOException JavaDoc {
24         os.write_float(value);
25     }
26 }
27
Popular Tags