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