public class StringUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
convertBytesToHex(byte[] value)
Convert a byte array to a hex encoded string.
|
static byte[] |
convertHexToBytes(String s)
Convert a hex encoded string to a byte array.
|
static int |
estimateMemoryUsage(String s)
Estimates the memory usage of the given string.
|
@Nonnull public static String convertBytesToHex(@Nonnull byte[] value)
value - the byte array@Nonnull public static byte[] convertHexToBytes(@Nonnull String s)
s - the hex encoded stringpublic static int estimateMemoryUsage(String s)
s - the string to estimate.Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.