code: public static <T extends Appendable> T byteToHexString(T buf, int value) {
          try {
              buf.append(byteToHexString(value));
          } catch (IOException e) {
              PlatformDependent.throwException(e);
          }
          return buf;
      }
docs: Converts the specified byte value into a hexadecimal integer and appends it to the specified buffer.