Package ucar.nc2.grib.grib2
Class Grib2RecordScanner
- java.lang.Object
-
- ucar.nc2.grib.grib2.Grib2RecordScanner
-
public class Grib2RecordScanner extends Object
Scan raf for grib-2 messages- Since:
- 3/28/11
-
-
Constructor Summary
Constructors Constructor Description Grib2RecordScanner(ucar.unidata.io.RandomAccessFile raf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Grib2RecordfindRecordByDrspos(ucar.unidata.io.RandomAccessFile raf, long drsPos)tricky bit of business.booleanhasNext()static booleanisValidFile(ucar.unidata.io.RandomAccessFile raf)Grib2Recordnext()
-
-
-
Constructor Detail
-
Grib2RecordScanner
public Grib2RecordScanner(ucar.unidata.io.RandomAccessFile raf) throws IOException- Throws:
IOException
-
-
Method Detail
-
isValidFile
public static boolean isValidFile(ucar.unidata.io.RandomAccessFile raf)
-
findRecordByDrspos
@Nullable public static Grib2Record findRecordByDrspos(ucar.unidata.io.RandomAccessFile raf, long drsPos) throws IOException
tricky bit of business. recapture the entire record based on drs position. for validation.- Parameters:
raf- from this RandomAccessFiledrsPos- Grib2SectionDataRepresentation starts here- Throws:
IOException
-
hasNext
public boolean hasNext() throws IOException- Throws:
IOException
-
next
public Grib2Record next() throws IOException
- Throws:
IOException
-
-