|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGribRecordIS
public final class GribRecordIS
A class that represents the indicator section (IS) of a GRIB record.
Constructor Summary | |
---|---|
GribRecordIS(ImageInputStream in)
Constructs a GribRecordIS object from an image input stream which can link to a file or a strem. |
|
GribRecordIS(int edition)
GribRecordIS. |
|
GribRecordIS(int edition,
int PDS,
int GDS,
int BMS,
int BDS)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
getGribEdition()
Get the EDITION of the GRIB specification used. |
int |
getGribLength()
Get the byte gribLength of this GRIB record. |
int |
getLength()
Get the byte gribLength of the IS section. |
void |
setLength(int PDS,
int GDS,
int BMS,
int BDS)
This method is used to set the gribLength of the Indicato Section for the current grib record. |
String |
toString()
Get a string representation of this IS. |
void |
writeTo(OutputStream out)
writeTo(OutputStream out) Write the indicator section to |
Methods inherited from class Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GribRecordIS(int edition)
EDITION
- int Edition of the grib record (MUST be 1)
NotSupportedException
public GribRecordIS(int edition, int PDS, int GDS, int BMS, int BDS)
public GribRecordIS(ImageInputStream in) throws IOException
in
- Image input stream with IS content
NotSupportedException
- In case the grib EDITION field is different from 1.
IOException
- If the stream can not be opened etc.Method Detail |
---|
public int getGribLength()
public int getLength()
public int getGribEdition()
public String toString()
toString
in class Object
public void writeTo(OutputStream out) throws IOException
out
- Output stream to write to.
IOException
- A low level I/O error occurred.public void setLength(int PDS, int GDS, int BMS, int BDS)
PDS
- int PDS gribLength.GDS
- int GDS gribLength.BMS
- int BMS gribLength.BDS
- int BDS gribLength.public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |