net.sf.jml.message.p2p
Class MsnP2PDataMessage
java.lang.Object
net.sf.jml.message.MsnMimeMessage
net.sf.jml.message.p2p.MsnP2PMessage
net.sf.jml.message.p2p.MsnP2PDataMessage
public class MsnP2PDataMessage
- extends MsnP2PMessage
Method Summary |
protected byte[] |
bodyToMessage()
Retrieve the body part for this P2P message. |
protected void |
parseP2PBody(ByteBuffer buffer)
Parse the body part of this P2P message. |
protected String |
toDebugBody()
Retrieves a String representation of the body for this message. |
Methods inherited from class net.sf.jml.message.p2p.MsnP2PMessage |
getAppId, getCurrentLength, getField7, getField8, getField9, getFlag, getIdentifier, getOffset, getP2PDest, getSessionId, getTotalLength, messageReceived, parseMessage, setAppId, setCurrentLength, setField7, setField8, setField9, setFlag, setIdentifier, setOffset, setP2PDest, setSessionId, setTotalLength, toDebugString, toOutgoingMsg |
MAX_DATA_LENGTH
public static final int MAX_DATA_LENGTH
- See Also:
- Constant Field Values
MsnP2PDataMessage
public MsnP2PDataMessage()
MsnP2PDataMessage
public MsnP2PDataMessage(int sessionId,
int identifier,
int offset,
int totalLength,
byte[] data,
String p2pDest)
bodyToMessage
protected byte[] bodyToMessage()
- Description copied from class:
MsnP2PMessage
- Retrieve the body part for this P2P message.
- Specified by:
bodyToMessage
in class MsnP2PMessage
- Returns:
- Binary content for the body part of this P2P message.
parseP2PBody
protected void parseP2PBody(ByteBuffer buffer)
- Description copied from class:
MsnP2PMessage
- Parse the body part of this P2P message.
- Specified by:
parseP2PBody
in class MsnP2PMessage
- Parameters:
buffer
- Buffer with the body to be parsed.
toDebugBody
protected String toDebugBody()
- Description copied from class:
MsnP2PMessage
- Retrieves a String representation of the body for this message.
- Overrides:
toDebugBody
in class MsnP2PMessage
- Returns:
- String value.