public class EndianByteBuffer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static short |
BIG_ENDIAN |
static short |
LITTLE_ENDIAN |
Constructor and Description |
---|
EndianByteBuffer(byte[] byteArray) |
EndianByteBuffer(byte[] byteArray,
short endian) |
Modifier and Type | Method and Description |
---|---|
double |
getDouble() |
float |
getFloat() |
int |
getInt() |
int[] |
getIntArray() |
long |
getLong() |
long[] |
getLongArray() |
short |
getShort() |
short[] |
getShortArray() |
java.lang.String |
getString(int byteCount) |
void |
position(int newPosition) |
void |
setEndian(short endian) |
public static short LITTLE_ENDIAN
public static short BIG_ENDIAN
public EndianByteBuffer(byte[] byteArray, short endian)
public EndianByteBuffer(byte[] byteArray)
public void setEndian(short endian)
public int getInt()
public short getShort()
public long getLong()
public float getFloat()
public double getDouble()
public java.lang.String getString(int byteCount)
public short[] getShortArray()
public long[] getLongArray()
public int[] getIntArray()
public final void position(int newPosition)