public final class BufrNumbers
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
UNDEFINED
if missing value is not defined use this value.
|
Constructor and Description |
---|
BufrNumbers() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final int UNDEFINED
public static boolean isMissing(long raw, int bitWidth)
public static int int2(RandomAccessFile raf) throws java.io.IOException
raf
- java.io.IOException
public static int int2(int a, int b)
a
- b
- public static int int3(RandomAccessFile raf) throws java.io.IOException
raf
- java.io.IOException
public static int int4(RandomAccessFile raf) throws java.io.IOException
raf
- java.io.IOException
public static int uint2(RandomAccessFile raf) throws java.io.IOException
raf
- java.io.IOException
public static int uint3(RandomAccessFile raf) throws java.io.IOException
raf
- java.io.IOException
public static int uint3(int a, int b, int c)
a
- b
- c
- public static float float4(RandomAccessFile raf) throws java.io.IOException
raf
- java.io.IOException
public static long int8(RandomAccessFile raf) throws java.io.IOException
raf
- RandomAccessFilejava.io.IOException