public class EndianUtilFns
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
EndianUtilFns() |
Modifier and Type | Method and Description |
---|---|
static char |
getLeChar(byte[] buf)
Gets a little-endian 16 bit char.
|
static double |
getLeDouble(byte[] buf)
Gets a little-endian 64 bit double.
|
static float |
getLeFloat(byte[] buf)
Gets a little-endian 32 bit float.
|
static int |
getLeInt(byte[] buf)
Gets a little-endian 32 bit int.
|
static long |
getLeLong(byte[] buf)
Gets a little-endian 64 bit long.
|
static short |
getLeShort(byte[] buf)
Gets a little-endian 16 bit short.
|
static int |
getLeUnsignedShort(byte[] buf)
Gets a little-endian unsigned 16 bit short.
|
public static short getLeShort(byte[] buf)
buf
- data buffer.public static int getLeUnsignedShort(byte[] buf)
buf
- data buffer.public static char getLeChar(byte[] buf)
buf
- data buffer.EOFException
- If end of file is reached.IOException
- If other I/O error has occurred.public static int getLeInt(byte[] buf)
buf
- data buffer.public static long getLeLong(byte[] buf)
buf
- data buffer.public static float getLeFloat(byte[] buf)
buf
- data buffer.public static double getLeDouble(byte[] buf)
buf
- data buffer.