net.sourceforge.jgrib
Class GribRecordIS

java.lang.Object
  extended by net.sourceforge.jgrib.GribRecordIS

public class GribRecordIS
extends java.lang.Object

A class that represents the indicator section (IS) of a GRIB record.

Version:
1.1
Author:
Benjamin Stark, Richard D. Gonzalez - modified to indicate support of GRIB edition 1 only

Field Summary
protected  int edition
          Edition of GRIB specification used.
protected  int isLength
          Length in bytes of IS section.
protected  int length
          Length in bytes of GRIB record.
 
Constructor Summary
GribRecordIS(BitInputStream in)
          Constructs a GribRecordIS object from a bit input stream.
 
Method Summary
 int getGribEdition()
          Get the edition of the GRIB specification used.
 int getGribLength()
          Get the byte length of this GRIB record.
 int getISLength()
          Get the byte length of the IS section.
 java.lang.String toString()
          Get a string representation of this IS.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

length

protected int length
Length in bytes of GRIB record.


isLength

protected int isLength
Length in bytes of IS section. Section length differs between GRIB editions 1 and 2 Currently only GRIB edition 1 supported - length is 8 octets/bytes.


edition

protected int edition
Edition of GRIB specification used.

Constructor Detail

GribRecordIS

public GribRecordIS(BitInputStream in)
             throws NotSupportedException,
                    java.io.IOException
Constructs a GribRecordIS object from a bit input stream.

Parameters:
in - bit input stream with IS content
Throws:
NotSupportedException
java.io.IOException - if stream can not be opened etc.
Method Detail

getGribLength

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

Returns:
length in bytes of GRIB record

getISLength

public int getISLength()
Get the byte length of the IS section.

Returns:
length in bytes of IS section

getGribEdition

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

Returns:
edition number of GRIB specification

toString

public java.lang.String toString()
Get a string representation of this IS.

Overrides:
toString in class java.lang.Object
Returns:
string representation of this IS