public class MessageScanner extends Object
| Constructor and Description |
|---|
MessageScanner(ucar.unidata.io.RandomAccessFile raf) |
MessageScanner(ucar.unidata.io.RandomAccessFile raf,
long startPos,
boolean useEmbeddedTables) |
| Modifier and Type | Method and Description |
|---|---|
Message |
getFirstDataMessage() |
byte[] |
getMessageBytes(Message m) |
byte[] |
getMessageBytesFromLast(Message m) |
TableLookup |
getTableLookup() |
int |
getTotalMessages() |
int |
getTotalObs() |
boolean |
hasNext() |
static boolean |
isValidFile(ucar.unidata.io.RandomAccessFile raf)
is this a valid BUFR file.
|
Message |
next() |
void |
reset() |
long |
writeCurrentMessage(WritableByteChannel out) |
public MessageScanner(ucar.unidata.io.RandomAccessFile raf)
throws IOException
IOExceptionpublic MessageScanner(ucar.unidata.io.RandomAccessFile raf,
long startPos,
boolean useEmbeddedTables)
throws IOException
IOExceptionpublic static boolean isValidFile(ucar.unidata.io.RandomAccessFile raf)
throws IOException
raf - check this fileIOException - on read errorpublic Message getFirstDataMessage() throws IOException
IOExceptionpublic void reset()
public boolean hasNext()
throws IOException
IOExceptionpublic Message next()
public TableLookup getTableLookup() throws IOException
IOExceptionpublic byte[] getMessageBytesFromLast(Message m) throws IOException
IOExceptionpublic byte[] getMessageBytes(Message m) throws IOException
IOExceptionpublic int getTotalObs()
public int getTotalMessages()
public long writeCurrentMessage(WritableByteChannel out) throws IOException
IOException