code: public static final String toHex(byte[] buf, int offset, int length)
      {
          return toHex(Arrays.copyOfRange(buf, offset, offset+length));
      }
docs: Creates readable view to byte array content.
  @param buf
  @param offset
  @param length
  @return