public class MessageScanner extends Object
Constructor and Description |
---|
MessageScanner(RandomAccessFile raf) |
MessageScanner(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(RandomAccessFile raf)
is this a valid BUFR file.
|
Message |
next() |
void |
reset() |
long |
writeCurrentMessage(WritableByteChannel out) |
public MessageScanner(RandomAccessFile raf) throws IOException
IOException
public MessageScanner(RandomAccessFile raf, long startPos, boolean useEmbeddedTables) throws IOException
IOException
public static boolean isValidFile(RandomAccessFile raf) throws IOException
raf
- check this fileIOException
- on read errorpublic Message getFirstDataMessage() throws IOException
IOException
public void reset()
public boolean hasNext() throws IOException
IOException
public Message next()
public TableLookup getTableLookup() throws IOException
IOException
public byte[] getMessageBytesFromLast(Message m) throws IOException
IOException
public byte[] getMessageBytes(Message m) throws IOException
IOException
public int getTotalObs()
public int getTotalMessages()
public long writeCurrentMessage(WritableByteChannel out) throws IOException
IOException
Copyright © 1999–2015 UCAR/Unidata. All rights reserved.