net.sourceforge.jgrib
Class GribGDSFactory

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

public class GribGDSFactory
extends java.lang.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 TODO - only a few types are supported so far

Version:
1.0
Author:
Capt Richard D. Gonzalez

Method Summary
static GribRecordGDS getGDS(BitInputStream in)
          Determines the Grid type and calls the appropriate constructor (if it exists) See: table 6
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getGDS

public static GribRecordGDS getGDS(BitInputStream in)
                            throws java.io.IOException,
                                   NoValidGribException,
                                   NotSupportedException
Determines the Grid type and calls the appropriate constructor (if it exists) See: table 6

Parameters:
in - bit input stream with GDS content
Returns:
GribRecordGDS
Throws:
java.io.IOException - if stream can not be opened etc.
NoValidGribException - if stream contains no valid GRIB file
NotSupportedException - if GRIB type is not supported in JGRIB