public final class HexEncoder
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
encode(char c) |
Returns an hex encoding of the given character as a four-character string.
|
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(char c)
c
- a characterCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.