|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JPayloadAccessor
Interface which provides access to payload portion of the packet data. When considered from a header's perspective, each header has a raw payload portion, which may be other headers. The remaining, undecoded data at the end of the packet is simply payload of the last header.
| Method Summary | |
|---|---|
byte[] |
getPayload()
Retrieves the playload data portion of the packet right after the current header. |
JBuffer |
peerPayloadTo(JBuffer buffer)
Peers, without copy, the user supplied buffer with payload data portion of the packet right after the current header. |
byte[] |
transferPayloadTo(byte[] buffer)
Copies the payload data portion of the packet right after the current header to user supplied buffer. |
java.nio.ByteBuffer |
transferPayloadTo(java.nio.ByteBuffer buffer)
Copies into the user supplied buffer, the payload data portion of the packet right after the current header. |
JBuffer |
transferPayloadTo(JBuffer buffer)
Copies into the user supplied buffer, the payload data portion of the packet right after the current header. |
| Method Detail |
|---|
byte[] getPayload()
byte[] transferPayloadTo(byte[] buffer)
buffer - buffer where the data will be written to
JBuffer peerPayloadTo(JBuffer buffer)
buffer - buffer to peer the data with
JBuffer transferPayloadTo(JBuffer buffer)
buffer - buffer to copy the data to
java.nio.ByteBuffer transferPayloadTo(java.nio.ByteBuffer buffer)
buffer - buffer to copy the data to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||