public class IOUtil extends Object
Modifier and Type | Field and Description |
---|---|
static ByteOrder |
DEFAULT_BYTE_ORDER |
Constructor and Description |
---|
IOUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
asInt(byte b)
Get an unsigned int value from a signed byte
|
static short |
getShort(ByteBuffer buffer) |
static short |
getShort(ByteBuffer buffer,
ByteOrder order) |
static long |
getUInt(ByteBuffer buffer) |
static long |
getUInt(ByteBuffer buffer,
ByteOrder order) |
static long |
getUInt(ByteBuffer buffer,
int length) |
static long |
getUInt(ByteBuffer buffer,
int length,
ByteOrder order) |
static int |
getUShort(ByteBuffer buffer) |
static int |
getUShort(ByteBuffer buffer,
ByteOrder order) |
public static final ByteOrder DEFAULT_BYTE_ORDER
public static int asInt(byte b)
b
- input valuepublic static short getShort(ByteBuffer buffer)
public static short getShort(ByteBuffer buffer, ByteOrder order)
public static int getUShort(ByteBuffer buffer)
public static int getUShort(ByteBuffer buffer, ByteOrder order)
public static long getUInt(ByteBuffer buffer)
public static long getUInt(ByteBuffer buffer, ByteOrder order)
public static long getUInt(ByteBuffer buffer, int length)
public static long getUInt(ByteBuffer buffer, int length, ByteOrder order)
Copyright © 2016 mattjlewis. All rights reserved.