code: static public void appendHexString(StringBuilder buffer, short value) {
          assertNotNull(buffer);
          int nibble = (value & 0xF000) >>> 12;
          buffer.append(HEX_TABLE[nibble]);
          nibble = (value & 0x0F00) >>> 8;
          buffer.append(HEX_TABLE[nibble]);
          nibble = (value & 0x00F0) >>> 4;
          buffer.append(HEX_TABLE[nibble]);
          nibble = (value & 0x000F);
          buffer.append(HEX_TABLE[nibble]);
      }
docs: Appends 4 characters to a StringBuilder with the short in a "Big Endian"
  hexidecimal format. For example, a short 0x1234 will be appended as a
  String in format "1234". A short of value 0 will be appended as "0000".
  @param buffer The StringBuilder the short value in hexidecimal format
  will be appended to.  If the buffer is null, this method will throw
  a NullPointerException.
  @param value The short value that will be converted to a hexidecimal String.