|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.pluginsimpl.local.messaging.MessageStreamDecoderAdapter
public class MessageStreamDecoderAdapter
Constructor Summary | |
---|---|
MessageStreamDecoderAdapter(MessageStreamDecoder plug_decoder)
|
Method Summary | |
---|---|
java.nio.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 |
getPercentDoneOfCurrentMessage()
Get the percentage of the current message that has already been received (read from the transport). |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageStreamDecoderAdapter(MessageStreamDecoder plug_decoder)
Method Detail |
---|
public int performStreamDecode(Transport transport, int max_bytes) throws java.io.IOException
MessageStreamDecoder
performStreamDecode
in interface MessageStreamDecoder
transport
- to decode frommax_bytes
- to decode/read from the stream
java.io.IOException
- on decoding errorpublic int getPercentDoneOfCurrentMessage()
MessageStreamDecoder
getPercentDoneOfCurrentMessage
in interface MessageStreamDecoder
public Message[] removeDecodedMessages()
MessageStreamDecoder
removeDecodedMessages
in interface MessageStreamDecoder
public int getProtocolBytesDecoded()
MessageStreamDecoder
getProtocolBytesDecoded
in interface MessageStreamDecoder
public int getDataBytesDecoded()
MessageStreamDecoder
getDataBytesDecoded
in interface MessageStreamDecoder
public void pauseDecoding()
MessageStreamDecoder
pauseDecoding
in interface MessageStreamDecoder
public void resumeDecoding()
MessageStreamDecoder
resumeDecoding
in interface MessageStreamDecoder
public java.nio.ByteBuffer destroy()
MessageStreamDecoder
destroy
in interface MessageStreamDecoder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |