public class Utilities
extends java.lang.Object
A class with various utitilies for handling byte and bit extraction.
Constructor and Description |
---|
Utilities() |
Modifier and Type | Method and Description |
---|---|
static int |
extract16be(byte[] b,
int offset) |
static long |
extract24be(byte[] b,
int offset) |
static long |
extract32be(byte[] b,
int offset) |
static int |
extract8(byte[] b,
int offset) |
static int |
read16be(java.io.InputStream in) |
static java.lang.String |
toPaddedHexString(int i,
int length) |
static java.lang.String |
toPaddedHexString(long i,
int length) |
public static java.lang.String toPaddedHexString(int i, int length)
public static java.lang.String toPaddedHexString(long i, int length)
public static final int extract8(byte[] b, int offset)
public static final int extract16be(byte[] b, int offset)
public static final long extract24be(byte[] b, int offset)
public static final long extract32be(byte[] b, int offset)
public static final int read16be(java.io.InputStream in) throws java.io.IOException
java.io.IOException