|
||||||||||
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,
GregorianCalendar cal)
|
Method Summary | |
---|---|
int |
calcTotalBits(Formatter out)
|
void |
close()
|
void |
dump(Formatter out)
|
void |
dumpHeader(Formatter out)
|
void |
dumpHeaderShort(Formatter out)
|
boolean |
equals(Object obj)
BufrMessage is equal if they have the same dds. |
String |
extractWMO()
|
BitCounterUncompressed |
getBitCounterUncompressed(int obsOffsetInMessage)
Get the offset of this obs from the start of the message data. |
String |
getCategoryFullName()
|
String |
getCategoryName()
|
String |
getCategoryNo()
|
String |
getCenterName()
|
String |
getCenterNo()
|
int |
getCountedDataBits()
|
int |
getCountedDataBytes()
|
String |
getHeader()
|
long |
getMessageSize()
Get the byte length of the entire BUFR record. |
int |
getNumberDatasets()
Get number of datasets in this message. |
byte[] |
getRawBytes()
|
Date |
getReferenceTime()
|
DataDescriptor |
getRootDataDescriptor()
Get the root of the DataDescriptor tree. |
long |
getStartPos()
|
TableLookup |
getTableLookup()
|
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(String header)
|
void |
setRawBytes(byte[] raw)
|
void |
setStartPos(long startPos)
|
void |
showMissingFields(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, GregorianCalendar cal) throws IOException
IOException
Method Detail |
---|
public void close() throws IOException
IOException
public int getNumberDatasets()
public String getCategoryName()
public String getCategoryNo()
public String getCenterName()
public String getCenterNo()
public String getTableName()
public final Date getReferenceTime()
public void setHeader(String header)
public String getHeader()
public void setStartPos(long startPos)
public long getStartPos()
public void setRawBytes(byte[] raw)
public byte[] getRawBytes()
public String extractWMO()
public long getMessageSize()
public DataDescriptor getRootDataDescriptor() throws IOException
IOException
- on read errorpublic boolean usesLocalTable() throws IOException
IOException
public boolean isTablesComplete() throws IOException
IOException
- on read errorpublic void showMissingFields(Formatter out) throws IOException
IOException
public TableLookup getTableLookup()
public boolean isBitCountOk() throws IOException
IOException
public int getCountedDataBytes()
public int getCountedDataBits()
public BitCounterUncompressed getBitCounterUncompressed(int obsOffsetInMessage)
obsOffsetInMessage
- index of obs in the message
public int getTotalBits()
public int calcTotalBits(Formatter out)
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- other BufrMessage
public void dump(Formatter out) throws IOException
IOException
public String getCategoryFullName() throws IOException
IOException
public void dumpHeader(Formatter out)
public void dumpHeaderShort(Formatter out)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |