|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.core.peermanager.messaging.MessagingUtil
public class MessagingUtil
Constructor Summary | |
---|---|
MessagingUtil()
|
Method Summary | |
---|---|
static java.util.Map |
convertBencodedByteStreamToPayload(DirectByteBuffer stream,
int min_size,
java.lang.String id)
Convert the given bencoded byte stream into a message map. |
static DirectByteBuffer |
convertPayloadToBencodedByteStream(java.util.Map payload,
byte alloc_id)
Convert the given message payload map to a bencoded byte stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessagingUtil()
Method Detail |
---|
public static DirectByteBuffer convertPayloadToBencodedByteStream(java.util.Map payload, byte alloc_id)
payload
- to convert
public static java.util.Map convertBencodedByteStreamToPayload(DirectByteBuffer stream, int min_size, java.lang.String id) throws MessageException
stream
- to convertmin_size
- of streamid
- of message
MessageException
- on convertion error
NOTE: Does not auto-return given direct buffer on thrown exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |