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(ucar.unidata.io.RandomAccessFile raf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Grib2SectionBitMapfactory(ucar.unidata.io.RandomAccessFile raf, long startingPos)byte[]getBitmap(ucar.unidata.io.RandomAccessFile raf)Read the bit map array.intgetBitMapIndicator()longgetStartingPosition()StringtoString()
-
-
-
Constructor Detail
-
Grib2SectionBitMap
public Grib2SectionBitMap(ucar.unidata.io.RandomAccessFile raf) throws IOException- Throws:
IOException
-
-
Method Detail
-
factory
public static Grib2SectionBitMap factory(ucar.unidata.io.RandomAccessFile raf, long startingPos) throws IOException
- Throws:
IOException
-
getBitMapIndicator
public int getBitMapIndicator()
-
getStartingPosition
public long getStartingPosition()
-
getBitmap
@Nullable public byte[] getBitmap(ucar.unidata.io.RandomAccessFile raf) throws IOExceptionRead 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
-
-