@Test public void appendHexStringWithLong() throws Exception { StringBuilder s0 = new StringBuilder(16); HexUtil.appendHexString(s0, 0x65L); Assert.assertEquals("0000000000000065", s0.toString()); s0.setLength(0); HexUtil.appendHexString(s0, 0x6534L); Assert.assertEquals("0000000000006534", s0.toString()); s0.setLength(0); HexUtil.appendHexString(s0, 0x00L); Assert.assertEquals("0000000000000000", s0.toString()); s0.setLength(0); HexUtil.appendHexString(s0, -34000L); Assert.assertEquals("FFFFFFFFFFFF7B30", s0.toString()); s0.setLength(0); HexUtil.appendHexString(s0, -1L); Assert.assertEquals("FFFFFFFFFFFFFFFF", s0.toString()); }
public static void appendHexString(StringBuilder buffer, byte[] bytes) { assertNotNull(buffer); if (bytes == null) { return; } appendHexString(buffer, bytes, 0, bytes.length); }
HexUtil { public static void appendHexString(StringBuilder buffer, byte[] bytes) { assertNotNull(buffer); if (bytes == null) { return; } appendHexString(buffer, bytes, 0, bytes.length); } }
HexUtil { public static void appendHexString(StringBuilder buffer, byte[] bytes) { assertNotNull(buffer); if (bytes == null) { return; } appendHexString(buffer, bytes, 0, bytes.length); }  }
HexUtil { public static void appendHexString(StringBuilder buffer, byte[] bytes) { assertNotNull(buffer); if (bytes == null) { return; } appendHexString(buffer, bytes, 0, bytes.length); }  static String toHexString(byte[] bytes); static String toHexString(byte[] bytes, int offset, int length); static void appendHexString(StringBuilder buffer, byte[] bytes); static void appendHexString(StringBuilder buffer, byte[] bytes, int offset, int length); static String toHexString(byte value); static void appendHexString(StringBuilder buffer, byte value); static String toHexString(short value); static void appendHexString(StringBuilder buffer, short value); static String toHexString(int value); static void appendHexString(StringBuilder buffer, int value); static String toHexString(long value); static void appendHexString(StringBuilder buffer, long value); static int hexCharToIntValue(char c); static byte[] toByteArray(CharSequence hexString); static byte[] toByteArray(CharSequence hexString, int offset, int length); }
HexUtil { public static void appendHexString(StringBuilder buffer, byte[] bytes) { assertNotNull(buffer); if (bytes == null) { return; } appendHexString(buffer, bytes, 0, bytes.length); }  static String toHexString(byte[] bytes); static String toHexString(byte[] bytes, int offset, int length); static void appendHexString(StringBuilder buffer, byte[] bytes); static void appendHexString(StringBuilder buffer, byte[] bytes, int offset, int length); static String toHexString(byte value); static void appendHexString(StringBuilder buffer, byte value); static String toHexString(short value); static void appendHexString(StringBuilder buffer, short value); static String toHexString(int value); static void appendHexString(StringBuilder buffer, int value); static String toHexString(long value); static void appendHexString(StringBuilder buffer, long value); static int hexCharToIntValue(char c); static byte[] toByteArray(CharSequence hexString); static byte[] toByteArray(CharSequence hexString, int offset, int length); static char[] HEX_TABLE; }