ucar.nc2.iosp.grib
Class Grib1ServiceProvider

java.lang.Object
  extended by ucar.nc2.iosp.AbstractIOServiceProvider
      extended by ucar.nc2.iosp.grib.GribServiceProvider
          extended by ucar.nc2.iosp.grib.Grib1ServiceProvider
All Implemented Interfaces:
IOServiceProvider

public class Grib1ServiceProvider
extends GribServiceProvider

Grib1 iosp.

Author:
caron

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.nc2.iosp.grib.GribServiceProvider
GribServiceProvider.IndexExtendMode
 
Field Summary
 
Fields inherited from class ucar.nc2.iosp.grib.GribServiceProvider
addLatLon, extendMode, fmrcCoordSys, forceNewIndex, ncfile, raf, syncMode, useMaximalCoordSys
 
Constructor Summary
Grib1ServiceProvider()
           
 
Method Summary
protected  float[] _readData(long dataOffset1, long dataOffset2, int decimalScale, boolean bmsExists)
           
 boolean isValidFile(RandomAccessFile raf)
          Check if this is a valid file for this IOServiceProvider.
protected  void open(ucar.grib.Index index, CancelTask cancelTask)
           
 
Methods inherited from class ucar.nc2.iosp.grib.GribServiceProvider
close, getDetailInfo, getIndex, isMissingXY, open, readData, readLevel, readXY, sendIospMessage, setDebugFlags, setExtendIndex, setIndexAlwaysInCache, setIndexExtendMode, setIndexSyncMode, sync, toStringDebug, useMaximalCoordSys
 
Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
createValidNetcdfObjectName, getStructureIterator, readSection, readToByteChannel, syncExtend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grib1ServiceProvider

public Grib1ServiceProvider()
Method Detail

isValidFile

public boolean isValidFile(RandomAccessFile raf)
Description copied from interface: IOServiceProvider
Check if this is a valid file for this IOServiceProvider. You must make this method thread safe, ie dont keep any state.

Parameters:
raf - RandomAccessFile
Returns:
true if valid.

open

protected void open(ucar.grib.Index index,
                    CancelTask cancelTask)
             throws java.io.IOException
Specified by:
open in class GribServiceProvider
Throws:
java.io.IOException

_readData

protected float[] _readData(long dataOffset1,
                            long dataOffset2,
                            int decimalScale,
                            boolean bmsExists)
                     throws java.io.IOException
Specified by:
_readData in class GribServiceProvider
Throws:
java.io.IOException