net.sourceforge.jgrib
Class GribRecordBMS

Object
  extended by GribRecordBMS

public final class GribRecordBMS
extends Object

A class that represents the bitmap section (BMS) of a GRIB record. It indicates grid points where no parameter value is defined.

Author:
Benjamin Stark

Constructor Summary
GribRecordBMS(boolean[] bitmap)
          GribRecordBMS
GribRecordBMS(ImageInputStream in)
          DOCUMENT ME!
 
Method Summary
 boolean equals(Object obj)
           
 boolean[] getBitmap()
          Get bit map.
 int getLength()
          Get length in bytes of this section.
 long getPos()
           
 int getSize()
           
 void setPos(long pos)
           
 void setSize(int size)
           
 String toString()
          Get a string representation of this BMS.
 void writeTo(OutputStream out)
          writeTo
 
Methods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GribRecordBMS

public GribRecordBMS(boolean[] bitmap)
GribRecordBMS

Parameters:
bitmap - String

GribRecordBMS

public GribRecordBMS(ImageInputStream in)
              throws IOException
DOCUMENT ME!

Parameters:
in -
Throws:
IOException
NoValidGribException
Method Detail

getLength

public int getLength()
Get length in bytes of this section.

Returns:
length in bytes

getBitmap

public boolean[] getBitmap()
                    throws IOException
Get bit map.

Returns:
bit map as array of boolean values
Throws:
IOException

toString

public String toString()
Get a string representation of this BMS.

Overrides:
toString in class Object
Returns:
string representation of this BMS

writeTo

public void writeTo(OutputStream out)
             throws IOException
writeTo

Parameters:
out - OutputStream
Throws:
IOException - DOCUMENT ME!

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getPos

public long getPos()

setPos

public void setPos(long pos)

getSize

public int getSize()

setSize

public void setSize(int size)


Copyright © 2006-2010 GeoSolutions. All Rights Reserved.