Class BufrIndicatorSection


  • @Immutable
    public class BufrIndicatorSection
    extends Object
    A class representing the IndicatorSection (section 0) of a BUFR record. Handles editions 2,3,4.
    • 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.