public class StringUtils extends Object
| Constructor and Description |
|---|
StringUtils() |
| 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.
|
public static String convertBytesToHex(byte[] value)
value - the byte arraypublic static byte[] convertHexToBytes(String s)
s - the hex encoded stringpublic static int estimateMemoryUsage(String s)
s - the string to estimate.Copyright © 2012-2019 The Apache Software Foundation. All Rights Reserved.