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(RandomAccessFile raf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Grib2Record
findRecordByDrspos(RandomAccessFile raf, long drsPos)
tricky bit of business.boolean
hasNext()
static boolean
isValidFile(RandomAccessFile raf)
Grib2Record
next()
-
-
-
Constructor Detail
-
Grib2RecordScanner
public Grib2RecordScanner(RandomAccessFile raf) throws IOException
- Throws:
IOException
-
-
Method Detail
-
isValidFile
public static boolean isValidFile(RandomAccessFile raf)
-
findRecordByDrspos
@Nullable public static Grib2Record findRecordByDrspos(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
-
-