- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for toHex (0.01 sec)
-
src/test/java/org/codelibs/core/lang/StringUtilTest.java
*/ @Test public void testToHex() throws Exception { assertEquals("010203", StringUtil.toHex(new byte[] { 1, 2, 3 })); } /** * @throws Exception */ @Test public void testToHex2() throws Exception { assertEquals("0001", StringUtil.toHex(1)); } /** * @throws Exception */ @TestRegistered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 11.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/StringUtil.java
} /** * Converts a byte array to a hexadecimal string. * * @param bytes * the byte array * @return the hexadecimal string */ public static String toHex(final byte[] bytes) { if (bytes == null) { return ""; } final StringBuilder sb = new StringBuilder(bytes.length * 2); for (final byte b : bytes) {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 21.5K bytes - Viewed (0)