public class ByteUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NON_ASCII_STRING |
Constructor and Description |
---|
ByteUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
bytesToHex(byte[] bytes) |
static String |
bytesToHex(byte[] bytes,
int groupSize) |
static long |
convertTextBytes(String text) |
static void |
debugFrame(Logger logger,
String message,
io.netty.buffer.ByteBuf byteIn) |
static String |
formatGroup(String str,
int groupSize,
int lineBreak) |
static byte[] |
getActiveArray(ByteBuffer buffer) |
static byte[] |
hexToBytes(String hexStr) |
static byte[] |
longToBytes(long x) |
static String |
maxString(String value,
int size) |
static String |
readLine(ActiveMQBuffer buffer) |
static String |
toSimpleString(byte[] bytes) |
public static final String NON_ASCII_STRING
public static void debugFrame(Logger logger, String message, io.netty.buffer.ByteBuf byteIn)
public static String bytesToHex(byte[] bytes)
public static String bytesToHex(byte[] bytes, int groupSize)
public static String toSimpleString(byte[] bytes)
public static byte[] longToBytes(long x)
public static byte[] hexToBytes(String hexStr)
public static String readLine(ActiveMQBuffer buffer)
public static byte[] getActiveArray(ByteBuffer buffer)
public static long convertTextBytes(String text)
Copyright © 2017 JBoss by Red Hat. All rights reserved.