ucar.grib.grib2
Class Grib2IndicatorSection

java.lang.Object
  extended by ucar.grib.grib2.Grib2IndicatorSection

public final class Grib2IndicatorSection
extends Object

A class that represents the IndicatorSection of a GRIB record. The first section of a Grib record


Constructor Summary
Grib2IndicatorSection(RandomAccessFile raf)
          Constructs a Grib2IndicatorSection object from a byteBuffer.
 
Method Summary
 int getDiscipline()
          Discipline - GRIB Master Table Number.
 String getDisciplineName()
          Discipline - GRIB Master Table Name.
 long getEndPos()
           
 int getGribEdition()
          Get the edition of the GRIB specification used.
 long getGribLength()
          Get the byte length of this GRIB record.
 int getLength()
          Get the byte length of the IndicatorSection0 section.
 long getStartPos()
           
 void setPos(long startPos, long endPos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib2IndicatorSection

public Grib2IndicatorSection(RandomAccessFile raf)
                      throws IOException
Constructs a Grib2IndicatorSection object from a byteBuffer.

Parameters:
raf - RandomAccessFile with IndicatorSection content
Throws:
IOException - if raf contains no valid GRIB file
NotSupportedException - _more_
Method Detail

getGribLength

public final long getGribLength()
Get the byte length of this GRIB record.

Returns:
length in bytes of GRIB record

getLength

public final int getLength()
Get the byte length of the IndicatorSection0 section.

Returns:
length in bytes of IndicatorSection0 section

getDiscipline

public final int getDiscipline()
Discipline - GRIB Master Table Number.

Returns:
discipline number

getDisciplineName

public final String getDisciplineName()
Discipline - GRIB Master Table Name.

Returns:
disciplineName

getGribEdition

public final int getGribEdition()
Get the edition of the GRIB specification used.

Returns:
edition number of GRIB specification

getStartPos

public long getStartPos()

setPos

public void setPos(long startPos,
                   long endPos)

getEndPos

public long getEndPos()


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.