0002-Updated-documentation-for-updated-behavior-of-how-to.patch
src/rsb/transport/Attachment.java | ||
---|---|---|
1 | 1 |
package rsb.transport; |
2 | 2 | |
3 |
import java.nio.ByteBuffer; |
|
3 | 4 |
import java.util.Arrays; |
4 | 5 |
import java.util.logging.Level; |
5 | 6 |
import java.util.logging.Logger; |
... | ... | |
25 | 26 |
private UserData data; |
26 | 27 | |
27 | 28 |
/** |
28 |
* Construct an {@link Attachment} containing the data.
|
|
29 |
* |
|
29 |
* Constructs an {@link Attachment} containing the data. Attention: For
|
|
30 |
* transferring binary data use {@link ByteBuffer}.
|
|
30 | 31 |
* |
31 | 32 |
* @param data The piece of data which should be stored in the attachment. |
32 | 33 |
* This can be any Java object, but the same restrictions as for event |
33 |
* payloads apply. |
|
34 |
* payloads apply. Use {@link ByteBuffer} for transferring binary data.
|
|
34 | 35 |
* @param type Data type which can be interpreted by RSB's event handling |
35 | 36 |
* machinery. |
36 | 37 |
* |
37 |
- |