src/org/jnetpcap/packet/JHeader.java
public ByteBuffer transferPayloadTo(ByteBuffer buffer) {
		final JPacket packet = getPacket();
		final int offset = getOffset() + size();

		packet.transferTo(buffer, offset, packet.remaining(offset));

		return buffer;
	}
/**
	 * Copies into the user supplied buffer, the payload data portion of the
	 * packet right after the current header. The copy will start at the current
	 * ByteBuffer position property.
	 * 
	 * @param buffer
	 *          buffer to copy the data to
	 * @return the same buffer that was passed in
	 */
Copies into the user supplied buffer, the payload data portion of the
packet right after the current header. The copy will start at the current
ByteBuffer position property.

@param buffer
buffer to copy the data to
@return the same buffer that was passed in
Copies into the user supplied buffer the payload data portion of the packet right after the current header . The copy will start at the current ByteBuffer position property . @param buffer buffer to copy the data to @return the same buffer that was passed in
public ByteBuffer transferPayloadTo(ByteBuffer buffer) {
		final JPacket packet = getPacket();
		final int offset = getOffset() + size();
		packet.transferTo(buffer, offset, packet.remaining(offset));
		return buffer;
	}
public ByteBuffer transferPayloadTo ( ByteBuffer buffer ) { final JPacket packet = getPacket ( ) ; final int offset = getOffset ( ) + size ( ) ; packet . transferTo ( buffer , offset , packet . remaining ( offset ) ) ; return buffer ; }
Copies into the user supplied buffer, the payload data portion of the
 packet right after the current header.
Copies into the user supplied buffer the payload data portion of the packet right after the current header .