public final class HexEncoder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.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 java.lang.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 java.lang.String encode(int n, int width)
n
- a numberwidth
- required length of the stringpublic static java.lang.String encode(int c)
c
- a characterCopyright 1999-2020 The Apache Software Foundation. All Rights Reserved.