net.sourceforge.jgrib.gdsgrids
Class GribGDSFactory

Object
  extended by GribGDSFactory

public class GribGDSFactory
extends Object

GribGDSFactory determines the proper subclass of GribRecordGDS to create. Extend GribRecordGDS to add a GDS type for your definition. Add types to the switch statement to create an instance of your new type NOTE - only a few types are supported so far

Author:
Capt Richard D. Gonzalez

Method Summary
static GribRecordGDS getGDS(ImageInputStream in)
          getGDS
static GribRecordGDS getGDS(int grid_type)
          getGDS, used as a default constructor.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getGDS

public static GribRecordGDS getGDS(ImageInputStream in)
                            throws IOException
getGDS

Parameters:
in - DOCUMENT ME!
Returns:
GribRecordGDS
Throws:
IOException - DOCUMENT ME!
NoValidGribException - DOCUMENT ME!
NotSupportedException - DOCUMENT ME!

getGDS

public static GribRecordGDS getGDS(int grid_type)
getGDS, used as a default constructor. This constructor is used to build gribgds without having a byte stream to provide them with. I am planning on using this when building a grib file from scratch, because in such a case we will not have data we need as a byte strean but rather we will have them as primitive types as requested by the grib specification.

Parameters:
grid_type - DOCUMENT ME!
Returns:
GribRecordGDS
Throws:
NotSupportedException - DOCUMENT ME!


Copyright © 2006-2010 GeoSolutions. All Rights Reserved.