1 2 3 6 package cz.cuni.sofa.lib; 7 8 final public class ShortHolder implements cz.cuni.sofa.lib.Streamable, java.io.Serializable { 9 10 public short value; 11 12 public ShortHolder() { 13 } 14 15 public ShortHolder(short initial) { 16 value = initial; 17 } 18 19 public void _read(cz.cuni.sofa.lib.InputStream is) throws java.io.IOException { 20 value = is.read_short(); 21 } 22 23 public void _write(cz.cuni.sofa.lib.OutputStream os) throws java.io.IOException { 24 os.write_short(value); 25 } 26 } 27 | Popular Tags |