|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.iosp.bufr.Message
public class Message
Encapsolates a complete BUFR message. A message has a DataDescriptor and one or more "datasets" aka "data subsets" aka "observations" aka "obs".
| Field Summary | |
|---|---|
BufrDataSection |
dataSection
|
BufrDataDescriptionSection |
dds
|
BufrIdentificationSection |
ids
|
BufrIndicatorSection |
is
|
| Constructor Summary | |
|---|---|
Message(RandomAccessFile raf,
BufrIndicatorSection is,
BufrIdentificationSection ids,
BufrDataDescriptionSection dds,
BufrDataSection dataSection,
java.util.GregorianCalendar cal)
|
|
| Method Summary | |
|---|---|
int |
calcTotalBits(java.util.Formatter out)
|
void |
close()
|
void |
dump(java.util.Formatter out)
|
void |
dumpHeader(java.util.Formatter out)
|
void |
dumpHeaderShort(java.util.Formatter out)
|
boolean |
equals(java.lang.Object obj)
BufrMessage is equal if they have the same dds. |
java.lang.String |
extractWMO()
|
BitCounterUncompressed |
getBitCounterUncompressed(int obsOffsetInMessage)
Get the offset of this obs from the start of the message data. |
java.lang.String |
getCategoryFullName()
|
java.lang.String |
getCategoryName()
|
java.lang.String |
getCategoryNo()
|
java.lang.String |
getCenterName()
|
java.lang.String |
getCenterNo()
|
int |
getCountedDataBits()
|
int |
getCountedDataBytes()
|
java.lang.String |
getHeader()
|
long |
getMessageSize()
Get the byte length of the entire BUFR record. |
int |
getNumberDatasets()
Get number of datasets in this message. |
byte[] |
getRawBytes()
|
java.util.Date |
getReferenceTime()
|
DataDescriptor |
getRootDataDescriptor()
Get the root of the DataDescriptor tree. |
long |
getStartPos()
|
TableLookup |
getTableLookup()
|
java.lang.String |
getTableName()
|
int |
getTotalBits()
This is the total number of bits taken by the data in the data section of the message. |
int |
hashCode()
Override hashcode to be consistent with equals. |
boolean |
isBitCountOk()
|
boolean |
isTablesComplete()
Check if all descriptors were found in the tables. |
void |
setHeader(java.lang.String header)
|
void |
setRawBytes(byte[] raw)
|
void |
setStartPos(long startPos)
|
void |
showMissingFields(java.util.Formatter out)
|
boolean |
usesLocalTable()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public BufrIndicatorSection is
public BufrIdentificationSection ids
public BufrDataDescriptionSection dds
public BufrDataSection dataSection
| Constructor Detail |
|---|
public Message(RandomAccessFile raf,
BufrIndicatorSection is,
BufrIdentificationSection ids,
BufrDataDescriptionSection dds,
BufrDataSection dataSection,
java.util.GregorianCalendar cal)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void close()
throws java.io.IOException
java.io.IOExceptionpublic int getNumberDatasets()
public java.lang.String getCategoryName()
public java.lang.String getCategoryNo()
public java.lang.String getCenterName()
public java.lang.String getCenterNo()
public java.lang.String getTableName()
public final java.util.Date getReferenceTime()
public void setHeader(java.lang.String header)
public java.lang.String getHeader()
public void setStartPos(long startPos)
public long getStartPos()
public void setRawBytes(byte[] raw)
public byte[] getRawBytes()
public java.lang.String extractWMO()
public long getMessageSize()
public DataDescriptor getRootDataDescriptor()
throws java.io.IOException
java.io.IOException - on read error
public boolean usesLocalTable()
throws java.io.IOException
java.io.IOException
public boolean isTablesComplete()
throws java.io.IOException
java.io.IOException - on read error
public void showMissingFields(java.util.Formatter out)
throws java.io.IOException
java.io.IOExceptionpublic TableLookup getTableLookup()
public boolean isBitCountOk()
throws java.io.IOException
java.io.IOExceptionpublic int getCountedDataBytes()
public int getCountedDataBits()
public BitCounterUncompressed getBitCounterUncompressed(int obsOffsetInMessage)
obsOffsetInMessage - index of obs in the message
public int getTotalBits()
public int calcTotalBits(java.util.Formatter out)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - other BufrMessage
public void dump(java.util.Formatter out)
throws java.io.IOException
java.io.IOException
public java.lang.String getCategoryFullName()
throws java.io.IOException
java.io.IOExceptionpublic void dumpHeader(java.util.Formatter out)
public void dumpHeaderShort(java.util.Formatter out)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||