@Immutable public class Grib1SectionIndicator extends 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 IOException
raf
- RandomAccessFile, with pointer at start (the "GRIB")IOException
- on I/O errorIllegalArgumentException
- if not a GRIB-2 recordpublic Grib1SectionIndicator(long startPos, long messageLength)
public long getMessageLength()
public long getStartPos()
public long getEndPos()
Copyright © 1999–2016 UCAR/Unidata. All rights reserved.