public void writeUI16(int value) throws IOException {
  flushBits();
  out.write(value & 0xff);
  out.write(value >> 8);
  bytesWritten+=2;
}

public void writeUI16 ( int value ) throws IOException { flushBits ( ) ; out . write ( value & 0xff ) ; out . write ( value > > 8 ) ; bytesWritten += 2 ; }
write a 16 bit unsigned value to the out stream
