public class DataFrameWriter extends FrameWriter
frameBytes| Constructor and Description |
|---|
DataFrameWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected java.nio.ByteBuffer |
buildFrame(byte[] header,
int headerOffset,
int headerLength,
byte[] payload,
int payloadOffset,
int payloadLength) |
void |
withOnlyPayload(byte[] payload,
int offset,
int length)
Provide only payload to the frame.
|
clear, isComplete, withHeaderAndPayload, withHeaderAndPayload, withOnlyPayload, writepublic void withOnlyPayload(byte[] payload,
int offset,
int length)
FrameWriterwithOnlyPayload in class FrameWriterpayload - The underlying byte array as a recipient of the payloadoffset - The offset in the byte array starting from where the payload is locatedlength - The length of the payloadprotected java.nio.ByteBuffer buildFrame(byte[] header,
int headerOffset,
int headerLength,
byte[] payload,
int payloadOffset,
int payloadLength)
buildFrame in class FrameWriter