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

		return packet.getByteArray(offset, buffer);
	}
/**
	 * Copies the payload data portion of the packet right after the current
	 * header to user supplied buffer.
	 * 
	 * @param buffer
	 *          buffer where the data will be written to
	 * @return the same buffer that was passed in
	 */
Copies the payload data portion of the packet right after the current
header to user supplied buffer.

@param buffer
buffer where the data will be written to
@return the same buffer that was passed in
Copies the payload data portion of the packet right after the current header to user supplied buffer . @param buffer buffer where the data will be written to @return the same buffer that was passed in
public byte[] transferPayloadTo(byte[] buffer) {
		final JPacket packet = getPacket();
		final int offset = getOffset() + size();
		return packet.getByteArray(offset, buffer);
	}
public byte [ ] transferPayloadTo ( byte [ ] buffer ) { final JPacket packet = getPacket ( ) ; final int offset = getOffset ( ) + size ( ) ; return packet . getByteArray ( offset , buffer ) ; }
Copies the payload data portion of the packet right after the current
 header to user supplied buffer.
Copies the payload data portion of the packet right after the current header to user supplied buffer .