@Test public void testToHexStringPadded() { assertThat(toHexStringPadded(new byte[]{0}), is("00")); assertThat(toHexStringPadded(new byte[]{1}), is("01")); assertThat(toHexStringPadded(new byte[]{0, 0}), is("0000")); assertThat(toHexStringPadded(new byte[]{1, 0}), is("0100")); assertThat(toHexStringPadded(EmptyArrays.EMPTY_BYTES), is("")); }
public static String toHexStringPadded(byte[] src) { return toHexStringPadded(src, 0, src.length); }
StringUtil { public static String toHexStringPadded(byte[] src) { return toHexStringPadded(src, 0, src.length); } }
StringUtil { public static String toHexStringPadded(byte[] src) { return toHexStringPadded(src, 0, src.length); } private  StringUtil(); }
StringUtil { public static String toHexStringPadded(byte[] src) { return toHexStringPadded(src, 0, src.length); } private  StringUtil(); static String[] split(String value, char delim); static String[] split(String value, char delim, int maxParts); static String substringAfter(String value, char delim); static String byteToHexStringPadded(int value); static T byteToHexStringPadded(T buf, int value); static String toHexStringPadded(byte[] src); static String toHexStringPadded(byte[] src, int offset, int length); static T toHexStringPadded(T dst, byte[] src); static T toHexStringPadded(T dst, byte[] src, int offset, int length); static String byteToHexString(int value); static T byteToHexString(T buf, int value); static String toHexString(byte[] src); static String toHexString(byte[] src, int offset, int length); static T toHexString(T dst, byte[] src); static T toHexString(T dst, byte[] src, int offset, int length); static String simpleClassName(Object o); static String simpleClassName(Class<?> clazz); }
StringUtil { public static String toHexStringPadded(byte[] src) { return toHexStringPadded(src, 0, src.length); } private  StringUtil(); static String[] split(String value, char delim); static String[] split(String value, char delim, int maxParts); static String substringAfter(String value, char delim); static String byteToHexStringPadded(int value); static T byteToHexStringPadded(T buf, int value); static String toHexStringPadded(byte[] src); static String toHexStringPadded(byte[] src, int offset, int length); static T toHexStringPadded(T dst, byte[] src); static T toHexStringPadded(T dst, byte[] src, int offset, int length); static String byteToHexString(int value); static T byteToHexString(T buf, int value); static String toHexString(byte[] src); static String toHexString(byte[] src, int offset, int length); static T toHexString(T dst, byte[] src); static T toHexString(T dst, byte[] src, int offset, int length); static String simpleClassName(Object o); static String simpleClassName(Class<?> clazz); static final String NEWLINE; }