public class Message extends Object
Modifier and Type | Field and Description |
---|---|
BufrDataSection |
dataSection |
BufrDataDescriptionSection |
dds |
BufrIdentificationSection |
ids |
BufrIndicatorSection |
is |
Constructor and Description |
---|
Message(RandomAccessFile raf,
BufrIndicatorSection is,
BufrIdentificationSection ids,
BufrDataDescriptionSection dds,
BufrDataSection dataSection) |
Modifier and Type | Method and Description |
---|---|
int |
calcTotalBits(Formatter out) |
void |
close() |
boolean |
containsBufrTable()
Check if this message contains a BUFR table
|
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.
|
int |
getCountedDataBits() |
int |
getCountedDataBytes() |
int |
getDDShashcode() |
String |
getHeader() |
BufrTableLookup |
getLookup() |
long |
getMessageSize()
Get the byte length of the entire BUFR record.
|
int |
getNumberDatasets()
Get number of datasets in this message.
|
byte[] |
getRawBytes() |
CalendarDate |
getReferenceTime() |
DataDescriptor |
getRootDataDescriptor()
Get the root of the DataDescriptor tree.
|
long |
getStartPos() |
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() |
public BufrIndicatorSection is
public BufrIdentificationSection ids
public BufrDataDescriptionSection dds
public BufrDataSection dataSection
public Message(RandomAccessFile raf, BufrIndicatorSection is, BufrIdentificationSection ids, BufrDataDescriptionSection dds, BufrDataSection dataSection) throws IOException
IOException
public void close() throws IOException
IOException
public int getNumberDatasets()
public CalendarDate 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()
public boolean usesLocalTable() throws IOException
IOException
public boolean containsBufrTable() throws IOException
IOException
- on read errorpublic boolean isTablesComplete() throws IOException
IOException
- on read errorpublic BufrTableLookup getLookup()
public boolean isBitCountOk() throws IOException
IOException
public int getCountedDataBytes()
public int getCountedDataBits()
public BitCounterUncompressed getBitCounterUncompressed(int obsOffsetInMessage)
obsOffsetInMessage
- index of obs in the messagepublic int getTotalBits()
public int calcTotalBits(Formatter out)
public int hashCode()
public int getDDShashcode()
public boolean equals(Object obj)
public void showMissingFields(Formatter out) throws IOException
IOException
public void dump(Formatter out)
public void dumpHeader(Formatter out)
public void dumpHeaderShort(Formatter out)
Copyright © 1999–2017 UCAR/Unidata. All rights reserved.