| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MessageStreamDecoder
Decodes a message stream into separate messages.
| Method Summary | |
|---|---|
 ByteBuffer | 
destroy()
Destroy this decoder, i.e.  | 
 int | 
getDataBytesDecoded()
Get the number of (piece) data bytes decoded from the transport, from the last decode op.  | 
 int | 
getProtocolBytesDecoded()
Get the number of protocol (overhead) bytes decoded from the transport, from the last decode op.  | 
 void | 
pauseDecoding()
Pause message decoding.  | 
 int | 
performStreamDecode(Transport transport,
                    int max_bytes)
Decode message stream from the given transport.  | 
 Message[] | 
removeDecodedMessages()
Get the messages decoded from the transport, if any, from the last decode op.  | 
 void | 
resumeDecoding()
Resume message decoding.  | 
| Method Detail | 
|---|
int performStreamDecode(Transport transport,
                        int max_bytes)
                        throws IOException
transport - to decode frommax_bytes - to decode/read from the stream
IOException - on decoding errorMessage[] removeDecodedMessages()
int getProtocolBytesDecoded()
int getDataBytesDecoded()
void pauseDecoding()
void resumeDecoding()
ByteBuffer destroy()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||