|
||||||||||
| 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)
|
|
| 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 |
getCountedDataBytes()
|
BitCounterCompressed[] |
getCounterFlds()
|
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()
|
DataDescriptor |
getRootDataDescriptor()
Get the root of the DataDescriptor tree. |
long |
getStartPos()
|
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. |
java.lang.Object[][] |
readValues(java.util.List<java.lang.Integer> indexFlds)
Get values of selected fields. |
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)
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()
throws java.io.IOException
java.io.IOException
public java.lang.String getCategoryNo()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getCenterName()
public java.lang.String getCenterNo()
public java.lang.String getTableName()
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.IOException
public boolean isBitCountOk()
throws java.io.IOException
java.io.IOExceptionpublic int getCountedDataBytes()
public BitCounterUncompressed getBitCounterUncompressed(int obsOffsetInMessage)
obsOffsetInMessage - index of obs in the message
public int getTotalBits()
public int calcTotalBits(java.util.Formatter out)
public BitCounterCompressed[] getCounterFlds()
throws java.io.IOException
java.io.IOException
public java.lang.Object[][] readValues(java.util.List<java.lang.Integer> indexFlds)
throws java.io.IOException
indexFlds - index of desired field in the dds
java.io.IOException - on read errorpublic 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.IOException
public void dumpHeader(java.util.Formatter out)
throws java.io.IOException
java.io.IOException
public void dumpHeaderShort(java.util.Formatter out)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||