public static void writeShort(OutputStream os,short v) throws IOException {
  os.write((0xff & v));
  os.write((0xff & (v >>> 8)));
}

public static void writeShort ( OutputStream os , short v ) throws IOException { os . write ( ( 0xff & v ) ) ; os . write ( ( 0xff & ( v > > > 8 ) ) ) ; }
writes a little - endian short .
