ucar.nc2.iosp.bufr
Class BufrIosp

java.lang.Object
  extended by ucar.nc2.iosp.AbstractIOServiceProvider
      extended by ucar.nc2.iosp.bufr.BufrIosp
All Implemented Interfaces:
IOServiceProvider

public class BufrIosp
extends AbstractIOServiceProvider

IOSP for BUFR data

Author:
caron

Field Summary
static java.lang.String obsRecord
           
 
Fields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
raf
 
Constructor Summary
BufrIosp()
           
 
Method Summary
 void compare(Structure obs)
           
static void doon(java.lang.String filename)
           
 java.lang.String getDetailInfo()
           
 java.lang.String getFileTypeDescription()
           
 java.lang.String getFileTypeId()
           
 StructureDataIterator getStructureIterator(Structure s, int bufferSize)
          Get the structure iterator
 boolean isValidFile(RandomAccessFile raf)
           
static void main(java.lang.String[] arg)
           
 void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask)
           
 void readAll(boolean dump)
           
 Array readData(Variable v2, Section section)
           
static void setDebugFlags(DebugFlags debugFlag)
           
 
Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
close, createValidNetcdfObjectName, getFileTypeVersion, readSection, readToByteChannel, sendIospMessage, sync, syncExtend, toStringDebug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

obsRecord

public static final java.lang.String obsRecord
See Also:
Constant Field Values
Constructor Detail

BufrIosp

public BufrIosp()
Method Detail

setDebugFlags

public static void setDebugFlags(DebugFlags debugFlag)

isValidFile

public boolean isValidFile(RandomAccessFile raf)
                    throws java.io.IOException
Throws:
java.io.IOException

open

public void open(RandomAccessFile raf,
                 NetcdfFile ncfile,
                 CancelTask cancelTask)
          throws java.io.IOException
Specified by:
open in interface IOServiceProvider
Overrides:
open in class AbstractIOServiceProvider
Throws:
java.io.IOException

readData

public Array readData(Variable v2,
                      Section section)
               throws java.io.IOException,
                      InvalidRangeException
Throws:
java.io.IOException
InvalidRangeException

getStructureIterator

public StructureDataIterator getStructureIterator(Structure s,
                                                  int bufferSize)
                                           throws java.io.IOException
Get the structure iterator

Specified by:
getStructureIterator in interface IOServiceProvider
Overrides:
getStructureIterator in class AbstractIOServiceProvider
Parameters:
s - the Structure
bufferSize - the buffersize
Returns:
the data iterator
Throws:
java.io.IOException - if problem reading data

getDetailInfo

public java.lang.String getDetailInfo()
Specified by:
getDetailInfo in interface IOServiceProvider
Overrides:
getDetailInfo in class AbstractIOServiceProvider

getFileTypeId

public java.lang.String getFileTypeId()

getFileTypeDescription

public java.lang.String getFileTypeDescription()

readAll

public void readAll(boolean dump)
             throws java.io.IOException,
                    InvalidRangeException
Throws:
java.io.IOException
InvalidRangeException

compare

public void compare(Structure obs)
             throws java.io.IOException,
                    InvalidRangeException
Throws:
java.io.IOException
InvalidRangeException

doon

public static void doon(java.lang.String filename)
                 throws java.io.IOException,
                        InvalidRangeException
Throws:
java.io.IOException
InvalidRangeException

main

public static void main(java.lang.String[] arg)
                 throws java.io.IOException,
                        InvalidRangeException
Throws:
java.io.IOException
InvalidRangeException


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.