@Immutable
public class Grib1SectionIndicator
extends java.lang.Object
Constructor and Description |
---|
Grib1SectionIndicator(long startPos,
long messageLength) |
Grib1SectionIndicator(RandomAccessFile raf)
Read Grib2SectionIndicator from raf.
|
Modifier and Type | Method and Description |
---|---|
long |
getEndPos()
Ending position of the entire GRIB message: startPos + messageLength
|
long |
getMessageLength()
Get the length of this GRIB record in bytes.
|
long |
getStartPos()
Starting position of the entire GRIB message: the 'G' in GRIB
|
public Grib1SectionIndicator(RandomAccessFile raf) throws java.io.IOException
raf
- RandomAccessFile, with pointer at start (the "GRIB")java.io.IOException
- on I/O errorjava.lang.IllegalArgumentException
- if not a GRIB-2 recordpublic Grib1SectionIndicator(long startPos, long messageLength)
public long getMessageLength()
public long getStartPos()
public long getEndPos()