|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jgrib.Bytes2Number
public class Bytes2Number
A class that contains several static methods for converting multiple bytes into one float or integer.
Constructor Summary | |
---|---|
Bytes2Number()
|
Method Summary | |
---|---|
static float |
float4(int a,
int b,
int c,
int d)
Convert four bytes into a float value. |
static int |
int2(int a,
int b)
Convert two bytes into a signed integer. |
static int |
int3(int a,
int b,
int c)
Convert three bytes into a signed integer. |
static int |
int4(int a,
int b,
int c,
int d)
Convert four bytes into a signed integer. |
static int |
uint2(int a,
int b)
Convert two bytes into an unsigned integer. |
static int |
uint3(int a,
int b,
int c)
Convert three bytes into an unsigned integer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Bytes2Number()
Method Detail |
---|
public static int int2(int a, int b)
a
- higher byteb
- lower byte
public static int int3(int a, int b, int c)
a
- higher byteb
- middle part bytec
- lower byte
public static int int4(int a, int b, int c, int d)
a
- highest byteb
- higher middle bytec
- lower middle byted
- lowest byte
public static int uint2(int a, int b)
a
- higher byteb
- lower byte
public static int uint3(int a, int b, int c)
a
- higher byteb
- middle bytec
- lower byte
public static float float4(int a, int b, int c, int d)
a
- highest byteb
- higher bytec
- lower byted
- lowest byte
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |