Package ucar.nc2.iosp.bufr
Class BufrIndicatorSection
- java.lang.Object
-
- ucar.nc2.iosp.bufr.BufrIndicatorSection
-
@Immutable public class BufrIndicatorSection extends Object
A class representing the IndicatorSection (section 0) of a BUFR record. Handles editions 2,3,4.
-
-
Constructor Summary
Constructors Constructor Description BufrIndicatorSection(RandomAccessFile raf)
Constructs a BufrIndicatorSection object from a raf.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBufrEdition()
Get the edition of the BUFR specification used.int
getBufrLength()
Get the byte length of this BUFR record.long
getStartPos()
Get starting position in the file.
-
-
-
Constructor Detail
-
BufrIndicatorSection
public BufrIndicatorSection(RandomAccessFile raf) throws IOException
Constructs a BufrIndicatorSection object from a raf.- Parameters:
raf
- RandomAccessFile with IndicatorSection content- Throws:
IOException
- on read error
-
-
Method Detail
-
getBufrLength
public final int getBufrLength()
Get the byte length of this BUFR record.- Returns:
- length in bytes of BUFR record
-
getBufrEdition
public final int getBufrEdition()
Get the edition of the BUFR specification used.- Returns:
- edition number of BUFR specification
-
getStartPos
public final long getStartPos()
Get starting position in the file. This should point to the "BUFR" chars .- Returns:
- byte offset in file of start of BUFR meessage.
-
-