code: public static void toHex(byte b, Appendable buf) {
  		try {
  			int bi = _0XFF & b;
  			int c = '0' + (bi / SIXTEEN) % SIXTEEN;
  			if (c > '9') {
  				c = 'A' + (c - '0' - TEN);
  			}
  			buf.append((char) c);
  			c = '0' + bi % SIXTEEN;
  			if (c > '9') {
  				c = 'A' + (c - '0' - TEN);
  			}
  			buf.append((char) c);
  		} catch (IOException e) {
  			throw new RuntimeException(e);
  		}
  	}
docs: /* ------------------------------------------------------------