|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.iosp.bufr.BufrNumbers
public final class BufrNumbers
A class that contains static methods for converting multiple bytes into one float or integer.
Field Summary | |
---|---|
static int |
UNDEFINED
if missing value is not defined use this value. |
Constructor Summary | |
---|---|
BufrNumbers()
|
Method Summary | |
---|---|
static float |
float4(RandomAccessFile raf)
Convert 4 bytes into a float value. |
static int |
int2(int a,
int b)
convert 2 bytes to a signed integer. |
static int |
int2(RandomAccessFile raf)
Convert 2 bytes into a signed integer. |
static int |
int3(RandomAccessFile raf)
Convert 3 bytes into a signed integer. |
static int |
int4(RandomAccessFile raf)
Convert 4 bytes into a signed integer. |
static long |
int8(RandomAccessFile raf)
Convert 8 bytes into a signed long. |
static boolean |
isMissing(long raw,
int bitWidth)
|
static int |
uint2(RandomAccessFile raf)
Convert 2 bytes into an unsigned integer. |
static int |
uint3(int a,
int b,
int c)
Convert 3 bytes into an unsigned int. |
static int |
uint3(RandomAccessFile raf)
Convert 3 bytes into an unsigned integer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int UNDEFINED
Constructor Detail |
---|
public BufrNumbers()
Method Detail |
---|
public static boolean isMissing(long raw, int bitWidth)
public static int int2(RandomAccessFile raf) throws IOException
raf
-
IOException
public static int int2(int a, int b)
a
- b
-
public static int int3(RandomAccessFile raf) throws IOException
raf
-
IOException
public static int int4(RandomAccessFile raf) throws IOException
raf
-
IOException
public static int uint2(RandomAccessFile raf) throws IOException
raf
-
IOException
public static int uint3(RandomAccessFile raf) throws IOException
raf
-
IOException
public static int uint3(int a, int b, int c)
a
- b
- c
-
public static float float4(RandomAccessFile raf) throws IOException
raf
-
IOException
public static long int8(RandomAccessFile raf) throws IOException
raf
- RandomAccessFile
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |