public class Converter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MASK |
Modifier and Type | Method and Description |
---|---|
static int |
bytesToInt(byte[] b) |
static int |
bytesToInt(byte[] b,
int offset) |
static java.lang.Integer |
bytesToInteger(byte[] b) |
static java.lang.Integer |
bytesToInteger(byte[] b,
int offset) |
static byte[] |
integerToBytes(java.lang.Integer a) |
static byte[] |
intToBytes(int a) |
public static final int MASK
public static byte[] intToBytes(int a)
public static byte[] integerToBytes(java.lang.Integer a)
public static int bytesToInt(byte[] b, int offset)
b
- offset
- public static java.lang.Integer bytesToInteger(byte[] b, int offset)
public static int bytesToInt(byte[] b)
public static java.lang.Integer bytesToInteger(byte[] b)