public class Hex
extends java.lang.Object
| Constructor and Description |
|---|
Hex() |
| Modifier and Type | Method and Description |
|---|---|
static void |
append(java.lang.Appendable sb,
byte ch) |
static void |
append(java.lang.Appendable sb,
byte[] data) |
static void |
append(java.lang.Appendable sb,
char ch) |
static void |
append(java.lang.Appendable sb,
int ch) |
static void |
append(java.lang.Appendable sb,
long ch) |
static void |
append(java.lang.Appendable sb,
short ch) |
static java.lang.String |
format(byte[] data)
Format a buffer to show the buffer in a table with 16 bytes per row, hex
values and ascii values are shown.
|
static java.lang.String |
format(java.nio.ByteBuffer data)
Format a buffer to show the buffer in a table with 16 bytes per row, hex
values and ascii values are shown.
|
static boolean |
isBinary(byte[] data)
Check of a buffer is classified as binary or text.
|
static boolean |
isBinary(java.nio.ByteBuffer data)
Check of a buffer is classified as binary or text.
|
static boolean |
isHex(java.lang.String pub) |
static boolean |
isHexCharacter(char c) |
static int |
nibble(char c) |
static char |
nibble(int i) |
static java.lang.String |
separated(byte[] bytes,
int start,
int length,
java.lang.String separator) |
static java.lang.String |
separated(byte[] bytes,
java.lang.String separator) |
static byte[] |
toByteArray(java.lang.String string) |
static java.lang.String |
toHex(byte b) |
static java.lang.String |
toHexString(byte[] data) |
public static final byte[] toByteArray(java.lang.String string)
public static java.lang.String toHex(byte b)
public static final int nibble(char c)
public static final java.lang.String toHexString(byte[] data)
public static final void append(java.lang.Appendable sb,
byte[] data)
throws java.io.IOException
java.io.IOExceptionpublic static final char nibble(int i)
public static boolean isHex(java.lang.String pub)
public static boolean isHexCharacter(char c)
public static java.lang.String separated(byte[] bytes,
java.lang.String separator)
public static java.lang.String separated(byte[] bytes,
int start,
int length,
java.lang.String separator)
public static java.lang.String format(byte[] data)
data - the bufferpublic static java.lang.String format(java.nio.ByteBuffer data)
data - the bufferpublic static boolean isBinary(byte[] data)
data - the bufferpublic static boolean isBinary(java.nio.ByteBuffer data)
data - the bufferpublic static void append(java.lang.Appendable sb,
byte ch)
public static void append(java.lang.Appendable sb,
short ch)
public static void append(java.lang.Appendable sb,
char ch)
public static void append(java.lang.Appendable sb,
int ch)
public static void append(java.lang.Appendable sb,
long ch)
Copyright (c) aQute SARL (2000, 2021) and others. All Rights Reserved.