@Test public void toHexStringWithInt() throws Exception { String s0 = null; s0 = HexUtil.toHexString((int)0x65); Assert.assertEquals("00000065", s0.toString()); s0 = HexUtil.toHexString((int)0x6534); Assert.assertEquals("00006534", s0.toString()); s0 = HexUtil.toHexString((int)0x00); Assert.assertEquals("00000000", s0.toString()); s0 = HexUtil.toHexString(-34000); Assert.assertEquals("FFFF7B30", s0.toString()); s0 = HexUtil.toHexString(-1); Assert.assertEquals("FFFFFFFF", s0.toString()); }
public static String toHexString(byte[] bytes) { if (bytes == null) { return ""; } return toHexString(bytes, 0, bytes.length); }
HexUtil { public static String toHexString(byte[] bytes) { if (bytes == null) { return ""; } return toHexString(bytes, 0, bytes.length); } }
HexUtil { public static String toHexString(byte[] bytes) { if (bytes == null) { return ""; } return toHexString(bytes, 0, bytes.length); }  }
HexUtil { public static String toHexString(byte[] bytes) { if (bytes == null) { return ""; } return toHexString(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 String toHexString(byte[] bytes) { if (bytes == null) { return ""; } return toHexString(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; }