Package ucar.nc2.grib.grib2
Class Grib2SectionBitMap
- java.lang.Object
-
- ucar.nc2.grib.grib2.Grib2SectionBitMap
-
@Immutable public class Grib2SectionBitMap extends Object
The BitMap section 6 for GRIB-2 files- Since:
- 3/29/11
-
-
Constructor Summary
Constructors Constructor Description Grib2SectionBitMap(RandomAccessFile raf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Grib2SectionBitMap
factory(RandomAccessFile raf, long startingPos)
byte[]
getBitmap(RandomAccessFile raf)
Read the bit map array.int
getBitMapIndicator()
long
getStartingPosition()
String
toString()
-
-
-
Constructor Detail
-
Grib2SectionBitMap
public Grib2SectionBitMap(RandomAccessFile raf) throws IOException
- Throws:
IOException
-
-
Method Detail
-
factory
public static Grib2SectionBitMap factory(RandomAccessFile raf, long startingPos) throws IOException
- Throws:
IOException
-
getBitMapIndicator
public int getBitMapIndicator()
-
getStartingPosition
public long getStartingPosition()
-
getBitmap
@Nullable public byte[] getBitmap(RandomAccessFile raf) throws IOException
Read the bit map array.- Parameters:
raf
- read from here- Returns:
- bit map as array of byte values, or null if none.
- Throws:
IOException
- on read error
-
-