Package ucar.nc2.iosp.bufr
Class BufrNumbers
- java.lang.Object
-
- ucar.nc2.iosp.bufr.BufrNumbers
-
public final class BufrNumbers extends Object
A class that contains static methods for converting multiple bytes into one float or integer.
-
-
Constructor Summary
Constructors Constructor Description BufrNumbers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static float
float4(RandomAccessFile raf)
Read 4 bytes and convert into a float value.static int
int4(RandomAccessFile raf)
Convert 4 bytes into a signed integer.static long
int8(RandomAccessFile raf)
Read 8 bytes and convert into a signed long.static boolean
isMissing(long raw, int bitWidth)
static int
uint3(RandomAccessFile raf)
Read 3 bytes and convert into an unsigned integer.
-
-
-
Method Detail
-
isMissing
public static boolean isMissing(long raw, int bitWidth)
-
int4
public static int int4(RandomAccessFile raf) throws IOException
Convert 4 bytes into a signed integer.- Throws:
IOException
-
uint3
public static int uint3(RandomAccessFile raf) throws IOException
Read 3 bytes and convert into an unsigned integer.- Throws:
IOException
-
float4
public static float float4(RandomAccessFile raf) throws IOException
Read 4 bytes and convert into a float value.- Throws:
IOException
-
int8
public static long int8(RandomAccessFile raf) throws IOException
Read 8 bytes and convert into a signed long.- Throws:
IOException
-
-