public class FastDecoder extends Object implements Coder
MessageInputStream when working with FAST messages embedded in other protocols.
| Constructor and Description |
|---|
FastDecoder(Context context,
InputStream in)
Construct a new FastDecoder with a context and input stream.
|
| Modifier and Type | Method and Description |
|---|---|
Message |
readMessage()
Read the next FAST message from the input stream.
|
Message |
readMessage(int offset)
Helper method that can be used to read past a non-FAST message header.
|
void |
reset()
Reset the FAST dictionary.
|
public FastDecoder(Context context, InputStream in)
context - The context containg templates to be used in decoding and where FAST dictionary data will be storedin - The input stream to read messages frompublic Message readMessage() throws FastException
FastException - if a decoding error occurs or the end of the input stream has been reachedpublic Message readMessage(int offset)
offset - number of bytes in the stream to skipCopyright © 2006-2013 The LaSalle Technology Group, LLC. All Rights Reserved.