KickJava   Java API By Example, From Geeks To Geeks.

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


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