public class MessageScanner extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_MESSAGE_SIZE |
| Constructor and Description |
|---|
MessageScanner(RandomAccessFile raf) |
MessageScanner(RandomAccessFile raf,
long startPos,
boolean useEmbeddedTables) |
| Modifier and Type | Method and Description |
|---|---|
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() |
long |
writeCurrentMessage(WritableByteChannel out) |
public static final int MAX_MESSAGE_SIZE
public MessageScanner(RandomAccessFile raf) throws IOException
IOExceptionpublic MessageScanner(RandomAccessFile raf, long startPos, boolean useEmbeddedTables) throws IOException
IOExceptionpublic static boolean isValidFile(RandomAccessFile raf) throws IOException
raf - check this fileIOException - on read errorpublic boolean hasNext()
throws IOException
IOExceptionpublic Message next() throws IOException
IOExceptionpublic 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
IOExceptionCopyright © 1999-2013 UCAR/Unidata. All Rights Reserved.