@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 boolean commonSuffixOfLength(String s, String p, int len); 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 CharSequence escapeCsv(CharSequence value); static CharSequence unescapeCsv(CharSequence value); static List<CharSequence> unescapeCsvFields(CharSequence value); static int length(String s); static boolean isNullOrEmpty(String s); static boolean isSurrogate(char c); }
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 boolean commonSuffixOfLength(String s, String p, int len); 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 CharSequence escapeCsv(CharSequence value); static CharSequence unescapeCsv(CharSequence value); static List<CharSequence> unescapeCsvFields(CharSequence value); static int length(String s); static boolean isNullOrEmpty(String s); static boolean isSurrogate(char c); static final String EMPTY_STRING; static final String NEWLINE; static final char DOUBLE_QUOTE; static final char COMMA; static final char LINE_FEED; static final char CARRIAGE_RETURN; static final char TAB; }