public class StringUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static @NotNull String |
convertBytesToHex(@NotNull byte[] value)
Convert a byte array to a hex encoded string.
|
static @NotNull byte[] |
convertHexToBytes(@NotNull String s)
Convert a hex encoded string to a byte array.
|
static int |
estimateMemoryUsage(String s)
Estimates the memory usage of the given string.
|
@NotNull public static @NotNull String convertBytesToHex(@NotNull @NotNull byte[] value)
value - the byte array@NotNull
public static @NotNull byte[] convertHexToBytes(@NotNull
@NotNull String s)
s - the hex encoded stringpublic static int estimateMemoryUsage(String s)
s - the string to estimate.Copyright © 2010 - 2020 Adobe. All Rights Reserved