public final class HexEncoder extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
encode(int c)
Returns an hex encoding of the given character as:
4-character string in case of non-BMP character
6-character string in case of BMP character
|
static String |
encode(int n,
int width)
Returns an hex encoding of the given number as a string of the given length,
left-padded with zeros if necessary.
|
public static String encode(int n, int width)
n - a numberwidth - required length of the stringpublic static String encode(int c)
c - a characterCopyright © 2025 Apache Software Foundation. All rights reserved.