public final void writeShort(final int i){
  baos.write((byte)(i & 0xFF));
  baos.write((byte)((i >>> 8) & 0xFF));
}

public final void writeShort ( final int i ) { baos . write ( ( byte ) ( i & 0xFF ) ) ; baos . write ( ( byte ) ( ( i > > > 8 ) & 0xFF ) ) ; }
write a short integer to the stream .
